KCal Library
attendee.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00029 #ifndef KCAL_ATTENDEE_H
00030 #define KCAL_ATTENDEE_H
00031
00032 #include <QtCore/QString>
00033
00034 #include "listbase.h"
00035 #include "person.h"
00036
00037 namespace KCal {
00038
00056 class KCAL_EXPORT Attendee : public Person
00057 {
00058 public:
00059
00064 enum PartStat {
00065 NeedsAction,
00066 Accepted,
00067 Declined,
00068 Tentative,
00069 Delegated,
00070 Completed,
00071 InProcess
00072 };
00073
00077 enum Role {
00078 ReqParticipant,
00079 OptParticipant,
00080 NonParticipant,
00081 Chair
00082 };
00083
00087 typedef ListBase<Attendee> List;
00088
00101 Attendee( const QString &name, const QString &email,
00102 bool rsvp = false, PartStat status = NeedsAction,
00103 Role role = ReqParticipant, const QString &uid = QString() );
00104
00108 virtual ~Attendee();
00109
00117 void setRole( Role role );
00118
00124 Role role() const;
00125
00131 QString roleStr() const;
00132
00140 static QString roleName( Role role );
00141
00145 static QStringList roleList();
00146
00154 void setUid ( const QString &uid );
00155
00161 QString uid() const;
00162
00170 void setStatus( PartStat status );
00171
00177 PartStat status() const;
00178
00184 QString statusStr() const;
00185
00193 static QString statusName( PartStat status );
00194
00198 static QStringList statusList();
00199
00208 void setRSVP( bool rsvp );
00209
00215 bool RSVP() const;
00216
00222 bool operator==( const Attendee &attendee );
00223
00230 void setDelegate( const QString &delegate );
00231
00236 QString delegate() const;
00237
00244 void setDelegator( const QString &delegator );
00245
00250 QString delegator() const;
00251
00252 private:
00253
00254 class Private;
00255 Private *const d;
00256
00257 };
00258
00259 }
00260
00261 #endif