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