author | zecke <zecke> | 2002-10-02 12:25:01 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-02 12:25:01 (UTC) |
commit | 6d20f295c578281b043073a5c0dd668fe754581a (patch) (side-by-side diff) | |
tree | b34f24c6ad01589dca15eb4ef40640b5e9e57013 /noncore/apps/opie-console/profilemanager.cpp | |
parent | ff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38 (diff) | |
download | opie-6d20f295c578281b043073a5c0dd668fe754581a.zip opie-6d20f295c578281b043073a5c0dd668fe754581a.tar.gz opie-6d20f295c578281b043073a5c0dd668fe754581a.tar.bz2 |
Commit my files so other people can play with them
Diffstat (limited to 'noncore/apps/opie-console/profilemanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profilemanager.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/profilemanager.cpp b/noncore/apps/opie-console/profilemanager.cpp index 24256a5..72a5117 100644 --- a/noncore/apps/opie-console/profilemanager.cpp +++ b/noncore/apps/opie-console/profilemanager.cpp @@ -73,8 +73,21 @@ void ProfileManager::save( ) { QMap<QString, QString> map = (*it).conf(); QMap<QString, QString>::Iterator it; for ( it = map.begin(); it != map.end(); ++it ) { conf.writeEntry( it.key(), it.data() ); } } - // FIXME save +} +void ProfileManager::setProfiles( const Profile::ValueList& list ) { + m_list = list; +}; +Profile ProfileManager::profile( const QString& name )const { + Profile prof; + Profile::ValueList::ConstIterator it; + for ( it = m_list.begin(); it != m_list.end(); ++it ) { + if ( name == (*it).name() ) { + prof = (*it); + break; + } + } + return prof; } |