summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profilemanager.cpp
authorzecke <zecke>2002-10-02 12:25:01 (UTC)
committer zecke <zecke>2002-10-02 12:25:01 (UTC)
commit6d20f295c578281b043073a5c0dd668fe754581a (patch) (side-by-side diff)
treeb34f24c6ad01589dca15eb4ef40640b5e9e57013 /noncore/apps/opie-console/profilemanager.cpp
parentff02919c1d2e83c3cb0dc1c726bf1eb636d1eb38 (diff)
downloadopie-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.cpp15
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
@@ -76,5 +76,18 @@ void ProfileManager::save( ) {
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;
}