]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/medialist/medialist.h
Backport from BEE
[bacula/bacula] / bacula / src / qt-console / medialist / medialist.h
1 #ifndef _MEDIALIST_H_
2 #define _MEDIALIST_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  *   Dirk Bartley, March 2007
20  */
21
22 #include <QtGui>
23 #include "ui_medialist.h"
24 #include "console.h"
25 #include <qstringlist.h>
26
27 class MediaList : public Pages, public Ui::MediaListForm
28 {
29    Q_OBJECT
30
31 public:
32    MediaList();
33    ~MediaList();
34    virtual void PgSeltreeWidgetClicked();
35    virtual void currentStackItem();
36
37 public slots:
38    void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
39
40 private slots:
41    void populateTree();
42    void showJobs();
43    void viewVolume();
44    void editVolume();
45    void deleteVolume();
46    void purgeVolume();
47    void pruneVolume();
48    void relabelVolume();
49    void allVolumesFromPool();
50    void allVolumes();
51    void volumeFromPool();
52
53 private:
54    void createContextMenu();
55    void writeExpandedSettings();
56    QString m_currentVolumeName;
57    QString m_currentVolumeId;
58    bool m_populated;
59    bool m_checkcurwidget;
60    QTreeWidgetItem *m_topItem;
61 };
62
63 #endif /* _MEDIALIST_H_ */