• Skip to content
  • Skip to link menu
KDE 4.3 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 #include <QtCore/QStringList>
00034 
00035 #include "listbase.h"
00036 #include "person.h"
00037 
00038 namespace KCal {
00039 
00057 class KCAL_EXPORT Attendee : private Person
00058 {
00059   public:
00060     using Person::setEmail;
00061     using Person::email;
00062     using Person::setName;
00063     using Person::name;
00064     using Person::fullName;
00065 
00070     enum PartStat {
00071       NeedsAction,     
00072       Accepted,        
00073       Declined,        
00074       Tentative,       
00075       Delegated,       
00076       Completed,       
00077       InProcess,       
00078       None
00079     };
00080 
00084     enum Role {
00085       ReqParticipant,  
00086       OptParticipant,  
00087       NonParticipant,  
00088       Chair            
00089     };
00090 
00094     typedef ListBase<Attendee> List;
00095 
00108     Attendee( const QString &name, const QString &email,
00109               bool rsvp = false, PartStat status = None,
00110               Role role = ReqParticipant, const QString &uid = QString() );
00111 
00117     Attendee( const Attendee &attendee );
00118 
00122     ~Attendee();
00123 
00131     void setRole( Role role );
00132 
00138     Role role() const;
00139 
00145     QString roleStr() const;
00146 
00154     static QString roleName( Role role );
00155 
00159     static QStringList roleList();
00160 
00168     void setUid ( const QString &uid );
00169 
00175     QString uid() const;
00176 
00184     void setStatus( PartStat status );
00185 
00191     PartStat status() const;
00192 
00198     QString statusStr() const;
00199 
00207     static QString statusName( PartStat status );
00208 
00212     static QStringList statusList();
00213 
00222     void setRSVP( bool rsvp );
00223 
00229     bool RSVP() const;
00230 
00236     bool operator==( const Attendee &attendee );
00237 
00244     void setDelegate( const QString &delegate );
00245 
00250     QString delegate() const;
00251 
00258     void setDelegator( const QString &delegator );
00259 
00264     QString delegator() const;
00265 
00271     Attendee &operator=( const Attendee &attendee );
00272 
00273   private:
00274     //@cond PRIVATE
00275     class Private;
00276     Private *const d;
00277     //@endcond
00278 };
00279 
00280 }
00281 
00282 #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
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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