blob: 1387247937e6cab9bffd6a0ea4ff0b188d4a089d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#ifndef OPIE_PROFILE_MANAGER_H
#define OPIE_PROFILE_MANAGER_H
#include <qlist.h>
#include "session.h"
#include "profile.h"
class MetaFactory;
class ConfigWidget;
class ProfileManager {
public:
ProfileManager(MetaFactory*);
~ProfileManager();
void load();
Profile::ValueList all()const;
void clear();
/**
* also replaces the item
*/
void add( const Profile& prof );
void remove( const Profile& prof );
Profile profile(const QString& name )const;
Session* fromProfile( const Profile& );
void setProfiles( const Profile::ValueList& );
void save();
private:
MetaFactory* m_fact;
Profile::ValueList m_list;
};
#endif
|