blob: 33b70957b2b47cda091c0232f539d604b71fe68a (
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& , QWidget* parent = 0l);
void setProfiles( const Profile::ValueList& );
void save();
private:
MetaFactory* m_fact;
Profile::ValueList m_list;
};
#endif
|