KCalendarCore
customproperties.cpp
Go to the documentation of this file.
36 // Volatile properties are not written back to the serialized format and are not compared in operator==
52 for (QMap<QByteArray, QString>::ConstIterator it = mProperties.begin(); it != mProperties.end(); ++it) {
58 for (QMap<QByteArray, QString>::ConstIterator it = mPropertyParameters.begin(); it != mPropertyParameters.end(); ++it) {
99 void CustomProperties::setCustomProperty(const QByteArray &app, const QByteArray &key, const QString &value)
138 void CustomProperties::setNonKDECustomProperty(const QByteArray &name, const QString &value, const QString ¶meters)
168 return d->isVolatileProperty(QLatin1String(name)) ? d->mVolatileProperties.value(name) : d->mProperties.value(name);
179 for (QMap<QByteArray, QString>::ConstIterator it = properties.begin(); it != properties.end(); ++it) {
201 for (auto it = d->mVolatileProperties.begin(), end = d->mVolatileProperties.end(); it != end; ++it) {
228 if ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9') || ch == '-') {
237 QDataStream &KCalendarCore::operator<<(QDataStream &stream, const KCalendarCore::CustomProperties &properties)
242 QDataStream &KCalendarCore::operator>>(QDataStream &stream, KCalendarCore::CustomProperties &properties)
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:821
void setNonKDECustomProperty(const QByteArray &name, const QString &value, const QString ¶meters=QString())
Create or modify a non-KDE or non-standard custom calendar property.
Definition: customproperties.cpp:138
A class to manage custom calendar properties.
Definition: customproperties.h:38
This file is part of the API for handling calendar data and defines the CustomProperties class...
virtual void customPropertyUpdate()
Called before a custom property will be changed.
Definition: customproperties.cpp:208
CustomProperties()
Constructs an empty custom properties instance.
Definition: customproperties.cpp:68
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:834
bool isEmpty() const const
virtual void customPropertyUpdated()
Called when a custom property has been changed.
Definition: customproperties.cpp:212
int length() const const
QString nonKDECustomProperty(const QByteArray &name) const
Return the value of a non-KDE or non-standard custom calendar property.
Definition: customproperties.cpp:166
bool isNull() const const
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
void removeNonKDECustomProperty(const QByteArray &name)
Delete a non-KDE or non-standard custom calendar property.
Definition: customproperties.cpp:152
const char * constData() const const
void removeCustomProperty(const QByteArray &app, const QByteArray &key)
Delete a custom calendar property.
Definition: customproperties.cpp:119
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const const
QMap::iterator end()
QMap::iterator begin()
QString customProperty(const QByteArray &app, const QByteArray &key) const
Return the value of a custom calendar property.
Definition: customproperties.cpp:124
QMap< QByteArray, QString > customProperties() const
Returns all custom calendar property key/value pairs.
Definition: customproperties.cpp:198
void setCustomProperties(const QMap< QByteArray, QString > &properties)
Initialise the alarm's custom calendar properties to the specified key/value pairs.
Definition: customproperties.cpp:176
QMap::iterator insert(const Key &key, const T &value)
bool operator==(const CustomProperties &properties) const
Compare this with properties for equality.
Definition: customproperties.cpp:94
static QByteArray customPropertyName(const QByteArray &app, const QByteArray &key)
Validate and return the full name of a custom calendar property.
Definition: customproperties.cpp:129
int count(const Key &key) const const
QMap::iterator find(const Key &key)
QString nonKDECustomPropertyParameters(const QByteArray &name) const
Return the parameters of a non-KDE or non-standard custom calendar property.
Definition: customproperties.cpp:171
CustomProperties & operator=(const CustomProperties &other)
Assignment operator.
Definition: customproperties.cpp:78
const T value(const Key &key, const T &defaultValue) const const
void setCustomProperty(const QByteArray &app, const QByteArray &key, const QString &value)
Create or modify a custom calendar property.
Definition: customproperties.cpp:99
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 9 2021 22:50:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 9 2021 22:50:46 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.