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 | |||
@@ -71,10 +71,23 @@ void ProfileManager::save( ) { | |||
71 | conf.writeEntry( "terminal", (*it).terminal() ); | 71 | conf.writeEntry( "terminal", (*it).terminal() ); |
72 | /* now the config stuff */ | 72 | /* now the config stuff */ |
73 | QMap<QString, QString> map = (*it).conf(); | 73 | QMap<QString, QString> map = (*it).conf(); |
74 | QMap<QString, QString>::Iterator it; | 74 | QMap<QString, QString>::Iterator it; |
75 | for ( it = map.begin(); it != map.end(); ++it ) { | 75 | for ( it = map.begin(); it != map.end(); ++it ) { |
76 | conf.writeEntry( it.key(), it.data() ); | 76 | conf.writeEntry( it.key(), it.data() ); |
77 | } | 77 | } |
78 | } | 78 | } |
79 | // FIXME save | 79 | } |
80 | void ProfileManager::setProfiles( const Profile::ValueList& list ) { | ||
81 | m_list = list; | ||
82 | }; | ||
83 | Profile ProfileManager::profile( const QString& name )const { | ||
84 | Profile prof; | ||
85 | Profile::ValueList::ConstIterator it; | ||
86 | for ( it = m_list.begin(); it != m_list.end(); ++it ) { | ||
87 | if ( name == (*it).name() ) { | ||
88 | prof = (*it); | ||
89 | break; | ||
90 | } | ||
91 | } | ||
92 | return prof; | ||
80 | } | 93 | } |