]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/job/job.h
Backport from BEE
[bacula/bacula] / bacula / src / qt-console / job / job.h
1 #ifndef _JOB_H_
2 #define _JOB_H_
3 /*
4    Bacula® - The Network Backup Solution
5
6    Copyright (C) 2000-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 #include <QtGui>
20 #include "ui_job.h"
21 #include "console.h"
22
23 class Job : public Pages, public Ui::JobForm
24 {
25    Q_OBJECT
26
27 public:
28    Job(QString &jobId, QTreeWidgetItem *parentTreeWidgetItem);
29
30 public slots:
31    void populateAll();
32    void deleteJob();
33    void cancelJob();
34    void showInfoVolume(QListWidgetItem *);
35    void rerun();
36
37 private slots:
38
39 private:
40    void updateRunInfo();
41    void populateText();
42    void populateForm();
43    void populateVolumes();
44    void getFont();
45    QTextCursor *m_cursor;
46    QString m_jobId;
47    QString m_client;
48    QTimer *m_timer;
49 };
50
51 #endif /* _JOB_H_ */