summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-02 02:13:03 (UTC)
committer llornkcor <llornkcor>2002-07-02 02:13:03 (UTC)
commit75b6c4bb13fcc6d54a249b7885b212f473d654a3 (patch) (unidiff)
treee94c1b5ac37b9470cd0fadd45b8fc14a9cc4e746
parent947bd80f93998f75378db1d677b85eb121c10a1d (diff)
downloadopie-75b6c4bb13fcc6d54a249b7885b212f473d654a3.zip
opie-75b6c4bb13fcc6d54a249b7885b212f473d654a3.tar.gz
opie-75b6c4bb13fcc6d54a249b7885b212f473d654a3.tar.bz2
added a few dirs to the list
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sound/soundsettings.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/settings/sound/soundsettings.cpp b/noncore/settings/sound/soundsettings.cpp
index 6fea3ed..a163d38 100644
--- a/noncore/settings/sound/soundsettings.cpp
+++ b/noncore/settings/sound/soundsettings.cpp
@@ -205,36 +205,40 @@ void SoundSettings::micChanged( bool )
205} 205}
206 206
207void SoundSettings::updateStorageCombo() { 207void SoundSettings::updateStorageCombo() {
208 208
209 Config config( "Vmemo" ); 209 Config config( "Vmemo" );
210 config.setGroup( "System" ); 210 config.setGroup( "System" );
211 QString loc = config.readEntry("RecLocation","/"); 211 QString loc = config.readEntry("RecLocation","/");
212int i=0; 212int i=0;
213int set=0; 213int set=0;
214 StorageInfo storageInfo; 214 StorageInfo storageInfo;
215 QString sName, sPath; 215 QString sName, sPath;
216 QStringList list; 216 QStringList list;
217 list << "Documents : "+QPEApplication::documentDir();
218 list << "tmp : /tmp";
219
217 const QList<FileSystem> &fs = storageInfo.fileSystems(); 220 const QList<FileSystem> &fs = storageInfo.fileSystems();
218 QListIterator<FileSystem> it ( fs ); 221 QListIterator<FileSystem> it ( fs );
219 for( ; it.current(); ++it ){ 222 for( ; it.current(); ++it ){
220 const QString name = (*it)->name(); 223 const QString name = (*it)->name();
221 const QString path = (*it)->path(); 224 const QString path = (*it)->path();
222 qDebug("storage name "+name +" storage path is "+path); 225 qDebug("storage name "+name +" storage path is "+path);
223 list << name + ": " +path; 226 list << name + ": " +path;
224 if( loc.find( path,0,TRUE) != -1) 227 if( loc.find( path,0,TRUE) != -1)
225 set = i; 228 set = i;
226// if(dit.current()->file().find(path) != -1 ) storage=name; 229// if(dit.current()->file().find(path) != -1 ) storage=name;
227 i++; 230 i++;
228 } 231 }
232
229 LocationComboBox->insertStringList(list); 233 LocationComboBox->insertStringList(list);
230 qDebug("set item %d", set); 234 qDebug("set item %d", set);
231 LocationComboBox->setCurrentItem(set); 235 LocationComboBox->setCurrentItem(set);
232} 236}
233 237
234void SoundSettings::setLocation(const QString & string) { 238void SoundSettings::setLocation(const QString & string) {
235 Config config( "Vmemo" ); 239 Config config( "Vmemo" );
236 config.setGroup( "System" ); 240 config.setGroup( "System" );
237 config.writeEntry("RecLocation",string); 241 config.writeEntry("RecLocation",string);
238 qDebug("set location "+string); 242 qDebug("set location "+string);
239 config.write(); 243 config.write();
240} 244}