]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/tray-monitor/jobselectwizardpage.h
Make out of freespace non-fatal for removable devices -- i.e. behaves like tape
[bacula/bacula] / bacula / src / qt-console / tray-monitor / jobselectwizardpage.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2017 Kern Sibbald
5
6    The original author of Bacula is Kern Sibbald, with contributions
7    from many others, a complete list can be found in the file AUTHORS.
8
9    You may use this file and others of this release according to the
10    license defined in the LICENSE file, which includes the Affero General
11    Public License, v3.0 ("AGPLv3") and some additional permissions and
12    terms pursuant to its AGPLv3 Section 7.
13
14    This notice must be preserved when any source code is
15    conveyed and/or propagated.
16
17    Bacula(R) is a registered trademark of Kern Sibbald.
18 */
19 #ifndef JOBSELECTWIZARDPAGE_H
20 #define JOBSELECTWIZARDPAGE_H
21
22 #include <QWizardPage>
23
24 class QStandardItemModel;
25 class QItemSelection;
26
27 namespace Ui {
28 class JobSelectWizardPage;
29 }
30
31 class JobSelectWizardPage : public QWizardPage
32 {
33     Q_OBJECT
34     Q_PROPERTY(qlonglong currentJob READ currentJob NOTIFY currentJobChanged)
35
36 public:
37     explicit JobSelectWizardPage(QWidget *parent = 0);
38     ~JobSelectWizardPage();
39
40     void setModel(QStandardItemModel *model);
41
42     u_int64_t currentJob() const;
43
44     bool isComplete() const;
45
46 signals:
47     void currentJobChanged();
48
49 public slots:
50     void optimizeSize();
51
52 private:
53     Ui::JobSelectWizardPage *ui;
54     qlonglong               m_jobId;
55 };
56
57 #endif // JOBSELECTWIZARDPAGE_H