• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.11.3 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 
37 namespace KCalCore {
38 
51 class 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 );
57  public:
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 
185  protected:
191  virtual void customPropertyUpdate();
192 
198  virtual void customPropertyUpdated();
199 
204  virtual void virtual_hook( int id, void *data );
205 
206  private:
207  //@cond PRIVATE
208  class Private;
209  Private *const d;
210  //@endcond
211 };
212 
216 KCALCORE_EXPORT QDataStream &operator<<( QDataStream &stream,
217  const KCalCore::CustomProperties &properties );
218 
222 KCALCORE_EXPORT QDataStream &operator>>( QDataStream &stream,
223  KCalCore::CustomProperties &properties );
224 
225 }
226 
227 #endif
KCalCore::operator<<
KCALCORE_EXPORT QDataStream & operator<<(QDataStream &stream, const KCalCore::Attendee::Ptr &attendee)
Serializes an Attendee object into a data stream.
Definition: attendee.cpp:186
KCalCore::CustomProperties
A class to manage custom calendar properties.
Definition: customproperties.h:51
KCalCore::operator>>
KCALCORE_EXPORT QDataStream & operator>>(QDataStream &stream, KCalCore::Attendee::Ptr &attendee)
Initializes an Attendee object from a data stream.
Definition: attendee.cpp:199
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:02:04 by doxygen 1.8.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.11.3 API Reference

Skip menu "kdepimlibs-4.11.3 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