profile.h
00001
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 <kapabilities.h>
00028 #include <kdevice.h>
00029
00030 #include "actionpartservice.h"
00031
00032 namespace KSync {
00033
00039 class Profile
00040 {
00041 public:
00042 typedef QMap<QString, QString> PathMap;
00043 bool operator==( const Profile& );
00044
00045 typedef QValueList<Profile> List;
00046
00051 Profile();
00052
00056 Profile( const Profile & );
00057
00061 ~Profile();
00062
00066 QString name() const;
00067
00071 QString uid() const;
00072
00077 QString pixmap() const;
00078
00083 bool confirmSync() const;
00084
00089 bool confirmDelete() const;
00090
00095 void setName( const QString &name ) ;
00096
00101 void setUid( const QString &id );
00102
00107 void setPixmap( const QString &pix);
00108
00113 ActionPartService::List actionParts() const;
00114
00119 void setActionParts( const ActionPartService::List &lst );
00120
00125 QString path( const QString &partName ) const;
00126
00133 void setPath( const QString &partName, const QString &path );
00134
00138 void setPaths( const PathMap & );
00139
00143 PathMap paths() const;
00144
00148 void setConfirmSync( bool );
00149
00153 void setConfirmDelete( bool );
00154
00158 Profile &operator=( const Profile & );
00159
00160 private:
00161 QString m_name;
00162 QString m_uid;
00163 QString m_pixmap;
00164 ActionPartService::List m_actionPartServices;
00165 PathMap m_map;
00166 bool m_confirmSync : 1;
00167 bool m_confirmDelete : 1;
00168 };
00169
00170 }
00171
00172 #endif
This file is part of the documentation for kitchensync Library Version 3.3.2.