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); 00058 virtual ~Attendee(); 00059 00061 void setRole( Role ); 00063 Role role() const; 00065 QString roleStr() const; 00066 static QString roleName( Role ); 00067 static QStringList roleList(); 00068 00070 QString uid() const; 00071 void setUid (QString); 00072 00074 void setStatus(PartStat s); 00076 PartStat status() const; 00078 QString statusStr() const; 00079 static QString statusName( PartStat ); 00080 static QStringList statusList(); 00081 00083 void setRSVP(bool r) { mRSVP = r; } 00085 bool RSVP() const { return mRSVP; } 00086 00087 private: 00088 bool mRSVP; 00089 Role mRole; 00090 PartStat mStatus; 00091 QString mUid; 00092 00093 // used to tell whether we have need to mail this person or not. 00094 bool mFlag; 00095 00096 class Private; 00097 Private *d; 00098 }; 00099 00100 bool operator==( const Attendee& a1, const Attendee& a2 ); 00101 00102 } 00103 00104 #endif
KDE Logo
This file is part of the documentation for libkcal Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:57:43 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003