00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __CALATTENDEE__H_
00025 #define __CALATTENDEE__H_
00026
00029 #include "CParticipant.h"
00030 #include <string>
00031 using namespace::std;
00032 using std::string;
00033
00036 typedef enum ParticipantRole {
00037 CHAIR = 0,
00038 REQ_PARTICIPANT,
00039 OPT_PARTICIPANT,
00040 NON_PARTICIPANT,
00041 ATTENDEE_ROLE,
00042 ORGANIZER_ROLE,
00043 DELEGATE_ROLE,
00044 OWNER_ROLE,
00045 OTHER_ROLE,
00046 ROLE_NONE
00047 };
00050 typedef enum {
00051 NEEDS_ACTION,
00052 ACCEPTED,
00053 DECLINED,
00054 TENTATIVE,
00055 DELEGATED,
00056 COMPLETED,
00057 IN_PROCESS,
00058 OTHER_STATUS,
00059 STATUS_NONE
00060 } ParticipantStatus;
00063 typedef enum {
00064
00065 INDIVIDUAL,
00066 GROUP,
00067 RESOURCE,
00068 ROOM,
00069 UNKNOWN_USER,
00070 USER_NONE
00071 } CalendarUserType;
00072
00078 class CAttendee:public CParticipant {
00079
00080 public:
00081
00085 CAttendee(CAttendee & ref);
00086
00093 CAttendee();
00094
00101 ~CAttendee();
00102
00103
00104
00105
00106 const CAttendee & operator=(const CAttendee & right);
00107
00122 bool setCalendarUserType(CalendarUserType iCalendarUserType);
00123
00131 CalendarUserType getCalendarUserType();
00132
00141 bool setMember(string szMember);
00142
00151 string getMember();
00152
00161 bool setRole(ParticipantRole iParticipantRole);
00162
00170 ParticipantRole getRole();
00171
00180 bool setParticipationStatus(ParticipantStatus iParticipantStatus);
00181
00190 ParticipantStatus getParticipationStatus();
00191
00200 bool setRSVP(bool bRsvp);
00201
00209 bool getRSVP();
00210
00220 bool setDelegatees(string szDelegatees);
00221
00230 string getDelegatees();
00231
00240 bool setDelegator(string szDelegator);
00241
00250 string getDelegator();
00254 string toString();
00255
00256
00257
00258 private:
00259
00260
00261
00262 string szMember;
00264 ParticipantRole iParticipantRole;
00266 ParticipantStatus iParticipantStatus;
00268 bool bRsvp;
00270 string szDelegatees;
00272 string szDelegators;
00274 CalendarUserType iCalendarUserType;
00277 };
00278
00279 #endif