]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/run/run.h
59d037b03f31ea0a6ca73ca995f0f4c7b1001750
[bacula/bacula] / bacula / src / qt-console / run / run.h
1 /*
2    Bacula(R) - The Network Backup Solution
3
4    Copyright (C) 2000-2015 Kern Sibbald
5    Copyright (C) 2007-2014 Free Software Foundation Europe e.V.
6
7    The original author of Bacula is Kern Sibbald, with contributions
8    from many others, a complete list can be found in the file AUTHORS.
9
10    You may use this file and others of this release according to the
11    license defined in the LICENSE file, which includes the Affero General
12    Public License, v3.0 ("AGPLv3") and some additional permissions and
13    terms pursuant to its AGPLv3 Section 7.
14
15    This notice must be preserved when any source code is 
16    conveyed and/or propagated.
17
18    Bacula(R) is a registered trademark of Kern Sibbald.
19 */
20
21 #ifndef _RUN_H_
22 #define _RUN_H_
23
24 #include <QtGui>
25 #include "ui_run.h"
26 #include "ui_runcmd.h"
27 #include "ui_estimate.h"
28 #include "ui_prune.h"
29 #include "console.h"
30
31 class runPage : public Pages, public Ui::runForm
32 {
33    Q_OBJECT 
34
35 public:
36    runPage();
37
38    runPage(const QString &defJob);
39
40    runPage(const QString &defJob, 
41            const QString &level,
42            const QString &pool,
43            const QString &storage,
44            const QString &client,
45            const QString &fileset);
46
47 public slots:
48    void okButtonPushed();
49    void cancelButtonPushed();
50    void job_name_change(int index);
51
52 private:
53    void init();
54    int m_conn;
55 };
56
57 class runCmdPage : public Pages, public Ui::runCmdForm
58 {
59    Q_OBJECT 
60
61 public:
62    runCmdPage(int conn);
63
64 public slots:
65    void okButtonPushed();
66    void cancelButtonPushed();
67
68 private:
69    void fill();
70    int m_conn;
71 };
72
73 class estimatePage : public Pages, public Ui::estimateForm
74 {
75    Q_OBJECT 
76
77 public:
78    estimatePage();
79
80 public slots:
81    void okButtonPushed();
82    void cancelButtonPushed();
83    void job_name_change(int index);
84
85 private:
86    int m_conn;
87    bool m_aButtonPushed;
88 };
89
90 class prunePage : public Pages, public Ui::pruneForm
91 {
92    Q_OBJECT 
93
94 public:
95    prunePage(const QString &volume, const QString &client);
96
97 public slots:
98    void okButtonPushed();
99    void cancelButtonPushed();
100    void volumeChanged();
101    void clientChanged();
102
103 private:
104    int m_conn;
105 };
106
107 #endif /* _RUN_H_ */