]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/status/dirstat.h
Make qt-console compatible to Qt5 (Qt4 still work)
[bacula/bacula] / bacula / src / qt-console / status / dirstat.h
1 #ifndef _DIRSTAT_H_
2 #define _DIRSTAT_H_
3 /*
4    Bacula(R) - The Network Backup Solution
5
6    Copyright (C) 2000-2016 Kern Sibbald
7
8    The original author of Bacula is Kern Sibbald, with contributions
9    from many 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    This notice must be preserved when any source code is 
17    conveyed and/or propagated.
18
19    Bacula(R) is a registered trademark of Kern Sibbald.
20 */
21 /*
22  *   Dirk Bartley, March 2007
23  */
24
25 #if QT_VERSION >= 0x050000
26 #include <QtWidgets>
27 #else
28 #include <QtGui>
29 #endif
30 #include "ui_dirstat.h"
31 #include "console.h"
32 #include "pages.h"
33
34 class DirStat : public Pages, public Ui::DirStatForm
35 {
36    Q_OBJECT 
37
38 public:
39    DirStat();
40    ~DirStat();
41    virtual void PgSeltreeWidgetClicked();
42    virtual void currentStackItem();
43
44 public slots:
45    void populateHeader();
46    void populateTerminated();
47    void populateScheduled();
48    void populateRunning();
49    void populateAll();
50
51 private slots:
52    void timerTriggered();
53    void consoleCancelJob();
54    void consoleDisableJob();
55
56 private:
57    void createConnections();
58    void writeSettings();
59    void readSettings();
60    bool m_populated;
61    QTextCursor *m_cursor;
62    void getFont();
63    QString m_groupText, m_splitText;
64    QTimer *m_timer;
65 };
66
67 #endif /* _DIRSTAT_H_ */