summaryrefslogtreecommitdiff
path: root/noncore/settings/backup/backuprestore.h
Unidiff
Diffstat (limited to 'noncore/settings/backup/backuprestore.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/noncore/settings/backup/backuprestore.h b/noncore/settings/backup/backuprestore.h
new file mode 100644
index 0000000..b0cf4cd
--- a/dev/null
+++ b/noncore/settings/backup/backuprestore.h
@@ -0,0 +1,42 @@
1#ifndef WINDOW_H
2#define WINDOW_H
3
4#include <qmainwindow.h>
5#include "backuprestorebase.h"
6#include <qmap.h>
7#include <qlist.h>
8
9class QListViewItem;
10
11class BackupAndRestore : public BackupAndRestoreBase {
12
13Q_OBJECT
14
15public:
16 BackupAndRestore( QWidget* parent = 0, const char* name = 0);
17 ~BackupAndRestore();
18
19
20private slots:
21 void backupPressed();
22 void restore();
23 void selectItem(QListViewItem *currentItem);
24 void sourceDirChanged(int);
25 void rescanFolder(QString directory);
26
27private:
28 void scanForApplicationSettings();
29 int getBackupFiles(QString &backupFiles, QListViewItem *parent);
30 QMap<QString, QString> backupLocations;
31 QList<QListViewItem> getAllItems(QListViewItem *item, QList<QListViewItem> &list);
32
33 QListViewItem *systemSettings;
34 QListViewItem *applicationSettings;
35 QListViewItem *documents;
36
37};
38
39#endif
40
41// backuprestore.h
42