summaryrefslogtreecommitdiff
path: root/noncore/settings/backup/backuprestore.h
authorbenmeyer <benmeyer>2002-09-05 20:08:55 (UTC)
committer benmeyer <benmeyer>2002-09-05 20:08:55 (UTC)
commit0870216c754a7ec5e91e9f77ef7b8efed2b8b67c (patch) (unidiff)
tree575484355c06c83ce468797911cd82cbcf18257e /noncore/settings/backup/backuprestore.h
parentdd0222d2ec7a8f7363e746b079a46034d80d3466 (diff)
downloadopie-0870216c754a7ec5e91e9f77ef7b8efed2b8b67c.zip
opie-0870216c754a7ec5e91e9f77ef7b8efed2b8b67c.tar.gz
opie-0870216c754a7ec5e91e9f77ef7b8efed2b8b67c.tar.bz2
initial addition of backup
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