1/* This file is part of the KDE project
2
3 Copyright (C) 2008 Omat Holding B.V. <info@omat.nl>
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18*/
19
20
21#ifndef RESTORE_H
22#define RESTORE_H
23
24#include <QWidget>
25
26class KUrl;
27
28class Restore : public QWidget
29{
30 Q_OBJECT
31public:
32 /**
33 * Constructor
34 */
35 Restore( QWidget* );
36
37 /**
38 * Checks if all the needed applications are available.
39 */
40 bool possible();
41
42 /**
43 * Restores a backup and emits completed() when done.
44 * The filename should be the filename, with tar.bz2 extension.
45 */
46 void restore( const KUrl &filename );
47
48private:
49 QString m_dbRestoreApp;
50
51Q_SIGNALS:
52 void completed( bool );
53};
54
55#endif // DOCK_H
56
57