author | ar <ar> | 2004-08-14 19:24:28 (UTC) |
---|---|---|
committer | ar <ar> | 2004-08-14 19:24:28 (UTC) |
commit | 6b3277b1ff29c9fba53e62fc1b83a045b73a17af (patch) (unidiff) | |
tree | 1cee073c95061330c8e0b32a44bd5f694b8193c1 /noncore/settings/backup/backuprestore.h | |
parent | b7e50e77e0b22b3dd0feee43b15d0152d9ca8abb (diff) | |
download | opie-6b3277b1ff29c9fba53e62fc1b83a045b73a17af.zip opie-6b3277b1ff29c9fba53e62fc1b83a045b73a17af.tar.gz opie-6b3277b1ff29c9fba53e62fc1b83a045b73a17af.tar.bz2 |
- use OFileDialog::getDirectory() to select directory in locations tab.
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 | |||
@@ -11,43 +11,44 @@ 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 | ||