]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/job/job.h
Modify Job view to follow backup progress in real-time
[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-2007 Free Software Foundation Europe e.V.
7
8    The main author of Bacula is Kern Sibbald, with contributions from
9    many others, a complete list can be found in the file AUTHORS.
10    This program is Free Software; you can redistribute it and/or
11    modify it under the terms of version three of the GNU Affero General Public
12    License as published by the Free Software Foundation and included
13    in the file LICENSE.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU Affero General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    Bacula® is a registered trademark of Kern Sibbald.
26    The licensor of Bacula is the Free Software Foundation Europe
27    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
28    Switzerland, email:ftf@fsfeurope.org.
29 */
30
31 #include <QtGui>
32 #include "ui_job.h"
33 #include "console.h"
34
35 class Job : public Pages, public Ui::JobForm
36 {
37    Q_OBJECT 
38
39 public:
40    Job(QString &jobId, QTreeWidgetItem *parentTreeWidgetItem);
41
42 public slots:
43    void populateAll();
44    void deleteJob();
45    void cancelJob();
46    void showInfoVolume(QListWidgetItem *);
47    void rerun();
48    void storeBwLimit(int val);
49
50 private slots:
51
52 private:
53    void updateRunInfo();
54    void populateText();
55    void populateForm();
56    void populateVolumes();
57    void getFont();
58    QTextCursor *m_cursor;
59    QString m_jobId;
60    QString m_client;
61    QTimer *m_timer;
62    int m_bwlimit;
63 };
64
65 #endif /* _JOB_H_ */