]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/joblist/joblist.h
Backport from BEE
[bacula/bacula] / bacula / src / qt-console / joblist / joblist.h
1 #ifndef _JOBLIST_H_
2 #define _JOBLIST_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$
20  *
21  *   Dirk Bartley, March 2007
22  */
23
24 #include <QtGui>
25 #include "ui_joblist.h"
26 #include "console.h"
27 #include "pages.h"
28
29 class JobList : public Pages, public Ui::JobListForm
30 {
31    Q_OBJECT
32
33 public:
34    JobList(const QString &medianame, const QString &clientname,
35            const QString &jobname, const QString &filesetname, QTreeWidgetItem *);
36    ~JobList();
37    virtual void PgSeltreeWidgetClicked();
38    virtual void currentStackItem();
39    int m_resultCount;
40
41 public slots:
42    void populateTable();
43    virtual void treeWidgetName(QString &);
44    void selectionChanged();
45
46 private slots:
47    void consoleListFilesOnJob();
48    void consoleListJobMedia();
49    void consoleListJobTotals();
50    void consoleDeleteJob();
51    void consoleRestartJob();
52    void consolePurgeFiles();
53    void preRestoreFromJob();
54    void preRestoreFromTime();
55    void showLogForJob();
56    void showInfoForJob(QTableWidgetItem * item=NULL);
57    void consoleCancelJob();
58    void graphTable();
59    void splitterMoved(int pos, int index);
60
61 private:
62    void createConnections();
63    void writeSettings();
64    void readSettings();
65    void prepareFilterWidgets();
66    void fillQueryString(QString &query);
67    QSplitter *m_splitter;
68
69    QString m_groupText;
70    QString m_splitText;
71    QString m_mediaName;
72    QString m_clientName;
73    QString m_jobName;
74    QString m_filesetName;
75    QString m_currentJob;
76    QString m_levelName;
77
78    bool m_populated;
79    bool m_checkCurrentWidget;
80    int m_jobIdIndex;
81    int m_purgedIndex;
82    int m_typeIndex;
83    int m_levelIndex;
84    int m_clientIndex;
85    int m_nameIndex;
86    int m_filesetIndex;
87    int m_statusIndex;
88    int m_startIndex;
89    int m_bytesIndex;
90    int m_filesIndex;
91    int m_selectedJobsCount;
92    QString m_selectedJobs;
93    QStringList m_selectedJobsList;
94 };
95
96 #endif /* _JOBLIST_H_ */