]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/joblist/joblist.h
First cut of bat rerun a Job from Jobs Run
[bacula/bacula] / bacula / src / qt-console / joblist / joblist.h
1 #ifndef _JOBLIST_H_
2 #define _JOBLIST_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 three of the GNU Affero 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 Affero 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_joblist.h"
38 #include "console.h"
39 #include "pages.h"
40
41 class JobList : public Pages, public Ui::JobListForm
42 {
43    Q_OBJECT 
44
45 public:
46    JobList(const QString &medianame, const QString &clientname, 
47            const QString &jobname, const QString &filesetname, QTreeWidgetItem *);
48    ~JobList();
49    virtual void PgSeltreeWidgetClicked();
50    virtual void currentStackItem();
51    int m_resultCount;
52
53 public slots:
54    void populateTable();
55    virtual void treeWidgetName(QString &);
56    void selectionChanged();
57
58 private slots:
59    void consoleListFilesOnJob();
60    void consoleListJobMedia();
61    void consoleListJobTotals();
62    void consoleDeleteJob();
63    void consoleRestartJob();
64    void consolePurgeFiles();
65    void preRestoreFromJob();
66    void preRestoreFromTime();
67    void showLogForJob();
68    void showInfoForJob(QTableWidgetItem * item=NULL);
69    void consoleCancelJob();
70    void graphTable();
71    void splitterMoved(int pos, int index);
72
73 private:
74    void createConnections();
75    void writeSettings();
76    void readSettings();
77    void prepareFilterWidgets();
78    void fillQueryString(QString &query);
79    QSplitter *m_splitter;
80
81    QString m_groupText;
82    QString m_splitText;
83    QString m_mediaName;
84    QString m_clientName;
85    QString m_jobName;
86    QString m_filesetName;
87    QString m_currentJob;
88    QString m_levelName;
89
90    bool m_populated;
91    bool m_checkCurrentWidget;
92    int m_jobIdIndex;
93    int m_purgedIndex;
94    int m_typeIndex;
95    int m_levelIndex;
96    int m_clientIndex;
97    int m_nameIndex;
98    int m_filesetIndex;
99    int m_statusIndex;
100    int m_startIndex;
101    int m_bytesIndex;
102    int m_filesIndex;
103    int m_selectedJobsCount;
104    QString m_selectedJobs;
105    QStringList m_selectedJobsList;
106 };
107
108 #endif /* _JOBLIST_H_ */