kitchensync
profile.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KITCHENSYNC_PROFILE_H
00022 #define KITCHENSYNC_PROFILE_H
00023
00024 #include <qmap.h>
00025 #include <qstring.h>
00026
00027 #include "actionpartservice.h"
00028
00029 #include <kdepimmacros.h>
00030
00031 namespace KSync {
00032
00038 class KDE_EXPORT Profile
00039 {
00040 public:
00041 typedef QMap<QString, QString> PathMap;
00042 bool operator==( const Profile& );
00043
00044 typedef QValueList<Profile> List;
00045
00050 Profile();
00051
00055 Profile( const Profile & );
00056
00060 ~Profile();
00061
00065 QString name() const;
00066
00070 QString uid() const;
00071
00076 QString pixmap() const;
00077
00082 bool confirmSync() const;
00083
00088 bool confirmDelete() const;
00089
00094 void setName( const QString &name ) ;
00095
00100 void setUid( const QString &id );
00101
00106 void setPixmap( const QString &pix);
00107
00112 ActionPartService::List actionParts() const;
00113
00118 void setActionParts( const ActionPartService::List &lst );
00119
00124 QString path( const QString &partName ) const;
00125
00132 void setPath( const QString &partName, const QString &path );
00133
00137 void setPaths( const PathMap & );
00138
00142 PathMap paths() const;
00143
00147 void setConfirmSync( bool );
00148
00152 void setConfirmDelete( bool );
00153
00157 Profile &operator=( const Profile & );
00158
00159 private:
00160 QString m_name;
00161 QString m_uid;
00162 QString m_pixmap;
00163 ActionPartService::List m_actionPartServices;
00164 PathMap m_map;
00165 bool m_confirmSync : 1;
00166 bool m_confirmDelete : 1;
00167 };
00168
00169 }
00170
00171 #endif
|