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