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 | |||
@@ -78,3 +78,16 @@ void ProfileManager::save( ) { | |||
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 | } |