author | zecke <zecke> | 2004-01-10 15:12:11 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-01-10 15:12:11 (UTC) |
commit | 68376661758627c300aa54eee7573953134b2143 (patch) (unidiff) | |
tree | d8a4254470373efd863d768b01f96a481a4d8a2a /noncore/settings/backup/backuprestore.cpp | |
parent | f4cd001fb21509caff3b83fc620ac092cb5f3913 (diff) | |
download | opie-68376661758627c300aa54eee7573953134b2143.zip opie-68376661758627c300aa54eee7573953134b2143.tar.gz opie-68376661758627c300aa54eee7573953134b2143.tar.bz2 |
-First follow Qt naming style
-use const
-Fix Doxygen comment. If above a method better skip the @fn
-Update backuprestore to use the new names
TODO: Alter filename to ostorageinfo
Diffstat (limited to 'noncore/settings/backup/backuprestore.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/backup/backuprestore.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp index eb69a70..2d79384 100644 --- a/noncore/settings/backup/backuprestore.cpp +++ b/noncore/settings/backup/backuprestore.cpp | |||
@@ -61,36 +61,36 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name, WFlags f | |||
61 | applicationSettings = new QListViewItem(backupList, "Application Data", "", "Applications/"); | 61 | applicationSettings = new QListViewItem(backupList, "Application Data", "", "Applications/"); |
62 | selectItem(applicationSettings); | 62 | selectItem(applicationSettings); |
63 | documents= new QListViewItem(backupList, "Documents", "", "Documents/"); | 63 | documents= new QListViewItem(backupList, "Documents", "", "Documents/"); |
64 | selectItem(documents); | 64 | selectItem(documents); |
65 | 65 | ||
66 | scanForApplicationSettings(); | 66 | scanForApplicationSettings(); |
67 | 67 | ||
68 | OStorageInfo storage; | 68 | OStorageInfo storage; |
69 | 69 | ||
70 | backupLocations.insert( "Documents", QDir::homeDirPath() + "/Documents" ); | 70 | backupLocations.insert( "Documents", QDir::homeDirPath() + "/Documents" ); |
71 | if ( storage.hasCf() ) | 71 | if ( storage.hasCf() ) |
72 | { | 72 | { |
73 | backupLocations.insert( "CF", storage.getCfPath() ); | 73 | backupLocations.insert( "CF", storage.cfPath() ); |
74 | qDebug( "Cf Path: " + storage.getCfPath() ); | 74 | qDebug( "Cf Path: " + storage.cfPath() ); |
75 | } | 75 | } |
76 | if ( storage.hasSd() ) | 76 | if ( storage.hasSd() ) |
77 | { | 77 | { |
78 | backupLocations.insert( "SD", storage.getSdPath() ); | 78 | backupLocations.insert( "SD", storage.sdPath() ); |
79 | qDebug( " Sd Path: " + storage.getSdPath() ); | 79 | qDebug( " Sd Path: " + storage.sdPath() ); |
80 | } | 80 | } |
81 | if ( storage.hasMmc() ) | 81 | if ( storage.hasMmc() ) |
82 | { | 82 | { |
83 | backupLocations.insert( "MMC", storage.getMmcPath() ); | 83 | backupLocations.insert( "MMC", storage.mmcPath() ); |
84 | qDebug( "Mmc Path: " + storage.getMmcPath() ); | 84 | qDebug( "Mmc Path: " + storage.mmcPath() ); |
85 | } | 85 | } |
86 | 86 | ||
87 | Config config("BackupAndRestore"); | 87 | Config config("BackupAndRestore"); |
88 | //read last locations | 88 | //read last locations |
89 | config.setGroup("LastLocation"); | 89 | config.setGroup("LastLocation"); |
90 | QString lastStoreLocation = config.readEntry( "LastStoreLocation", "" ); | 90 | QString lastStoreLocation = config.readEntry( "LastStoreLocation", "" ); |
91 | QString lastRestoreLocation = config.readEntry( "LastRestoreLocation", "" ); | 91 | QString lastRestoreLocation = config.readEntry( "LastRestoreLocation", "" ); |
92 | int locationIndex = 0; | 92 | int locationIndex = 0; |
93 | 93 | ||
94 | QMap<QString, QString>::Iterator it; | 94 | QMap<QString, QString>::Iterator it; |
95 | for( it = backupLocations.begin(); it != backupLocations.end(); ++it ) | 95 | for( it = backupLocations.begin(); it != backupLocations.end(); ++it ) |
96 | { | 96 | { |