00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef INCL_CLIENTAPPOINTMENT
00037 #define INCL_CLIENTAPPOINTMENT
00038
00043 #include "outlook/defs.h"
00044 #include "outlook/ClientItem.h"
00045 #include "outlook/ClientRecurrence.h"
00046 #include "outlook/ClientFolder.h"
00047 #include "outlook/ClientRecipient.h"
00048
00049 #include <string>
00050
00051
00052
00060 class ClientAppointment : public ClientItem {
00061
00062 private:
00063
00065 _AppointmentItemPtr pAppointment;
00066
00068 Redemption::ISafeAppointmentItemPtr pSafeAppointment;
00069
00071 ClientRecurrence recPattern;
00072
00073
00074 void createSafeAppointmentInstance();
00075 void initializeRecPattern();
00076
00077 bool isSecureProperty (const std::wstring& propertyName);
00078 bool isComplexProperty(const std::wstring& propertyName);
00079
00080 const std::wstring getSafeProperty (const std::wstring& propertyName);
00081 const std::wstring getComplexProperty(const std::wstring& propertyName);
00082
00083 int setComplexProperty(const std::wstring& propertyName, const std::wstring& propertyValue);
00084
00089 TIME_ZONE_INFORMATION timeZoneInfo;
00090
00091 public:
00092
00093
00095 ClientAppointment();
00096 ClientAppointment(const ClientAppointment& c);
00097 ClientAppointment operator=(const ClientAppointment& c);
00098
00100 ~ClientAppointment();
00101
00102
00104 void setCOMPtr(_AppointmentItemPtr& ptr, const std::wstring& itemID);
00105 void setCOMPtr(_AppointmentItemPtr& ptr);
00106
00108 _AppointmentItemPtr& getCOMPtr();
00109
00110
00112 ClientRecurrence* getRecPattern();
00114 int clearRecPattern();
00115
00116
00117
00118
00119
00120 int saveItem();
00121 int deleteItem();
00122 ClientItem* copyItem();
00123 int moveItem(ClientFolder* destFolder);
00124
00125
00126 void setRecurringTimezone(const TIME_ZONE_INFORMATION* tz) {timeZoneInfo = *tz; }
00127
00128 const TIME_ZONE_INFORMATION& getRecurringTimezone() const { return timeZoneInfo; }
00129
00130
00132 bool isAllDayEvent();
00133
00134 DATE localStartDate;
00135 DATE localEndDate;
00136
00137 std::map<int, ClientRecipient> getAttendees();
00138 ClientRecipient getAttendee(int index);
00139 bool addAttendee(const ClientRecipient & attendee);
00140 bool removeAttendee(int index);
00141 void clearAttendees();
00142 int getNumAttendees();
00143
00148 DATE getCreationTime();
00149
00150 };
00151
00154 #endif