• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KCal Library

attendee.h

Go to the documentation of this file.
00001 /*
00002   This file is part of the kcal library.
00003 
00004   Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
00005 
00006   This library is free software; you can redistribute it and/or
00007   modify it under the terms of the GNU Library General Public
00008   License as published by the Free Software Foundation; either
00009   version 2 of the License, or (at your option) any later version.
00010 
00011   This library is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014   Library General Public License for more details.
00015 
00016   You should have received a copy of the GNU Library General Public License
00017   along with this library; see the file COPYING.LIB.  If not, write to
00018   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019   Boston, MA 02110-1301, USA.
00020 */
00029 #ifndef KCAL_ATTENDEE_H
00030 #define KCAL_ATTENDEE_H
00031 
00032 #include <QtCore/QString>
00033 #include <QtCore/QStringList>
00034 
00035 #include "listbase.h"
00036 #include "person.h"
00037 #include "customproperties.h"
00038 
00039 namespace KCal {
00040 
00058 class KCAL_EXPORT_DEPRECATED Attendee : private Person
00059 {
00060   public:
00061     using Person::setEmail;
00062     using Person::email;
00063     using Person::setName;
00064     using Person::name;
00065     using Person::fullName;
00066 
00071     enum PartStat {
00072       NeedsAction,     
00073       Accepted,        
00074       Declined,        
00075       Tentative,       
00076       Delegated,       
00077       Completed,       
00078       InProcess,       
00079       None
00080     };
00081 
00085     enum Role {
00086       ReqParticipant,  
00087       OptParticipant,  
00088       NonParticipant,  
00089       Chair            
00090     };
00091 
00095     typedef ListBase<Attendee> List;
00096 
00109     Attendee( const QString &name, const QString &email,
00110               bool rsvp = false, PartStat status = None,
00111               Role role = ReqParticipant, const QString &uid = QString() );
00112 
00118     Attendee( const Attendee &attendee );
00119 
00123     ~Attendee();
00124 
00132     void setRole( Role role );
00133 
00139     Role role() const;
00140 
00146     QString roleStr() const;
00147 
00155     static QString roleName( Role role );
00156 
00160     static QStringList roleList();
00161 
00169     void setUid ( const QString &uid );
00170 
00176     QString uid() const;
00177 
00185     void setStatus( PartStat status );
00186 
00192     PartStat status() const;
00193 
00199     QString statusStr() const;
00200 
00208     static QString statusName( PartStat status );
00209 
00213     static QStringList statusList();
00214 
00223     void setRSVP( bool rsvp );
00224 
00230     bool RSVP() const;
00231 
00237     //KDE5: make const
00238     bool operator==( const Attendee &attendee ); //krazy:exclude=operators
00239 
00246     void setDelegate( const QString &delegate );
00247 
00252     QString delegate() const;
00253 
00260     void setDelegator( const QString &delegator );
00261 
00266     QString delegator() const;
00267 
00274     void setCustomProperty( const QByteArray &xname, const QString &xvalue );
00275 
00280     CustomProperties &customProperties();
00281 
00286     const CustomProperties &customProperties() const;
00287 
00293     Attendee &operator=( const Attendee &attendee );
00294 
00295   private:
00296     //@cond PRIVATE
00297     class Private;
00298     Private *const d;
00299     //@endcond
00300 };
00301 
00302 }
00303 
00304 #endif

KCal Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal