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 );
00060
virtual ~Attendee();
00061
00065
00066
void setRole( Role );
00067
00071 Role
role()
const;
00072
00076
QString roleStr()
const;
00080
static QString roleName( Role );
00084
static QStringList roleList();
00085
00089
QString uid()
const;
00093
void setUid (
const QString & );
00094
00098
void setStatus( PartStat s );
00099
00103 PartStat
status()
const;
00104
00108
QString statusStr()
const;
00112
static QString statusName( PartStat );
00116
static QStringList statusList();
00117
00121 void setRSVP(
bool r ) { mRSVP = r; }
00125 bool RSVP()
const {
return mRSVP; }
00126
00127
private:
00128
bool mRSVP;
00129 Role mRole;
00130 PartStat mStatus;
00131
QString mUid;
00132
00133
class Private;
00134 Private *d;
00135 };
00136
00137
bool operator==(
const Attendee& a1,
const Attendee& a2 );
00138
00139 }
00140
00141
#endif
This file is part of the documentation for libkcal Library Version 3.3.0.