]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/medialist/medialist.h
dhb Fix of a segfault. The clear() function would execute triggering
[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) 2000-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 plus additions
13    that are listed 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 John Walker.
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: medialist.h 4230 2007-02-21 20:07:37Z kerns $
32  *
33  *   Dirk Bentley, March 2007
34  */
35
36 #include <QtGui>
37 #include "ui_medialist.h"
38 #include "console.h"
39 #include <qstringlist.h>
40
41 class MediaList : public Pages, public Ui::MediaListForm
42 {
43    Q_OBJECT 
44
45 public:
46    MediaList(QStackedWidget *parent,Console *console, QTreeWidgetItem *treeItem, int indexseq);
47    ~MediaList();
48    virtual void PgSeltreeWidgetClicked();
49    virtual void PgSeltreeWidgetDoubleClicked();
50
51 public slots:
52    void treeItemClicked(QTreeWidgetItem *item, int column);
53    void treeItemDoubleClicked(QTreeWidgetItem *item, int column);
54    void treeItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
55    void editMedia();
56    void showJobs();
57
58 private:
59    void createConnections();
60    void populateTree();
61
62 private:
63    Console *mp_console;
64    QString m_currentlyselected;
65    bool m_populated;
66    bool m_checkcurwidget;
67 };
68
69 #endif /* _MEDIALIST_H_ */