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