summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profilemanager.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/profilemanager.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/profilemanager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/profilemanager.cpp b/noncore/apps/opie-console/profilemanager.cpp
index db36686..54b184d 100644
--- a/noncore/apps/opie-console/profilemanager.cpp
+++ b/noncore/apps/opie-console/profilemanager.cpp
@@ -35,12 +35,15 @@ void ProfileManager::load() {
35 prof.setTerminal( conf.readNumEntry("terminal") ); 35 prof.setTerminal( conf.readNumEntry("terminal") );
36 36
37 m_list.append( prof ); 37 m_list.append( prof );
38 } 38 }
39 39
40} 40}
41void ProfileManager::clear() {
42 m_list.clear();
43}
41Profile::ValueList ProfileManager::all()const { 44Profile::ValueList ProfileManager::all()const {
42 return m_list; 45 return m_list;
43} 46}
44Session* ProfileManager::fromProfile( const Profile& prof) { 47Session* ProfileManager::fromProfile( const Profile& prof) {
45 Session* session = new Session(); 48 Session* session = new Session();
46 session->setName( prof.name() ); 49 session->setName( prof.name() );
@@ -52,11 +55,11 @@ Session* ProfileManager::fromProfile( const Profile& prof) {
52 * load widget 55 * load widget
53 * set colors + fonts 56 * set colors + fonts
54 */ 57 */
55 return session; 58 return session;
56} 59}
57void ProfileManager::save( ) { 60void ProfileManager::save( ) {
58 m_list.clear();
59 ProfileConfig conf("opie-console-profiles"); 61 ProfileConfig conf("opie-console-profiles");
62 conf.clearAll();
60 Session* se= 0l; 63 Session* se= 0l;
61 // FIXME save 64 // FIXME save
62} 65}