]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/status/clientstat.h
Backport from BEE
[bacula/bacula] / bacula / src / qt-console / status / clientstat.h
1 #ifndef _CLIENTSTAT_H_
2 #define _CLIENTSTAT_H_
3 /*
4    Bacula® - The Network Backup Solution
5
6    Copyright (C) 2007-2014 Free Software Foundation Europe e.V.
7
8    The main author of Bacula is Kern Sibbald, with contributions from many
9    others, a complete list can be found in the file AUTHORS.
10
11    You may use this file and others of this release according to the
12    license defined in the LICENSE file, which includes the Affero General
13    Public License, v3.0 ("AGPLv3") and some additional permissions and
14    terms pursuant to its AGPLv3 Section 7.
15
16    Bacula® is a registered trademark of Kern Sibbald.
17 */
18 /*
19  *   Version $Id: clientstat.h 5372 2007-08-17 12:17:04Z kerns $
20  *
21  *   Dirk Bartley, March 2007
22  */
23
24 #include <QtGui>
25 #include "ui_clientstat.h"
26 #include "console.h"
27 #include "pages.h"
28
29 class ClientStat : public Pages, public Ui::ClientStatForm
30 {
31    Q_OBJECT
32
33 public:
34    ClientStat(QString&, QTreeWidgetItem*);
35    ~ClientStat();
36    virtual void PgSeltreeWidgetClicked();
37    virtual void currentStackItem();
38
39 public slots:
40    void populateHeader();
41    void populateTerminated();
42    void populateRunning();
43    void populateAll();
44    void populateCurrentTab(int);
45
46 private slots:
47    void timerTriggered();
48
49 private:
50    void createConnections();
51    void writeSettings();
52    void readSettings();
53    bool m_populated;
54    QTextCursor *m_cursor;
55    void getFont();
56    QString m_groupText, m_splitText;
57    QTimer *m_timer;
58    QString m_client;
59 };
60
61 #endif /* _CLIENTSTAT_H_ */