libkcal Library API Documentation

attendee.h

00001 /* 00002 This file is part of libkcal. 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., 59 Temple Place - Suite 330, 00019 Boston, MA 02111-1307, USA. 00020 */ 00021 00022 #ifndef KCAL_ATTENDEE_H 00023 #define KCAL_ATTENDEE_H 00024 00025 #include <qstring.h> 00026 00027 #include "listbase.h" 00028 #include "person.h" 00029 00030 namespace KCal { 00031 00035 class Attendee : public Person 00036 { 00037 public: 00038 enum PartStat { NeedsAction, Accepted, Declined, Tentative, 00039 Delegated, Completed, InProcess }; 00040 enum Role { ReqParticipant, OptParticipant, NonParticipant, Chair }; 00041 00042 typedef ListBase<Attendee> List; 00043 00054 Attendee( const QString &name, const QString &email, 00055 bool rsvp = false, PartStat status = NeedsAction, 00056 Role role = ReqParticipant, const QString &u = QString::null ); 00060 virtual ~Attendee(); 00061 00065 // FIXME: List of roles still has to be documented. 00066 void setRole( Role ); 00067 00071 Role role() const; 00072 00076 QString roleStr() const; 00080 static QString roleName( Role ); 00084 static QStringList roleList(); 00085 00089 QString uid() const; 00093 void setUid ( const QString & ); 00094 00098 void setStatus( PartStat s ); 00099 00103 PartStat status() const; 00104 00108 QString statusStr() const; 00112 static QString statusName( PartStat ); 00116 static QStringList statusList(); 00117 00121 void setRSVP( bool r ) { mRSVP = r; } 00125 bool RSVP() const { return mRSVP; } 00126 00127 private: 00128 bool mRSVP; 00129 Role mRole; 00130 PartStat mStatus; 00131 QString mUid; 00132 00133 // used to tell whether we have need to mail this person or not. 00134 bool mFlag; 00135 00136 class Private; 00137 Private *d; 00138 }; 00139 00140 bool operator==( const Attendee& a1, const Attendee& a2 ); 00141 00142 } 00143 00144 #endif
KDE Logo
This file is part of the documentation for libkcal Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 27 12:49:07 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003