attendee.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _ATTENDEE_H
00022 #define _ATTENDEE_H
00023
00024 #include <qstring.h>
00025
00026 #include "person.h"
00027
00028 namespace KCal {
00029
00033 class Attendee : public Person
00034 {
00035 public:
00036 enum PartStat { NeedsAction, Accepted, Declined, Tentative,
00037 Delegated, Completed, InProcess };
00038 enum Role { ReqParticipant, OptParticipant, NonParticipant, Chair };
00039
00049 Attendee(const QString& name, const QString &email,
00050 bool rsvp=false, PartStat status=NeedsAction,
00051 Role role=ReqParticipant,const QString& u=QString::null);
00053 virtual ~Attendee();
00054
00056 void setRole( Role );
00058 Role role() const;
00060 QString roleStr() const;
00061 static QString roleName( Role );
00062 static QStringList roleList();
00063
00065 QString uid();
00066 void setUid (QString);
00067
00069 void setStatus(PartStat s);
00071 PartStat status() const;
00073 QString statusStr() const;
00074 static QString statusName( PartStat );
00075 static QStringList statusList();
00076
00078 void setRSVP(bool r) { mRSVP = r; }
00080 bool RSVP() const { return mRSVP; }
00081
00082 private:
00083 bool mRSVP;
00084 Role mRole;
00085 PartStat mStatus;
00086 QString mUid;
00087
00088
00089 bool mFlag;
00090 };
00091
00092 }
00093
00094 #endif
This file is part of the documentation for kdelibs Version 3.1.5.