5 Bacula® - The Network Backup Solution
7 Copyright (C) 2007-2007 Free Software Foundation Europe e.V.
9 The main author of Bacula is Kern Sibbald, with contributions from
10 many others, a complete list can be found in the file AUTHORS.
11 This program is Free Software; you can redistribute it and/or
12 modify it under the terms of version three of the GNU Affero General Public
13 License as published by the Free Software Foundation and included
16 This program is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU Affero General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26 Bacula® is a registered trademark of Kern Sibbald.
27 The licensor of Bacula is the Free Software Foundation Europe
28 (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
29 Switzerland, email:ftf@fsfeurope.org.
34 * Kern Sibbald, February 2007
39 #include "ui_brestore.h"
40 #include "ui_restore.h"
41 #include "ui_prerestore.h"
50 * The pre-restore dialog selects the Job/Client to be restored
51 * It really could use considerable enhancement.
53 class prerestorePage : public Pages, public Ui::prerestoreForm
59 prerestorePage(QString &data, unsigned int);
62 void okButtonPushed();
63 void cancelButtonPushed();
64 void job_name_change(int index);
65 void recentChanged(int);
66 void jobRadioClicked(bool);
67 void jobidsRadioClicked(bool);
68 void jobIdEditFinished();
72 int jobdefsFromJob(QStringList &, QString &);
74 bool checkJobIdList();
76 unsigned int m_dataInType;
80 * The restore dialog is brought up once we are in the Bacula
81 * restore tree routines. It handles putting up a GUI tree
82 * representation of the files to be restored.
84 class restorePage : public Pages, public Ui::restoreForm
89 restorePage(int conn);
93 bool cwd(const char *);
96 void okButtonPushed();
97 void cancelButtonPushed();
98 void fileDoubleClicked(QTreeWidgetItem *item, int column);
99 void directoryItemChanged(QTreeWidgetItem *, QTreeWidgetItem *);
100 void upButtonPushed();
101 void unmarkButtonPushed();
102 void markButtonPushed();
103 void addDirectory(QString &);
107 void writeSettings();
110 QHash<QString, QTreeWidgetItem *> m_dirPaths;
111 QHash<QTreeWidgetItem *,QString> m_dirTreeItems;
117 class bRestore : public Pages, public Ui::bRestoreForm
124 void PgSeltreeWidgetClicked();
129 void showInfoForFile(QTableWidgetItem *);
130 void applyLocation();
131 void clearVersions(QTableWidgetItem *);
136 QTableWidgetItem *m_current;
139 void displayFiles(int64_t pathid, QString path);
140 void displayFileVersion(QString pathid, QString fnid, QString client);
143 #endif /* _RESTORE_H_ */