summaryrefslogtreecommitdiff
path: root/noncore/settings/backup/backuprestore.h
Side-by-side diff
Diffstat (limited to 'noncore/settings/backup/backuprestore.h') (more/less context) (ignore 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
+