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 @@ -75,6 +75,19 @@ void ProfileManager::save( ) { 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; } |