]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/medialist/medialist.h
0c3f674352fa69b3c412050a46fe89ae97d2f540
[bacula/bacula] / bacula / src / qt-console / medialist / medialist.h
1 #ifndef _MEDIALIST_H_
2 #define _MEDIALIST_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_medialist.h"
27 #include "console.h"
28 #include <qstringlist.h>
29
30 class MediaList : public Pages, public Ui::MediaListForm
31 {
32    Q_OBJECT 
33
34 public:
35    MediaList();
36    ~MediaList();
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 showJobs();
46    void viewVolume();
47    void editVolume();
48    void deleteVolume();
49    void purgeVolume();
50    void pruneVolume();
51    void relabelVolume();
52    void allVolumesFromPool();
53    void allVolumes();
54    void volumeFromPool();
55
56 private:
57    void createContextMenu();
58    void writeExpandedSettings();
59    QString m_currentVolumeName;
60    QString m_currentVolumeId;
61    bool m_populated;
62    bool m_checkcurwidget;
63    QTreeWidgetItem *m_topItem;
64 };
65
66 #endif /* _MEDIALIST_H_ */