]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/run/run.h
85d3e2730b76c827fbac48e5f0da94423279dc80
[bacula/bacula] / bacula / src / qt-console / run / run.h
1 /*
2    Bacula® - The Network Backup Solution
3
4    Copyright (C) 2007-2009 Free Software Foundation Europe e.V.
5
6    The main author of Bacula is Kern Sibbald, with contributions from
7    many others, a complete list can be found in the file AUTHORS.
8    This program is Free Software; you can redistribute it and/or
9    modify it under the terms of version two of the GNU General Public
10    License as published by the Free Software Foundation, which is 
11    listed in the file LICENSE.
12
13    This program is distributed in the hope that it will be useful, but
14    WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16    General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21    02110-1301, USA.
22
23    Bacula® is a registered trademark of Kern Sibbald.
24    The licensor of Bacula is the Free Software Foundation Europe
25    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
26    Switzerland, email:ftf@fsfeurope.org.
27 */
28
29 #ifndef _RUN_H_
30 #define _RUN_H_
31
32 #include <QtGui>
33 #include "ui_run.h"
34 #include "ui_runcmd.h"
35 #include "ui_estimate.h"
36 #include "ui_prune.h"
37 #include "console.h"
38
39 class runPage : public Pages, public Ui::runForm
40 {
41    Q_OBJECT 
42
43 public:
44    runPage();
45
46    runPage(const QString &defJob);
47
48    runPage(const QString &defJob, 
49            const QString &level,
50            const QString &pool,
51            const QString &storage,
52            const QString &client,
53            const QString &fileset);
54
55 public slots:
56    void okButtonPushed();
57    void cancelButtonPushed();
58    void job_name_change(int index);
59
60 private:
61    void init();
62    int m_conn;
63 };
64
65 class runCmdPage : public Pages, public Ui::runCmdForm
66 {
67    Q_OBJECT 
68
69 public:
70    runCmdPage(int conn);
71
72 public slots:
73    void okButtonPushed();
74    void cancelButtonPushed();
75
76 private:
77    void fill();
78    int m_conn;
79 };
80
81 class estimatePage : public Pages, public Ui::estimateForm
82 {
83    Q_OBJECT 
84
85 public:
86    estimatePage();
87
88 public slots:
89    void okButtonPushed();
90    void cancelButtonPushed();
91    void job_name_change(int index);
92
93 private:
94    int m_conn;
95    bool m_aButtonPushed;
96 };
97
98 class prunePage : public Pages, public Ui::pruneForm
99 {
100    Q_OBJECT 
101
102 public:
103    prunePage(const QString &volume, const QString &client);
104
105 public slots:
106    void okButtonPushed();
107    void cancelButtonPushed();
108    void volumeChanged();
109    void clientChanged();
110
111 private:
112    int m_conn;
113 };
114
115 #endif /* _RUN_H_ */