]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/mediaedit/mediaedit.h
kes Change Bacula trademark owner from John Walker to Kern Sibbald
[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-2007 Free Software Foundation Europe e.V.
7
8    The main author of Bacula is Kern Sibbald, with contributions from
9    many others, a complete list can be found in the file AUTHORS.
10    This program is Free Software; you can redistribute it and/or
11    modify it under the terms of version two of the GNU General Public
12    License as published by the Free Software Foundation and included
13    in the file LICENSE.
14
15    This program is distributed in the hope that it will be useful, but
16    WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18    General Public License for more details.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    Bacula® is a registered trademark of Kern Sibbald.
26    The licensor of Bacula is the Free Software Foundation Europe
27    (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
28    Switzerland, email:ftf@fsfeurope.org.
29 */
30 /*
31  *   Version $Id$
32  *
33  *   Dirk Bartley, March 2007
34  */
35
36 #include <QtGui>
37 #include "ui_mediaedit.h"
38 #include "console.h"
39 #include "pages.h"
40
41 class MediaEdit : public Pages, public Ui::mediaEditForm
42 {
43    Q_OBJECT 
44
45 public:
46    MediaEdit(QTreeWidgetItem *parentWidget, QString &mediaId);
47
48 private slots:
49    void okButtonPushed();
50    void cancelButtonPushed();
51    void retentionChanged();
52    void durationChanged();
53    void useDurationChanged();
54    void setSpins(int value);
55    void retentionRadioPressed();
56    void useDurationRadioPressed();
57
58 private:
59    void connectSpins();
60    void disconnectSpins();
61    QString m_mediaName;
62    QString m_pool;
63    QString m_status;
64    int m_slot;
65    int m_retention;
66    int m_useDuration;
67    int m_maxVolJobs;
68    int m_maxVolFiles;
69    int m_maxVolBytes;
70    bool m_recycle;
71    bool m_enabled;
72    QString m_recyclePool;
73 };
74
75 #endif /* _MEDIAEDIT_H_ */