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_CLIENTAPPEXCEPTION
00037 #define INCL_CLIENTAPPEXCEPTION
00038
00043
00044 class ClientAppointment;
00045
00046 #include "outlook/defs.h"
00047 #include "outlook/ClientRecipient.h"
00048
00049 #include <string>
00050
00051
00052
00060 class ClientAppException {
00061
00062 private:
00063
00064
00065 ExceptionPtr pException;
00066 _AppointmentItemPtr pAppointment;
00069
00070 std::wstring subject;
00071 std::wstring body;
00072 std::wstring location;
00073 std::wstring start;
00074 std::wstring end;
00075 std::wstring allDayEvent;
00076 std::wstring busyStatus;
00077 std::wstring reminderSet;
00078 std::wstring reminderMinutesBeforeStart;
00079 std::wstring importance;
00080
00081 std::vector<std::wstring> attendees;
00082
00083
00084 DATE originalDate;
00085 BOOL deleted;
00086
00087
00091 bool isUpdated;
00092
00094 bool saved;
00095
00096
00097 public:
00098
00100 ClientAppException();
00101
00103 ~ClientAppException();
00104
00105
00108 void setCOMPtr(ExceptionPtr& ptr);
00109 void setCOMPtr(_AppointmentItemPtr& ptr);
00110
00111
00113 int read();
00115 int saveOccurrence();
00117 int deleteOccurrence();
00118
00119
00121 bool isSaved();
00122
00123
00124
00125
00126
00127
00128
00129 const BOOL getDeleted ();
00130 const DATE getOriginalDate();
00131 void setDeleted (const BOOL);
00132 void setOriginalDate(DATE val);
00133
00134
00136 const std::wstring getAppProperty(const std::wstring& propertyName);
00138 int setAppProperty(const std::wstring& propertyName, const std::wstring& propertyValue);
00139
00140
00141
00142 const std::wstring getSubject ();
00143 const std::wstring getBody ();
00144 const std::wstring getLocation ();
00145 const std::wstring getStart ();
00146 const std::wstring getEnd ();
00147 const std::wstring getAllDayEvent ();
00148 const std::wstring getBusyStatus ();
00149 const std::wstring getReminderSet ();
00150 const std::wstring getReminderMinutesBeforeStart();
00151 const std::wstring getImportance ();
00152
00153 void setSubject (const std::wstring& val);
00154 void setBody (const std::wstring& val);
00155 void setLocation (const std::wstring& val);
00156 void setStart (const std::wstring& val);
00157 void setEnd (const std::wstring& val);
00158 void setAllDayEvent (const std::wstring& val);
00159 void setBusyStatus (const std::wstring& val);
00160 void setReminderSet (const std::wstring& val);
00161 void setReminderMinutesBeforeStart(const std::wstring& val);
00162 void setImportance (const std::wstring& val);
00163
00164
00166 const std::wstring formatOriginalDate(BOOL isAllDay, const std::wstring& start);
00167 const std::wstring formatOriginalDate();
00168
00169 std::vector<std::wstring> getAttendees();
00170 void inheritAttendees(ClientAppointment * cApp);
00171
00172 private:
00173 void processAttendees(const std::map<int, ClientRecipient> & attendeeList);
00174 };
00175
00178 #endif