]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/medialist/mediaview.h
Backport from BEE
[bacula/bacula] / bacula / src / qt-console / medialist / mediaview.h
1 #ifndef _MEDIAVIEW_H_
2 #define _MEDIAVIEW_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 #include <QtGui>
20 #include "ui_mediaview.h"
21 #include "console.h"
22 #include <qstringlist.h>
23
24 class MediaView : public Pages, public Ui::MediaViewForm
25 {
26    Q_OBJECT
27
28 public:
29    MediaView();
30    ~MediaView();
31
32 private slots:
33    void populateTable();
34    void populateForm();
35    void PgSeltreeWidgetClicked();
36    void currentStackItem();
37    void applyPushed();
38    void editPushed();
39    void purgePushed();
40    void prunePushed();
41    void deletePushed();
42    bool getSelection(QStringList &ret);
43    void showInfoForMedia(QTableWidgetItem * item);
44    void filterExipired(QStringList &list);
45 //   void relabelVolume();
46 //   void allVolumesFromPool();
47 //   void allVolumes();
48 //   void volumeFromPool();
49
50 private:
51    bool m_populated;
52    bool m_checkcurwidget;
53    QTreeWidgetItem *m_topItem;
54 };
55
56 #endif /* _MEDIAVIEW_H_ */