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

KCal Library

  • kcal
attendee.h
Go to the documentation of this file.
1 /*
2  This file is part of the kcal library.
3 
4  Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@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 KCAL_ATTENDEE_H
30 #define KCAL_ATTENDEE_H
31 
32 #include <QtCore/QString>
33 #include <QtCore/QStringList>
34 
35 #include "listbase.h"
36 #include "person.h"
37 #include "customproperties.h"
38 
39 namespace KCal {
40 
58 class KCAL_EXPORT_DEPRECATED Attendee : private Person
59 {
60  public:
61  using Person::setEmail;
62  using Person::email;
63  using Person::setName;
64  using Person::name;
65  using Person::fullName;
66 
71  enum PartStat {
72  NeedsAction,
73  Accepted,
74  Declined,
75  Tentative,
76  Delegated,
77  Completed,
78  InProcess,
79  None
80  };
81 
85  enum Role {
86  ReqParticipant,
87  OptParticipant,
88  NonParticipant,
89  Chair
90  };
91 
95  typedef ListBase<Attendee> List;
96 
109  Attendee( const QString &name, const QString &email,
110  bool rsvp = false, PartStat status = None,
111  Role role = ReqParticipant, const QString &uid = QString() );
112 
118  Attendee( const Attendee &attendee );
119 
123  ~Attendee();
124 
132  void setRole( Role role );
133 
139  Role role() const;
140 
146  QString roleStr() const;
147 
155  static QString roleName( Role role );
156 
160  static QStringList roleList();
161 
169  void setUid ( const QString &uid );
170 
176  QString uid() const;
177 
185  void setStatus( PartStat status );
186 
192  PartStat status() const;
193 
199  QString statusStr() const;
200 
208  static QString statusName( PartStat status );
209 
213  static QStringList statusList();
214 
223  void setRSVP( bool rsvp );
224 
230  bool RSVP() const;
231 
237  //KDE5: make const
238  bool operator==( const Attendee &attendee ); //krazy:exclude=operators
239 
246  void setDelegate( const QString &delegate );
247 
252  QString delegate() const;
253 
260  void setDelegator( const QString &delegator );
261 
266  QString delegator() const;
267 
274  void setCustomProperty( const QByteArray &xname, const QString &xvalue );
275 
280  CustomProperties &customProperties();
281 
286  const CustomProperties &customProperties() const;
287 
293  Attendee &operator=( const Attendee &attendee );
294 
295  private:
296  //@cond PRIVATE
297  class Private;
298  Private *const d;
299  //@endcond
300 };
301 
302 }
303 
304 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:29:13 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

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

kdepimlibs-4.10.5 API Reference

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