]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/storage/storage.h
Backport from BEE
[bacula/bacula] / bacula / src / qt-console / storage / storage.h
1 #ifndef _STORAGE_H_
2 #define _STORAGE_H_
3 /*
4    Bacula® - The Network Backup Solution
5
6    Copyright (C) 2007-2014 Free Software Foundation Europe e.V.
7
8    The main author of Bacula is Kern Sibbald, with contributions from many
9    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    Bacula® is a registered trademark of Kern Sibbald.
17 */
18 /*
19  *   Version $Id$
20  *
21  *   Dirk Bartley, March 2007
22  */
23
24 #include <QtGui>
25 #include "ui_storage.h"
26 #include "console.h"
27 #include "pages.h"
28
29 class Storage : public Pages, public Ui::StorageForm
30 {
31    Q_OBJECT
32
33 public:
34    Storage();
35    ~Storage();
36    virtual void PgSeltreeWidgetClicked();
37    virtual void currentStackItem();
38
39 public slots:
40    void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
41
42 private slots:
43    void populateTree();
44    void consoleStatusStorage();
45    void consoleLabelStorage();
46    void consoleMountStorage();
47    void consoleUnMountStorage();
48    void consoleUpdateSlots();
49    void consoleUpdateSlotsScan();
50    void consoleRelease();
51    void statusStorageWindow();
52    void contentWindow();
53
54 private:
55    void createContextMenu();
56    void mediaList(QTreeWidgetItem *parent, const QString &storageID);
57    void settingsOpenStatus(QString& storage);
58    QString m_currentStorage;
59    bool m_currentAutoChanger;
60    bool m_populated;
61    bool m_firstpopulation;
62    bool m_checkcurwidget;
63    void writeExpandedSettings();
64    QTreeWidgetItem *m_topItem;
65 };
66
67 void table_get_selection(QTableWidget *table, QString &sel);
68
69 #endif /* _STORAGE_H_ */