]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/jobs/jobs.h
Backport from BEE
[bacula/bacula] / bacula / src / qt-console / jobs / jobs.h
1 #ifndef _JOBS_H_
2 #define _JOBS_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_jobs.h"
26 #include "console.h"
27 #include "pages.h"
28
29 class Jobs : public Pages, public Ui::jobsForm
30 {
31    Q_OBJECT
32
33 public:
34    Jobs();
35    ~Jobs();
36    virtual void PgSeltreeWidgetClicked();
37    virtual void currentStackItem();
38
39 public slots:
40    void tableItemChanged(QTableWidgetItem *, QTableWidgetItem *);
41
42 private slots:
43    void populateTable();
44    void consoleListFiles();
45    void consoleListVolume();
46    void consoleListNextVolume();
47    void consoleEnable();
48    void consoleDisable();
49    void consoleCancel();
50    void listJobs();
51    void runJob();
52
53 private:
54    void createContextMenu();
55    QString m_currentlyselected;
56    bool m_populated;
57    bool m_checkcurwidget;
58    int m_typeIndex;
59 };
60
61 #endif /* _JOBS_H_ */