1 #ifndef _CONTENT_H_ 2 #define _CONTENT_H_ 3 /* 4 Bacula(R) - The Network Backup Solution 5 6 Copyright (C) 2000-2020 Kern Sibbald 7 8 The original author of Bacula is Kern Sibbald, with contributions 9 from many others, a complete list can be found in the file AUTHORS. 10 11 You may use this file and others of this release according to the 12 license defined in the LICENSE file, which includes the Affero General 13 Public License, v3.0 ("AGPLv3") and some additional permissions and 14 terms pursuant to its AGPLv3 Section 7. 15 16 This notice must be preserved when any source code is 17 conveyed and/or propagated. 18 19 Bacula(R) is a registered trademark of Kern Sibbald. 20 */ 21 22 #if QT_VERSION >= 0x050000 23 #include <QtWidgets> 24 #else 25 #include <QtGui> 26 #endif 27 #include "ui_content.h" 28 #include "console.h" 29 #include "pages.h" 30 31 class Content : public Pages, public Ui::ContentForm 32 { 33 Q_OBJECT 34 35 public: 36 Content(QString storage, QTreeWidgetItem *parentWidget); 37 // virtual void PgSeltreeWidgetClicked(); 38 virtual void currentStackItem(); 39 40 public slots: 41 void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *); 42 43 void consoleRelease(); 44 void consoleUpdateSlots(); 45 void consoleLabelStorage(); 46 void consoleMountStorage(); 47 void statusStorageWindow(); 48 void consoleUnMountStorage(); 49 void showMediaInfo(QTableWidgetItem * item); 50 51 private slots: 52 void populateContent(); 53 54 private: 55 bool m_currentAutoChanger; 56 bool m_populated; 57 bool m_firstpopulation; 58 bool m_checkcurwidget; 59 QString m_currentStorage; 60 }; 61 62 #endif /* _STORAGE_H_ */ 63