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
00077
00078 bool operator==( const CustomProperties &properties ) const;
00079
00089 void setCustomProperty( const QByteArray &app, const QByteArray &key,
00090 const QString &value );
00091
00099 void removeCustomProperty( const QByteArray &app, const QByteArray &key );
00100
00109 QString customProperty( const QByteArray &app, const QByteArray &key ) const;
00110
00119 void setNonKDECustomProperty( const QByteArray &name, const QString &value );
00120
00127 void removeNonKDECustomProperty( const QByteArray &name );
00128
00136 QString nonKDECustomProperty( const QByteArray &name ) const;
00137
00144 void setCustomProperties( const QMap<QByteArray, QString> &properties );
00145
00150 QMap<QByteArray, QString> customProperties() const;
00151
00157
00158 CustomProperties &operator=( const CustomProperties &other );
00159
00160 protected:
00166 virtual void customPropertyUpdated() {}
00167
00168 private:
00169
00170 class Private;
00171 Private *const d;
00172
00173 };
00174
00175 }
00176
00177 #endif