summaryrefslogtreecommitdiffstats
path: root/keep/app/restorebackupwizard.h
blob: 41fd86535b9382d0f5d556d2f7c5967a77ec3372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* 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 <tqhbox.h>
#include <tqlistview.h>

#include "restorebackupwizard1view.h"
#include "restorebackupwizard2view.h"
#include "restorebackupwizard3view.h"
#include "backup.h"
#include "rdbmanager.h"

class RestoreBackupWizard: public KWizard
{
Q_OBJECT
  
public:
	RestoreBackupWizard(TQWidget *parent, const char *name);
	~RestoreBackupWizard();

	Backup backup();
	void setBackup(Backup backup);

protected slots:
	void slotContextMenu(KListView *list,TQListViewItem * item,const TQPoint &point);
	void slotPage1Changed();
	void slotPage2Changed();
	void slotPage3Changed();

	void slotCustomSourceChecked(bool value);

	void slotShowDiff();
	void slotShowChanged();
	void slotShowList();

	void slotRestoreBackup();
	void slotRestoreError(Backup backup,TQString errorMessage);

private:
	// init GUI
	void setupPage1();
	void setupPage2();
	void setupPage3();
	void initConnections();
	
	KPopupMenu *m_popup;
	TQHBox *page1,*page2,*page3;
	RestoreBackupWizard1View *restoreBackupWizard1View ;
	RestoreBackupWizard2View *restoreBackupWizard2View;
	RestoreBackupWizard3View *restoreBackupWizard3View;
	Backup m_backup;
	RDBManager *m_manager;
};

#endif