00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef INCL_CLIENTAPPEXCEPTION
00020 #define INCL_CLIENTAPPEXCEPTION
00021
00026 #include "outlook/defs.h"
00027
00028 #include <string>
00029
00030
00031
00039 class ClientAppException {
00040
00041 private:
00042
00043
00044 ExceptionPtr pException;
00045 _AppointmentItemPtr pAppointment;
00048
00049 std::wstring subject;
00050 std::wstring body;
00051 std::wstring location;
00052 std::wstring start;
00053 std::wstring end;
00054 std::wstring allDayEvent;
00055 std::wstring busyStatus;
00056 std::wstring reminderSet;
00057 std::wstring reminderMinutesBeforeStart;
00058 std::wstring importance;
00059
00060
00061 DATE originalDate;
00062 BOOL deleted;
00063
00064
00068 bool isUpdated;
00069
00071 bool saved;
00072
00073
00074 public:
00075
00077 ClientAppException();
00078
00080 ~ClientAppException();
00081
00082
00085 void setCOMPtr(ExceptionPtr& ptr);
00086 void setCOMPtr(_AppointmentItemPtr& ptr);
00087
00088
00090 int read();
00092 int saveOccurrence();
00094 int deleteOccurrence();
00095
00096
00098 bool isSaved();
00099
00100
00101
00102
00103
00104
00105
00106 const BOOL getDeleted ();
00107 const DATE getOriginalDate();
00108 void setDeleted (const BOOL);
00109 void setOriginalDate(DATE val);
00110
00111
00113 const std::wstring getAppProperty(const std::wstring& propertyName);
00115 int setAppProperty(const std::wstring& propertyName, const std::wstring& propertyValue);
00116
00117
00118
00119 const std::wstring getSubject ();
00120 const std::wstring getBody ();
00121 const std::wstring getLocation ();
00122 const std::wstring getStart ();
00123 const std::wstring getEnd ();
00124 const std::wstring getAllDayEvent ();
00125 const std::wstring getBusyStatus ();
00126 const std::wstring getReminderSet ();
00127 const std::wstring getReminderMinutesBeforeStart();
00128 const std::wstring getImportance ();
00129
00130 void setSubject (const std::wstring& val);
00131 void setBody (const std::wstring& val);
00132 void setLocation (const std::wstring& val);
00133 void setStart (const std::wstring& val);
00134 void setEnd (const std::wstring& val);
00135 void setAllDayEvent (const std::wstring& val);
00136 void setBusyStatus (const std::wstring& val);
00137 void setReminderSet (const std::wstring& val);
00138 void setReminderMinutesBeforeStart(const std::wstring& val);
00139 void setImportance (const std::wstring& val);
00140
00141
00143 const std::wstring formatOriginalDate(BOOL isAllDay, const std::wstring& start);
00144 const std::wstring formatOriginalDate();
00145
00146 };
00147
00150 #endif