From bc88219d0a9cf935d90c88fe75e238e86c675937 Mon Sep 17 00:00:00 2001 From: zecke Date: Sat, 28 Sep 2002 18:29:02 +0000 Subject: io_layer take Profile instead of Config Profile added including some Config like stuff io_serial getBaud -> baud a default for gcc3 later tabdwidget will be our central widget profileconfig I needed groups() and clearAll that's pretty much it --- (limited to 'noncore/apps/opie-console/profilemanager.h') 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 @@ +#ifndef OPIE_PROFILE_MANAGER_H +#define OPIE_PROFILE_MANAGER_H + +#include + +#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 ); + Session* fromProfile( const Profile& ); + void save(); +private: + MetaFactory* m_fact; + Profile::ValueList m_list; +}; +#endif -- cgit v0.9.0.2