]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/run/run.h
Backport from BEE
[bacula/bacula] / bacula / src / qt-console / run / run.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2007-2014 Free Software Foundation Europe e.V.
5
6    The main author of Bacula is Kern Sibbald, with contributions from many
7    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    Bacula® is a registered trademark of Kern Sibbald.
15 */
16
17 #ifndef _RUN_H_
18 #define _RUN_H_
19
20 #include <QtGui>
21 #include "ui_run.h"
22 #include "ui_runcmd.h"
23 #include "ui_estimate.h"
24 #include "ui_prune.h"
25 #include "console.h"
26
27 class runPage : public Pages, public Ui::runForm
28 {
29    Q_OBJECT
30
31 public:
32    runPage();
33
34    runPage(const QString &defJob);
35
36    runPage(const QString &defJob,
37            const QString &level,
38            const QString &pool,
39            const QString &storage,
40            const QString &client,
41            const QString &fileset);
42
43 public slots:
44    void okButtonPushed();
45    void cancelButtonPushed();
46    void job_name_change(int index);
47
48 private:
49    void init();
50    int m_conn;
51 };
52
53 class runCmdPage : public Pages, public Ui::runCmdForm
54 {
55    Q_OBJECT
56
57 public:
58    runCmdPage(int conn);
59
60 public slots:
61    void okButtonPushed();
62    void cancelButtonPushed();
63
64 private:
65    void fill();
66    int m_conn;
67 };
68
69 class estimatePage : public Pages, public Ui::estimateForm
70 {
71    Q_OBJECT
72
73 public:
74    estimatePage();
75
76 public slots:
77    void okButtonPushed();
78    void cancelButtonPushed();
79    void job_name_change(int index);
80
81 private:
82    int m_conn;
83    bool m_aButtonPushed;
84 };
85
86 class prunePage : public Pages, public Ui::pruneForm
87 {
88    Q_OBJECT
89
90 public:
91    prunePage(const QString &volume, const QString &client);
92
93 public slots:
94    void okButtonPushed();
95    void cancelButtonPushed();
96    void volumeChanged();
97    void clientChanged();
98
99 private:
100    int m_conn;
101 };
102
103 #endif /* _RUN_H_ */