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) (side-by-side diff)
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 @@
+#ifndef WINDOW_H
+#define WINDOW_H
+
+#include <qmainwindow.h>
+#include "backuprestorebase.h"
+#include <qmap.h>
+#include <qlist.h>
+
+class QListViewItem;
+
+class BackupAndRestore : public BackupAndRestoreBase {
+
+Q_OBJECT
+
+public:
+ BackupAndRestore( QWidget* parent = 0, const char* name = 0);
+ ~BackupAndRestore();
+
+
+private slots:
+ void backupPressed();
+ void restore();
+ void selectItem(QListViewItem *currentItem);
+ void sourceDirChanged(int);
+ void rescanFolder(QString directory);
+
+private:
+ void scanForApplicationSettings();
+ int getBackupFiles(QString &backupFiles, QListViewItem *parent);
+ QMap<QString, QString> backupLocations;
+ QList<QListViewItem> getAllItems(QListViewItem *item, QList<QListViewItem> &list);
+
+ QListViewItem *systemSettings;
+ QListViewItem *applicationSettings;
+ QListViewItem *documents;
+
+};
+
+#endif
+
+// backuprestore.h
+