00001 #ifndef OPIE_PROFILE_MANAGER_H 00002 #define OPIE_PROFILE_MANAGER_H 00003 00004 #include <qlist.h> 00005 00006 #include "session.h" 00007 #include "profile.h" 00008 00009 class MetaFactory; 00010 class ConfigWidget; 00011 class ProfileManager { 00012 public: 00013 ProfileManager(MetaFactory*); 00014 ~ProfileManager(); 00015 00016 void load(); 00017 Profile::ValueList all()const; 00018 void clear(); 00022 void add( const Profile& prof ); 00023 void remove( const Profile& prof ); 00024 Profile profile(const QString& name )const; 00025 Session* fromProfile( const Profile& , QWidget* parent = 0l); 00026 void setProfiles( const Profile::ValueList& ); 00027 void save(); 00028 private: 00029 MetaFactory* m_fact; 00030 Profile::ValueList m_list; 00031 }; 00032 #endif
1.4.2