ECFreeBusySupport.cpp 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  1. /*
  2. * Copyright 2005 - 2016 Zarafa and its licensors
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Affero General Public License, version 3,
  6. * as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU Affero General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Affero General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. */
  17. #include <new>
  18. #include <kopano/platform.h>
  19. #include <kopano/memory.hpp>
  20. #include <kopano/ECInterfaceDefs.h>
  21. #include "ECFreeBusySupport.h"
  22. #include "ECFreeBusyUpdate.h"
  23. #include "ECFreeBusyData.h"
  24. #include <kopano/CommonUtil.h>
  25. #include <kopano/mapiext.h>
  26. #include <mapiutil.h>
  27. #include "freebusyutil.h"
  28. #include <kopano/mapi_ptr.h>
  29. using namespace KCHL;
  30. namespace KC {
  31. ECFreeBusySupport::ECFreeBusySupport(void)
  32. {
  33. GetClientVersion(&m_ulOutlookVersion);
  34. }
  35. ECFreeBusySupport::~ECFreeBusySupport(void)
  36. {
  37. if(m_lpFreeBusyFolder)
  38. m_lpFreeBusyFolder->Release();
  39. if(m_lpUserStore)
  40. m_lpUserStore->Release();
  41. if(m_lpPublicStore)
  42. m_lpPublicStore->Release();
  43. if(m_lpSession)
  44. m_lpSession->Release();
  45. }
  46. HRESULT ECFreeBusySupport::Create(ECFreeBusySupport **lppECFreeBusySupport)
  47. {
  48. HRESULT hr = hrSuccess;
  49. auto lpECFreeBusySupport = new(std::nothrow) ECFreeBusySupport;
  50. if (lpECFreeBusySupport == nullptr)
  51. return MAPI_E_NOT_ENOUGH_MEMORY;
  52. hr = lpECFreeBusySupport->QueryInterface(IID_ECFreeBusySupport, (void **)lppECFreeBusySupport);
  53. if(hr != hrSuccess)
  54. delete lpECFreeBusySupport;
  55. return hr;
  56. }
  57. HRESULT ECFreeBusySupport::QueryInterface(REFIID refiid, void **lppInterface)
  58. {
  59. REGISTER_INTERFACE2(ECFreeBusySupport, this);
  60. REGISTER_INTERFACE2(ECUnknown, this);
  61. if (m_ulOutlookVersion == CLIENT_VERSION_OLK2000) {
  62. REGISTER_INTERFACE(IID_IFreeBusySupport, &this->m_xFreeBusySupportOutlook2000);
  63. REGISTER_INTERFACE2(IUnknown, &this->m_xFreeBusySupportOutlook2000);
  64. } else {
  65. REGISTER_INTERFACE2(IFreeBusySupport, &this->m_xFreeBusySupport);
  66. REGISTER_INTERFACE2(IUnknown, &this->m_xFreeBusySupport);
  67. }
  68. return MAPI_E_INTERFACE_NOT_SUPPORTED;
  69. }
  70. HRESULT ECFreeBusySupport::Open(IMAPISession* lpMAPISession, IMsgStore* lpMsgStore, BOOL bStore)
  71. {
  72. HRESULT hr = hrSuccess;
  73. object_ptr<IMsgStore> lpPublicStore;
  74. if(lpMAPISession == NULL)
  75. return MAPI_E_INVALID_OBJECT;
  76. #ifdef DEBUG
  77. if (lpMsgStore) {
  78. memory_ptr<SPropValue> lpPropArray;
  79. HrGetOneProp(lpMsgStore, PR_DISPLAY_NAME_A, &lpPropArray);
  80. TRACE_MAPI(TRACE_ENTRY, "ECFreeBusySupport::Open", "Storename=%s", (lpPropArray && lpPropArray->ulPropTag == PR_DISPLAY_NAME_A) ? lpPropArray->Value.lpszA : "Error");
  81. }
  82. #endif
  83. // Hold the mapisession, the session will be released by function 'close' or
  84. // on delete the class
  85. hr = lpMAPISession->QueryInterface(IID_IMAPISession, (void**)&m_lpSession);
  86. if(hr != hrSuccess)
  87. return hr;
  88. // Open the public store for communicate with the freebusy information.
  89. hr = HrOpenECPublicStoreOnline(lpMAPISession, &~lpPublicStore);
  90. if(hr != hrSuccess)
  91. return hr;
  92. hr = lpPublicStore->QueryInterface(IID_IMsgStore, (void**)&m_lpPublicStore);
  93. if(hr != hrSuccess)
  94. return hr;
  95. if(lpMsgStore) {
  96. //Hold the use store for update freebusy
  97. hr = lpMsgStore->QueryInterface(IID_IMsgStore, (void**)&m_lpUserStore);
  98. if(hr != hrSuccess)
  99. return hr;
  100. }
  101. return hr;
  102. }
  103. HRESULT ECFreeBusySupport::Close()
  104. {
  105. if(m_lpSession)
  106. {
  107. m_lpSession->Release();
  108. m_lpSession = NULL;
  109. }
  110. if(m_lpPublicStore)
  111. {
  112. m_lpPublicStore->Release();
  113. m_lpPublicStore = NULL;
  114. }
  115. if(m_lpUserStore)
  116. {
  117. m_lpUserStore->Release();
  118. m_lpUserStore = NULL;
  119. }
  120. return S_OK;
  121. }
  122. HRESULT ECFreeBusySupport::LoadFreeBusyData(ULONG cMax, FBUser *rgfbuser, IFreeBusyData **prgfbdata, HRESULT *phrStatus, ULONG *pcRead)
  123. {
  124. HRESULT hr = S_OK;
  125. ULONG ulFindUsers = 0;
  126. ECFBBlockList fbBlockList;
  127. LONG rtmStart = 0;
  128. LONG rtmEnd = 0;
  129. ULONG i;
  130. if((cMax > 0 && rgfbuser == NULL) || prgfbdata == NULL)
  131. return MAPI_E_INVALID_PARAMETER;
  132. for (i = 0; i < cMax; ++i) {
  133. object_ptr<IMessage> lpMessage;
  134. if (GetFreeBusyMessage(m_lpSession, m_lpPublicStore, nullptr, rgfbuser[i].m_cbEid, rgfbuser[i].m_lpEid, false, &~lpMessage) == hrSuccess) {
  135. object_ptr<ECFreeBusyData> lpECFreeBusyData;
  136. ECFreeBusyData::Create(&~lpECFreeBusyData);
  137. fbBlockList.Clear();
  138. hr = GetFreeBusyMessageData(lpMessage, &rtmStart, &rtmEnd, &fbBlockList);
  139. if(hr != hrSuccess)
  140. return hr;
  141. // Add fbdata
  142. lpECFreeBusyData->Init(rtmStart, rtmEnd, &fbBlockList);
  143. hr = lpECFreeBusyData->QueryInterface(IID_IFreeBusyData, (void**)&prgfbdata[i]);
  144. if(hr != hrSuccess)
  145. return hr;
  146. ++ulFindUsers;
  147. }// else No free busy information, gives the empty class
  148. else
  149. prgfbdata[i] = NULL;
  150. }
  151. if(pcRead)
  152. *pcRead = ulFindUsers;
  153. return hr;
  154. }
  155. HRESULT ECFreeBusySupport::LoadFreeBusyUpdate(ULONG cUsers, FBUser *lpUsers, IFreeBusyUpdate **lppFBUpdate, ULONG *lpcFBUpdate, void *lpData4)
  156. {
  157. TRACE_MAPI(TRACE_ENTRY, "ECFreeBusySupport::LoadFreeBusyUpdate", "cUsers=%d", cUsers);
  158. HRESULT hr = hrSuccess;
  159. ULONG cFBUpdate = 0;
  160. if((cUsers > 0 && lpUsers == NULL) || lppFBUpdate == NULL)
  161. return MAPI_E_INVALID_PARAMETER;
  162. for (unsigned int i = 0; i < cUsers; ++i) {
  163. object_ptr<IMessage> lpMessage;
  164. // Get the FB message, is not exist create them
  165. hr = GetFreeBusyMessage(m_lpSession, m_lpPublicStore, m_lpUserStore, lpUsers[i].m_cbEid, lpUsers[i].m_lpEid, true, &~lpMessage);
  166. if (hr != hrSuccess)
  167. {
  168. lppFBUpdate[i] = NULL;//FIXME: what todo with this?
  169. continue;
  170. }
  171. object_ptr<ECFreeBusyUpdate> lpECFBUpdate;
  172. hr = ECFreeBusyUpdate::Create(lpMessage, &~lpECFBUpdate);
  173. if(hr != hrSuccess)
  174. return hr;
  175. hr = lpECFBUpdate->QueryInterface(IID_IFreeBusyUpdate, (void**)&lppFBUpdate[i]);
  176. if(hr != hrSuccess)
  177. return hr;
  178. ++cFBUpdate;
  179. }
  180. if(lpcFBUpdate)
  181. *lpcFBUpdate = cFBUpdate;
  182. return hr;
  183. }
  184. HRESULT ECFreeBusySupport::GetDelegateInfoEx(FBUser sFBUser, unsigned int *lpulStatus, unsigned int *lpulStart, unsigned int *lpulEnd)
  185. {
  186. HRESULT hr = hrSuccess;
  187. object_ptr<IFreeBusyData> lpFBData;
  188. HRESULT ulStatus = 0;
  189. ULONG ulRead = 0;
  190. struct StatusOL2K3 {
  191. ULONG ulResourceType; /* 0x68410003 PR_SCHDINFO_RESOURCE_TYPE always 0*/
  192. ULONG ulReserved1; /* always 1? olk 2007 = 0 */
  193. char **lppszFullname; /* PR_MAILBOX_OWNER_NAME, but allocation method is unknown */
  194. SBinary *lpUserEntryID; /* PR_MAILBOX_OWNER_ENTRYID, but allocation method is unknown */
  195. ULONG *lpUnknown4; /* pointer to NULL, -- not present in OL2K */
  196. ULONG ulBossWantsCopy; /* 0x6842000B PR_SCHDINFO_BOSS_WANTS_COPY always 1 */
  197. ULONG ulBossWantsInfo; /* 0x684B000B PR_SCHDINFO_BOSS_WANTS_INFO always 1 */
  198. ULONG ulDontEmailDelegates; /* 0x6843000B PR_SCHDINFO_DONT_MAIL_DELEGATES always 1 */
  199. ULONG fDoesAutoAccept;
  200. ULONG fDoesRejectRecurring;
  201. ULONG fDoesRejectConflict;
  202. ULONG ulReserved11; /* always 0 -- unknown -- not present in OL2K */
  203. } *lpStatusOlk2k3;
  204. struct StatusOL2K7 {
  205. ULONG ulResourceType; /* 0x68410003 PR_SCHDINFO_RESOURCE_TYPE always 0*/
  206. ULONG ulReserved1; /* always 1? olk 2007 = 0 */
  207. char **lppszFullname; /* PR_MAILBOX_OWNER_NAME, but allocation method is unknown */
  208. SBinary *lpUserEntryID; /* PR_MAILBOX_OWNER_ENTRYID, but allocation method is unknown */
  209. ULONG *lpUnknown4; /* pointer to NULL, -- not present in OL2K */
  210. ULONG ulBossWantsCopy; /* 0x6842000B PR_SCHDINFO_BOSS_WANTS_COPY always 1 */
  211. ULONG ulBossWantsInfo; /* 0x684B000B PR_SCHDINFO_BOSS_WANTS_INFO always 1 */
  212. ULONG ulDontEmailDelegates; /* 0x6843000B PR_SCHDINFO_DONT_MAIL_DELEGATES always 1 */
  213. ULONG ulReserved11; /* always 0 -- unknown -- not present in OL2K */
  214. ULONG fDoesAutoAccept;
  215. ULONG fDoesRejectRecurring;
  216. ULONG fDoesRejectConflict;
  217. } *lpStatus;
  218. struct StatusOL2K {
  219. ULONG ulResourceType; /* always 0 */
  220. ULONG ulReserved1; /* always 1 */
  221. char **lppszFullname; /* PR_MAILBOX_OWNER_NAME, but allocation method is unknown */
  222. SBinary *lpUserEntryID; /* PR_MAILBOX_OWNER_ENTRYID, but allocation method is unknown */
  223. ULONG ulBossWantsCopy; /* always 1 */
  224. ULONG ulBossWantsInfo; /* always 1 */
  225. ULONG ulDontEmailDelegates; /* always 1 */
  226. ULONG fDoesAutoAccept;
  227. ULONG fDoesRejectRecurring;
  228. ULONG fDoesRejectConflict;
  229. } *lpStatusOlk2K;
  230. bool bAutoAccept = true, bDeclineConflict = true, bDeclineRecurring = true;
  231. ULONG ulObjType = 0;
  232. MailUserPtr ptrUser;
  233. MsgStorePtr ptrStore;
  234. SPropValuePtr ptrName;
  235. if (m_lpSession->OpenEntry(sFBUser.m_cbEid, sFBUser.m_lpEid, nullptr, 0, &ulObjType, &~ptrUser) == hrSuccess &&
  236. HrGetOneProp(ptrUser, PR_ACCOUNT, &~ptrName) == hrSuccess &&
  237. HrOpenUserMsgStore(m_lpSession, ptrName->Value.LPSZ, &~ptrStore) == hrSuccess)
  238. {
  239. GetAutoAcceptSettings(ptrStore, &bAutoAccept, &bDeclineConflict, &bDeclineRecurring);
  240. // ignore error, default true.
  241. hr = hrSuccess;
  242. }
  243. switch (m_ulOutlookVersion) {
  244. case CLIENT_VERSION_OLK2000:
  245. case CLIENT_VERSION_OLK2002:
  246. lpStatusOlk2K = (StatusOL2K*)lpulStatus;
  247. memset(lpStatusOlk2K, 0, sizeof(StatusOL2K));
  248. lpStatusOlk2K->ulReserved1 = 1;
  249. lpStatusOlk2K->ulBossWantsCopy = 0; // WARNING Outlook will crash if it will be enabled (1)!
  250. lpStatusOlk2K->ulBossWantsInfo = 1;
  251. lpStatusOlk2K->ulDontEmailDelegates = 1;
  252. // They don't seem to have much effect, as outlook will always plan the resource.
  253. lpStatusOlk2K->fDoesAutoAccept = bAutoAccept;
  254. lpStatusOlk2K->fDoesRejectConflict = bDeclineConflict;
  255. lpStatusOlk2K->fDoesRejectRecurring = bDeclineRecurring;
  256. break;
  257. case CLIENT_VERSION_OLK2003:
  258. lpStatusOlk2k3 = (StatusOL2K3*)lpulStatus;
  259. memset(lpStatusOlk2k3, 0, sizeof(StatusOL2K3));
  260. lpStatusOlk2k3->ulReserved1 = 0;
  261. lpStatusOlk2k3->ulBossWantsCopy = 0; // WARNING Outlook will crash if it will be enabled (1)!
  262. lpStatusOlk2k3->ulBossWantsInfo = 1;
  263. lpStatusOlk2k3->ulDontEmailDelegates = 1;
  264. lpStatusOlk2k3->fDoesAutoAccept = bAutoAccept;
  265. lpStatusOlk2k3->fDoesRejectConflict = bDeclineConflict;
  266. lpStatusOlk2k3->fDoesRejectRecurring = bDeclineRecurring;
  267. break;
  268. default:
  269. lpStatus = (StatusOL2K7*)lpulStatus;
  270. memset(lpStatus, 0, sizeof(StatusOL2K7));
  271. lpStatus->ulReserved1 = 0;
  272. lpStatus->ulBossWantsCopy = 0; // WARNING Outlook will crash if it will be enabled (1)!
  273. lpStatus->ulBossWantsInfo = 1;
  274. lpStatus->ulDontEmailDelegates = 1;
  275. // Atleast Outlook 2007 should be able to correctly use these, if you restart outlook.
  276. lpStatus->fDoesAutoAccept = bAutoAccept;
  277. lpStatus->fDoesRejectConflict = bDeclineConflict;
  278. lpStatus->fDoesRejectRecurring = bDeclineRecurring;
  279. break;
  280. };
  281. // These two dates seem to be the published range in RTimes for the specified user. However, just specifying zero
  282. // doesn't seem to matter when booking resources, so it looks like these values are ignored.
  283. // We'll get the values anyway just to be sure.
  284. hr = LoadFreeBusyData(1, &sFBUser, &~lpFBData, &ulStatus, &ulRead);
  285. if(hr != hrSuccess)
  286. return hr;
  287. if (ulRead != 1)
  288. return MAPI_E_NOT_FOUND;
  289. return lpFBData->GetFBPublishRange((LONG *)lpulStart, (LONG *)lpulEnd);
  290. // if an error is returned, outlook will send an email to the resource.
  291. // PR_LAST_VERB_EXECUTED (ulong) will be set to 516, so outlook knows modifications need to be mailed too.
  292. }
  293. // IUnknown
  294. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, QueryInterface, (REFIID, refiid), (void**, lppInterface))
  295. DEF_ULONGMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, AddRef, (void))
  296. DEF_ULONGMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, Release, (void))
  297. // IFreeBusySupport
  298. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, Open, (IMAPISession*, lpMAPISession), (IMsgStore*, lpMsgStore), (BOOL, bStore))
  299. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, Close, (void))
  300. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, LoadFreeBusyData, (ULONG, cMax), (FBUser *, rgfbuser), (IFreeBusyData **, prgfbdata), (HRESULT *, phrStatus), (ULONG *, pcRead))
  301. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, LoadFreeBusyUpdate, (ULONG, cUsers), (FBUser *, lpUsers), (IFreeBusyUpdate **, lppFBUpdate), (ULONG *, lpcFBUpdate), (void *, lpData4))
  302. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, CommitChanges, (void))
  303. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, GetDelegateInfo, (FBUser, fbUser), (void *, lpData))
  304. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, SetDelegateInfo, (void *, lpData))
  305. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, AdviseFreeBusy, (void *, lpData))
  306. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, Reload, (void *, lpData))
  307. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, GetFBDetailSupport, (void **, lppData), (BOOL, bData))
  308. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, HrHandleServerSched, (void *, lpData))
  309. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, HrHandleServerSchedAccess, (void))
  310. BOOL __stdcall ECFreeBusySupport::xFreeBusySupport::FShowServerSched(BOOL bData)
  311. {
  312. TRACE_MAPI(TRACE_ENTRY, "IFreeBusySupport::FShowServerSched", "");
  313. METHOD_PROLOGUE_(ECFreeBusySupport , FreeBusySupport);
  314. BOOL b = pThis->FShowServerSched(bData);
  315. TRACE_MAPI(TRACE_RETURN, "IFreeBusySupport::FShowServerSched", "%s", (b == TRUE)?"TRUE":"FALSE");
  316. return b;
  317. }
  318. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, HrDeleteServerSched, (void))
  319. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, GetFReadOnly, (void *, lpData))
  320. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, SetLocalFB, (void *, lpData))
  321. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, PrepareForSync, (void))
  322. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, GetFBPublishMonthRange, (void *, lpData))
  323. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, PublishRangeChanged, (void))
  324. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, CleanTombstone, (void))
  325. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, GetDelegateInfoEx, (FBUser, fbUser), (unsigned int *, lpData1), (unsigned int *, lpData2), (unsigned int *, lpData3))
  326. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupport, PushDelegateInfoToWorkspace, (void))
  327. // IUnknown
  328. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, QueryInterface, (REFIID, refiid), (void**, lppInterface))
  329. DEF_ULONGMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, AddRef, (void))
  330. DEF_ULONGMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, Release, (void))
  331. // IFreeBusySupport
  332. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, Open, (IMAPISession*, lpMAPISession), (IMsgStore*, lpMsgStore), (BOOL, bStore))
  333. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, Close, (void))
  334. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, LoadFreeBusyData, (ULONG, cMax), (FBUser *, rgfbuser), (IFreeBusyData **, prgfbdata), (HRESULT *, phrStatus), (ULONG *, pcRead))
  335. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, LoadFreeBusyUpdate, (ULONG, cUsers), (FBUser *, lpUsers), (IFreeBusyUpdate **, lppFBUpdate), (ULONG *, lpcFBUpdate), (void *, lpData4))
  336. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, CommitChanges, (void))
  337. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, GetDelegateInfo, (FBUser, fbUser), (void *, lpData))
  338. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, SetDelegateInfo, (void *, lpData))
  339. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, AdviseFreeBusy, (void *, lpData))
  340. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, Reload, (void *, lpData))
  341. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, GetFBDetailSupport, (void **, lppData), (BOOL, bData))
  342. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, HrHandleServerSched, (void *, lpData))
  343. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, HrHandleServerSchedAccess, (void))
  344. BOOL __stdcall ECFreeBusySupport::xFreeBusySupportOutlook2000::FShowServerSched(BOOL bData)
  345. {
  346. TRACE_MAPI(TRACE_ENTRY, "IFreeBusySupportOutlook2000::FShowServerSched", "");
  347. METHOD_PROLOGUE_(ECFreeBusySupport , FreeBusySupportOutlook2000);
  348. BOOL b = pThis->FShowServerSched(bData);
  349. TRACE_MAPI(TRACE_RETURN, "IFreeBusySupportOutlook2000::FShowServerSched", "%s", (b == TRUE)?"TRUE":"FALSE");
  350. return b;
  351. }
  352. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, HrDeleteServerSched, (void))
  353. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, GetFReadOnly, (void *, lpData))
  354. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, SetLocalFB, (void *, lpData))
  355. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, PrepareForSync, (void))
  356. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, GetFBPublishMonthRange, (void *, lpData))
  357. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, PublishRangeChanged, (void))
  358. /*
  359. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, CleanTombstone, (void))
  360. */
  361. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, GetDelegateInfoEx, (FBUser, fbUser), (unsigned int *, lpData1), (unsigned int *, lpData2), (unsigned int *, lpData3))
  362. DEF_HRMETHOD1(TRACE_MAPI, ECFreeBusySupport, FreeBusySupportOutlook2000, PushDelegateInfoToWorkspace, (void))
  363. } /* namespace */