KCal Library
customproperties.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00029 #ifndef KCAL_CUSTOMPROPERTIES_H
00030 #define KCAL_CUSTOMPROPERTIES_H
00031
00032 #include "kcal_export.h"
00033
00034 #include <QtCore/QString>
00035 #include <QtCore/QMap>
00036 #include <QtCore/QByteArray>
00037
00038 namespace KCal {
00039
00052 class KCAL_EXPORT CustomProperties
00053 {
00054 public:
00058 CustomProperties();
00059
00064 CustomProperties( const CustomProperties &other );
00065
00069 virtual ~CustomProperties();
00070
00075 bool operator==( const CustomProperties &properties ) const;
00076
00086 void setCustomProperty( const QByteArray &app, const QByteArray &key,
00087 const QString &value );
00088
00096 void removeCustomProperty( const QByteArray &app, const QByteArray &key );
00097
00106 QString customProperty( const QByteArray &app, const QByteArray &key ) const;
00107
00116 void setNonKDECustomProperty( const QByteArray &name, const QString &value );
00117
00124 void removeNonKDECustomProperty( const QByteArray &name );
00125
00133 QString nonKDECustomProperty( const QByteArray &name ) const;
00134
00141 void setCustomProperties( const QMap<QByteArray, QString> &properties );
00142
00147 QMap<QByteArray, QString> customProperties() const;
00148
00152 CustomProperties &operator=( const CustomProperties &other );
00153
00154 protected:
00160 virtual void customPropertyUpdated() {}
00161
00162 private:
00163
00164 class Private;
00165 Private *const d;
00166
00167 };
00168
00169 }
00170
00171 #endif