diff options
Diffstat (limited to 'keep/app/restorebackupwizard.h')
-rw-r--r-- | keep/app/restorebackupwizard.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/keep/app/restorebackupwizard.h b/keep/app/restorebackupwizard.h new file mode 100644 index 0000000..85bc937 --- /dev/null +++ b/keep/app/restorebackupwizard.h @@ -0,0 +1,73 @@ +/* This file is part of the Keep project + Copyright (C) 2005 Jean-Rémy Falleri <jr.falleri@laposte.net> + + Keep is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + Keep is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Keep; if not, write to the + Free Software Foundation, Inc., + 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. */ + +#ifndef _RESTOREBACKUPWIZARD_H_ +#define _RESTOREBACKUPWIZARD_H_ + +#include <kwizard.h> +#include <kpopupmenu.h> +#include <qhbox.h> + +#include "restorebackupwizard1view.h" +#include "restorebackupwizard2view.h" +#include "restorebackupwizard3view.h" +#include "backup.h" +#include "rdbmanager.h" + +class RestoreBackupWizard: public KWizard +{ +Q_OBJECT +public: + RestoreBackupWizard(QWidget *parent, const char *name); + ~RestoreBackupWizard(); + + Backup backup(); + void setBackup(Backup backup); + +protected slots: + void slotContextMenu(KListView *list,QListViewItem * item,const QPoint &point); + void slotPage1Changed(); + void slotPage2Changed(); + void slotPage3Changed(); + + void slotCustomSourceChecked(bool value); + + void slotShowDiff(); + void slotShowChanged(); + void slotShowList(); + + void slotRestoreBackup(); + void slotRestoreError(Backup backup,QString errorMessage); + +private: + // init GUI + void setupPage1(); + void setupPage2(); + void setupPage3(); + void initConnections(); + + KPopupMenu *m_popup; + QHBox *page1,*page2,*page3; + RestoreBackupWizard1View *restoreBackupWizard1View ; + RestoreBackupWizard2View *restoreBackupWizard2View; + RestoreBackupWizard3View *restoreBackupWizard3View; + Backup m_backup; + RDBManager *m_manager; +}; + +#endif |