]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/storage/storage.h
Add new tray-monitor files that were omitted in the backport from Enterprise
[bacula/bacula] / bacula / src / qt-console / storage / storage.h
1 #ifndef _STORAGE_H_
2 #define _STORAGE_H_
3 /*
4    Bacula(R) - The Network Backup Solution
5
6    Copyright (C) 2000-2016 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  *   Dirk Bartley, March 2007
23  */
24
25 #include <QtGui>
26 #include "ui_storage.h"
27 #include "console.h"
28 #include "pages.h"
29
30 class Storage : public Pages, public Ui::StorageForm
31 {
32    Q_OBJECT 
33
34 public:
35    Storage();
36    ~Storage();
37    virtual void PgSeltreeWidgetClicked();
38    virtual void currentStackItem();
39
40 public slots:
41    void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
42
43 private slots:
44    void populateTree();
45    void consoleStatusStorage();
46    void consoleLabelStorage();
47    void consoleMountStorage();
48    void consoleUnMountStorage();
49    void consoleUpdateSlots();
50    void consoleUpdateSlotsScan();
51    void consoleRelease();
52    void statusStorageWindow();
53    void contentWindow();
54
55 private:
56    void createContextMenu();
57    void mediaList(QTreeWidgetItem *parent, const QString &storageID);
58    void settingsOpenStatus(QString& storage);
59    QString m_currentStorage;
60    bool m_currentAutoChanger;
61    bool m_populated;
62    bool m_firstpopulation;
63    bool m_checkcurwidget;
64    void writeExpandedSettings();
65    QTreeWidgetItem *m_topItem;
66 };
67
68 void table_get_selection(QTableWidget *table, QString &sel);
69
70 #endif /* _STORAGE_H_ */