Diffstat (limited to 'noncore/settings/backup/backuprestore.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/backup/backuprestore.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/settings/backup/backuprestore.h b/noncore/settings/backup/backuprestore.h index caf6243..332123a 100644 --- a/noncore/settings/backup/backuprestore.h +++ b/noncore/settings/backup/backuprestore.h | |||
@@ -1,53 +1,54 @@ | |||
1 | #ifndef WINDOW_H | 1 | #ifndef WINDOW_H |
2 | #define WINDOW_H | 2 | #define WINDOW_H |
3 | 3 | ||
4 | #include <qmainwindow.h> | 4 | #include <qmainwindow.h> |
5 | #include "backuprestorebase.h" | 5 | #include "backuprestorebase.h" |
6 | #include <qmap.h> | 6 | #include <qmap.h> |
7 | #include <qlist.h> | 7 | #include <qlist.h> |
8 | 8 | ||
9 | class QListViewItem; | 9 | class QListViewItem; |
10 | class QStringList; | 10 | class QStringList; |
11 | 11 | ||
12 | class BackupAndRestore : public BackupAndRestoreBase | 12 | class BackupAndRestore : public BackupAndRestoreBase |
13 | { | 13 | { |
14 | 14 | ||
15 | Q_OBJECT | 15 | Q_OBJECT |
16 | 16 | ||
17 | public: | 17 | public: |
18 | 18 | ||
19 | BackupAndRestore( QWidget* parent = 0, const char* name = 0, WFlags fl = 0); | 19 | BackupAndRestore( QWidget* parent = 0, const char* name = 0, WFlags fl = 0); |
20 | ~BackupAndRestore(); | 20 | ~BackupAndRestore(); |
21 | 21 | ||
22 | static QString appName() { return QString::fromLatin1("backup"); } | 22 | static QString appName() { return QString::fromLatin1("backup"); } |
23 | 23 | ||
24 | private slots: | 24 | private slots: |
25 | void backup(); | 25 | void backup(); |
26 | void restore(); | 26 | void restore(); |
27 | void selectItem(QListViewItem *currentItem); | 27 | void selectItem(QListViewItem *currentItem); |
28 | void sourceDirChanged(int); | 28 | void sourceDirChanged(int); |
29 | void rescanFolder(QString directory); | 29 | void rescanFolder(QString directory); |
30 | void fileListUpdate(); | 30 | void fileListUpdate(); |
31 | 31 | ||
32 | void addLocation(); | 32 | void addLocation(); |
33 | void removeLocation(); | 33 | void removeLocation(); |
34 | void saveLocations(); | 34 | void saveLocations(); |
35 | void selectLocation(); | ||
35 | 36 | ||
36 | private: | 37 | private: |
37 | void scanForApplicationSettings(); | 38 | void scanForApplicationSettings(); |
38 | int getBackupFiles(QString &backupFiles, QListViewItem *parent); | 39 | int getBackupFiles(QString &backupFiles, QListViewItem *parent); |
39 | QString getExcludeFile(); | 40 | QString getExcludeFile(); |
40 | QMap<QString, QString> backupLocations; | 41 | QMap<QString, QString> backupLocations; |
41 | QList<QListViewItem> getAllItems(QListViewItem *item, QList<QListViewItem> &list); | 42 | QList<QListViewItem> getAllItems(QListViewItem *item, QList<QListViewItem> &list); |
42 | void refreshBackupLocations(); | 43 | void refreshBackupLocations(); |
43 | void refreshLocations(); | 44 | void refreshLocations(); |
44 | 45 | ||
45 | QListViewItem *systemSettings; | 46 | QListViewItem *systemSettings; |
46 | QListViewItem *applicationSettings; | 47 | QListViewItem *applicationSettings; |
47 | QListViewItem *documents; | 48 | QListViewItem *documents; |
48 | }; | 49 | }; |
49 | 50 | ||
50 | #endif | 51 | #endif |
51 | 52 | ||
52 | // backuprestore.h | 53 | // backuprestore.h |
53 | 54 | ||