]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/job/job.h
7f14463f698cfecb90bb76cdb59ee35dd5680f72
[bacula/bacula] / bacula / src / qt-console / job / job.h
1 #ifndef _JOB_H_
2 #define _JOB_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 #include <QtGui>
23 #include "ui_job.h"
24 #include "console.h"
25
26 class Job : public Pages, public Ui::JobForm
27 {
28    Q_OBJECT 
29
30 public:
31    Job(QString &jobId, QTreeWidgetItem *parentTreeWidgetItem);
32
33 public slots:
34    void populateAll();
35    void deleteJob();
36    void cancelJob();
37    void showInfoVolume(QListWidgetItem *);
38    void rerun();
39    void storeBwLimit(int val);
40
41 private slots:
42
43 private:
44    void updateRunInfo();
45    void populateText();
46    void populateForm();
47    void populateVolumes();
48    void getFont();
49    QTextCursor *m_cursor;
50    QString m_jobId;
51    QString m_client;
52    QTimer *m_timer;
53    int m_bwlimit;
54 };
55
56 #endif /* _JOB_H_ */