attendee.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
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
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
This file is part of the documentation for libkcal Library Version 3.2.2.