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