• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • 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 
00034 #include "listbase.h"
00035 #include "person.h"
00036 
00037 namespace KCal {
00038 
00056 class KCAL_EXPORT Attendee : public Person
00057 {
00058   public:
00059 
00064     enum PartStat {
00065       NeedsAction,     
00066       Accepted,        
00067       Declined,        
00068       Tentative,       
00069       Delegated,       
00070       Completed,       
00071       InProcess        
00072     };
00073 
00077     enum Role {
00078       ReqParticipant,  
00079       OptParticipant,  
00080       NonParticipant,  
00081       Chair            
00082     };
00083 
00087     typedef ListBase<Attendee> List;
00088 
00101     Attendee( const QString &name, const QString &email,
00102               bool rsvp = false, PartStat status = NeedsAction,
00103               Role role = ReqParticipant, const QString &uid = QString() );
00104 
00108     virtual ~Attendee();
00109 
00117     void setRole( Role role );
00118 
00124     Role role() const;
00125 
00131     QString roleStr() const;
00132 
00140     static QString roleName( Role role );
00141 
00145     static QStringList roleList();
00146 
00154     void setUid ( const QString &uid );
00155 
00161     QString uid() const;
00162 
00170     void setStatus( PartStat status );
00171 
00177     PartStat status() const;
00178 
00184     QString statusStr() const;
00185 
00193     static QString statusName( PartStat status );
00194 
00198     static QStringList statusList();
00199 
00208     void setRSVP( bool rsvp );
00209 
00215     bool RSVP() const;
00216 
00222     bool operator==( const Attendee &attendee );
00223 
00230     void setDelegate( const QString &delegate );
00231 
00236     QString delegate() const;
00237 
00244     void setDelegator( const QString &delegator );
00245 
00250     QString delegator() const;
00251 
00252   private:
00253     //@cond PRIVATE
00254     class Private;
00255     Private *const d;
00256     //@endcond
00257 };
00258 
00259 }
00260 
00261 #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"
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.5
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