]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/mediaedit/mediaedit.h
Backport from BEE
[bacula/bacula] / bacula / src / qt-console / mediaedit / mediaedit.h
1 #ifndef _MEDIAEDIT_H_
2 #define _MEDIAEDIT_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_mediaedit.h"
26 #include "console.h"
27 #include "pages.h"
28
29 class MediaEdit : public Pages, public Ui::mediaEditForm
30 {
31    Q_OBJECT
32
33 public:
34    MediaEdit(QTreeWidgetItem *parentWidget, QString &mediaId);
35
36 private slots:
37    void okButtonPushed();
38    void cancelButtonPushed();
39    void retentionChanged();
40    void durationChanged();
41    void useDurationChanged();
42    void setSpins(int value);
43    void retentionRadioPressed();
44    void useDurationRadioPressed();
45
46 private:
47    void connectSpins();
48    void disconnectSpins();
49    QString m_mediaName;
50    QString m_pool;
51    QString m_status;
52    int m_slot;
53    int m_retention;
54    int m_useDuration;
55    int m_maxVolJobs;
56    int m_maxVolFiles;
57    int m_maxVolBytes;
58    bool m_recycle;
59    bool m_enabled;
60    QString m_recyclePool;
61 };
62
63 #endif /* _MEDIAEDIT_H_ */