00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef INCL_CLIENTAPPOINTMENT
00020 #define INCL_CLIENTAPPOINTMENT
00021
00026 #include "outlook/defs.h"
00027 #include "outlook/ClientItem.h"
00028 #include "outlook/ClientRecurrence.h"
00029
00030 #include <string>
00031
00032
00033
00041 class ClientAppointment : public ClientItem {
00042
00043 private:
00044
00046 _AppointmentItemPtr pAppointment;
00047
00049 Redemption::ISafeAppointmentItemPtr pSafeAppointment;
00050
00052 ClientRecurrence recPattern;
00053
00054
00055 void createSafeAppointmentInstance();
00056 void initializeRecPattern();
00057
00058 bool isSecureProperty (const std::wstring& propertyName);
00059 bool isComplexProperty(const std::wstring& propertyName);
00060
00061 const std::wstring getSafeProperty (const std::wstring& propertyName);
00062 const std::wstring getComplexProperty(const std::wstring& propertyName);
00063
00064 int setComplexProperty(const std::wstring& propertyName, const std::wstring& propertyValue);
00065
00066
00067 public:
00068
00069
00071 ClientAppointment();
00072 ClientAppointment(const ClientAppointment& c);
00073 ClientAppointment operator=(const ClientAppointment& c);
00074
00076 ~ClientAppointment();
00077
00078
00080 void setCOMPtr(_AppointmentItemPtr& ptr, const std::wstring& itemID);
00081 void setCOMPtr(_AppointmentItemPtr& ptr);
00082
00084 _AppointmentItemPtr& getCOMPtr();
00085
00086
00088 ClientRecurrence* getRecPattern();
00090 int clearRecPattern();
00091
00092
00093
00094
00095
00096 int saveItem();
00097 int deleteItem();
00098 ClientItem* copyItem();
00099
00100
00101
00103 bool isAllDayEvent();
00104
00105 };
00106
00109 #endif