Diffstat (limited to 'noncore/apps/opie-console/profilemanager.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profilemanager.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profilemanager.h b/noncore/apps/opie-console/profilemanager.h new file mode 100644 index 0000000..d4d0fd0 --- a/dev/null +++ b/noncore/apps/opie-console/profilemanager.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef OPIE_PROFILE_MANAGER_H | ||
2 | #define OPIE_PROFILE_MANAGER_H | ||
3 | |||
4 | #include <qlist.h> | ||
5 | |||
6 | #include "session.h" | ||
7 | #include "profile.h" | ||
8 | |||
9 | class MetaFactory; | ||
10 | class ConfigWidget; | ||
11 | class ProfileManager { | ||
12 | public: | ||
13 | ProfileManager(MetaFactory*); | ||
14 | ~ProfileManager(); | ||
15 | |||
16 | void load(); | ||
17 | Profile::ValueList all()const; | ||
18 | void clear(); | ||
19 | /** | ||
20 | * also replaces the item | ||
21 | */ | ||
22 | void add( const Profile& prof ); | ||
23 | void remove( const Profile& prof ); | ||
24 | Session* fromProfile( const Profile& ); | ||
25 | void save(); | ||
26 | private: | ||
27 | MetaFactory* m_fact; | ||
28 | Profile::ValueList m_list; | ||
29 | }; | ||
30 | #endif | ||