• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KCalCore Library

  • kcalcore
customproperties.h
Go to the documentation of this file.
1/*
2 This file is part of the kcalcore library.
3
4 Copyright (c) 2002,2006,2010 David Jarvie <djarvie@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
29#ifndef KCALCORE_CUSTOMPROPERTIES_H
30#define KCALCORE_CUSTOMPROPERTIES_H
31
32#include "kcalcore_export.h"
33
34#include <QtCore/QMap>
35#include <QtCore/QString>
36
37namespace KCalCore {
38
51class KCALCORE_EXPORT CustomProperties
52{
53 friend KCALCORE_EXPORT QDataStream &operator<<(QDataStream &s,
54 const KCalCore::CustomProperties &properties);
55 friend KCALCORE_EXPORT QDataStream &operator>>(QDataStream &s,
56 KCalCore::CustomProperties &properties);
57public:
61 CustomProperties();
62
67 CustomProperties(const CustomProperties &other);
68
72 virtual ~CustomProperties();
73
79 bool operator==(const CustomProperties &properties) const;
80
90 void setCustomProperty(const QByteArray &app, const QByteArray &key,
91 const QString &value);
92
100 void removeCustomProperty(const QByteArray &app, const QByteArray &key);
101
110 QString customProperty(const QByteArray &app, const QByteArray &key) const;
111
120 static QByteArray customPropertyName(const QByteArray &app, const QByteArray &key);
121
134 void setNonKDECustomProperty(const QByteArray &name, const QString &value,
135 const QString &parameters = QString());
136
143 void removeNonKDECustomProperty(const QByteArray &name);
144
152 QString nonKDECustomProperty(const QByteArray &name) const;
153
162 QString nonKDECustomPropertyParameters(const QByteArray &name) const;
163
170 void setCustomProperties(const QMap<QByteArray, QString> &properties);
171
176 QMap<QByteArray, QString> customProperties() const;
177
183 CustomProperties &operator=(const CustomProperties &other);
184
185protected:
191 virtual void customPropertyUpdate();
192
198 virtual void customPropertyUpdated();
199
204 virtual void virtual_hook(int id, void *data);
205
206private:
207 //@cond PRIVATE
208 class Private;
209 Private *const d;
210 //@endcond
211};
212
216KCALCORE_EXPORT QDataStream &operator<<(QDataStream &stream,
217 const KCalCore::CustomProperties &properties);
218
222KCALCORE_EXPORT QDataStream &operator>>(QDataStream &stream,
223 KCalCore::CustomProperties &properties);
224
225}
226
227#endif
KCalCore::CustomProperties
A class to manage custom calendar properties.
Definition: customproperties.h:52
KCalCore::CustomProperties::operator>>
friend KCALCORE_EXPORT QDataStream & operator>>(QDataStream &s, KCalCore::CustomProperties &properties)
Initializes the properties object from the stream.
KCalCore::CustomProperties::operator<<
friend KCALCORE_EXPORT QDataStream & operator<<(QDataStream &s, const KCalCore::CustomProperties &properties)
Serializes the properties object into the stream.
KCalCore
TODO: KDE5:
Definition: alarm.h:47
KCalCore::operator>>
KCALCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalCore::Alarm::Ptr &)
Alarm deserializer.
Definition: alarm.cpp:863
KCalCore::operator<<
KCALCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalCore::Alarm::Ptr &)
Alarm serializer.
Definition: alarm.cpp:853
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCalCore Library

Skip menu "KCalCore Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal