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 #include <QtCore/QStringList>
00034
00035 #include "listbase.h"
00036 #include "person.h"
00037 #include "customproperties.h"
00038
00039 namespace KCal {
00040
00058 class KCAL_EXPORT Attendee : private Person
00059 {
00060 public:
00061 using Person::setEmail;
00062 using Person::email;
00063 using Person::setName;
00064 using Person::name;
00065 using Person::fullName;
00066
00071 enum PartStat {
00072 NeedsAction,
00073 Accepted,
00074 Declined,
00075 Tentative,
00076 Delegated,
00077 Completed,
00078 InProcess,
00079 None
00080 };
00081
00085 enum Role {
00086 ReqParticipant,
00087 OptParticipant,
00088 NonParticipant,
00089 Chair
00090 };
00091
00095 typedef ListBase<Attendee> List;
00096
00109 Attendee( const QString &name, const QString &email,
00110 bool rsvp = false, PartStat status = None,
00111 Role role = ReqParticipant, const QString &uid = QString() );
00112
00118 Attendee( const Attendee &attendee );
00119
00123 ~Attendee();
00124
00132 void setRole( Role role );
00133
00139 Role role() const;
00140
00146 QString roleStr() const;
00147
00155 static QString roleName( Role role );
00156
00160 static QStringList roleList();
00161
00169 void setUid ( const QString &uid );
00170
00176 QString uid() const;
00177
00185 void setStatus( PartStat status );
00186
00192 PartStat status() const;
00193
00199 QString statusStr() const;
00200
00208 static QString statusName( PartStat status );
00209
00213 static QStringList statusList();
00214
00223 void setRSVP( bool rsvp );
00224
00230 bool RSVP() const;
00231
00237
00238 bool operator==( const Attendee &attendee );
00239
00246 void setDelegate( const QString &delegate );
00247
00252 QString delegate() const;
00253
00260 void setDelegator( const QString &delegator );
00261
00266 QString delegator() const;
00267
00274 void setCustomProperty( const QByteArray &xname, const QString &xvalue );
00275
00280 CustomProperties &customProperties();
00281
00286 const CustomProperties &customProperties() const;
00287
00293 Attendee &operator=( const Attendee &attendee );
00294
00295 private:
00296
00297 class Private;
00298 Private *const d;
00299
00300 };
00301
00302 }
00303
00304 #endif