kitchensync
profilemanager.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KSYNC_PROFILEMANAGER_H
00022 #define KSYNC_PROFILEMANAGER_H
00023
00024 #include "profileconfig.h"
00025
00026 #include <profile.h>
00027
00028 #include <qstring.h>
00029
00030 namespace KSync {
00031
00038 class ProfileManager
00039 {
00040 public:
00044 ProfileManager();
00045
00049 ProfileManager( const Profile::List &list );
00050
00054 ~ProfileManager();
00055
00059 Profile currentProfile() const;
00060
00064 void setCurrentProfile( const Profile &profile );
00065
00069 Profile::List profiles() const;
00070
00074 void setProfiles( const Profile::List &list );
00075
00079 Profile byName( const QString &name );
00080
00084
00085 Profile::List byName2( const QString &name );
00086
00087
00088
00089
00090 Profile profile( int index ) const;
00091
00095 int count() const;
00096
00100 void load();
00101
00105 void save();
00106
00110 void addProfile( const Profile & );
00111
00115 void replaceProfile( const Profile & );
00116
00120 void removeProfile( const Profile & );
00121
00122 private:
00123 ProfileConfig mProfileConfig;
00124
00125 Profile mCurrentProfile;
00126 Profile::List mProfiles;
00127 };
00128
00129 }
00130
00131
00132 #endif
|