/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
modify it under the terms of version two of the GNU General Public
- License as published by the Free Software Foundation plus additions
- that are listed in the file LICENSE.
+ License as published by the Free Software Foundation and included
+ in the file LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
Switzerland, email:ftf@fsfeurope.org.
*/
/*
- * Version $Id: joblist.h 4230 2007-02-21 20:07:37Z kerns $
+ * Version $Id$
*
- * Kern Sibbald, January 2007
+ * Dirk Bartley, March 2007
*/
#include <QtGui>
#include "ui_joblist.h"
#include "console.h"
-#include "batstack.h"
+#include "pages.h"
-class JobList : public BatStack, public Ui::JobListForm
+class JobList : public Pages, public Ui::JobListForm
{
Q_OBJECT
public:
- JobList(Console *console, QString &medianame );
+ JobList(const QString &medianame, const QString &clientname,
+ const QString &jobname, const QString &filesetname, QTreeWidgetItem *);
+ ~JobList();
+ virtual void PgSeltreeWidgetClicked();
+ virtual void currentStackItem();
+ int m_resultCount;
public slots:
+ void populateTable();
+ virtual void treeWidgetName(QString &);
+ void tableItemChanged(QTableWidgetItem *, QTableWidgetItem *);
+
+private slots:
+ void consoleListJobid();
+ void consoleListFilesOnJob();
+ void consoleListJobMedia();
+ void consoleListVolumes();
+ void consoleListJobTotals();
+ void consoleDeleteJob();
+ void consolePurgeFiles();
+ void preRestoreFromJob();
+ void preRestoreFromTime();
+ void showLogForJob();
+ void consoleCancelJob();
+ void graphTable();
private:
- Console *m_console;
+ void createConnections();
+ void setStatusColor(QTableWidgetItem *item, QString &field);
+ void writeSettings();
+ void readSettings();
+ QSplitter *m_splitter;
+ QString m_groupText;
+ QString m_splitText;
+ QString m_mediaName;
+ QString m_clientName;
+ QString m_jobName;
+ QString m_filesetName;
+ QString m_currentJob;
+ bool m_populated;
+ bool m_checkCurrentWidget;
+ int m_purgedIndex;
+ int m_typeIndex;
+ int m_statusIndex;
+ int m_startIndex;
+ int m_bytesIndex;
+ int m_filesIndex;
};
#endif /* _JOBLIST_H_ */