12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #include <kopano/platform.h>
- #include <mutex>
- #include "kcore.hpp"
- #include <kopano/kcodes.h>
- #include <mapi.h>
- #include <mapispi.h>
- #include "WSABTableView.h"
- #include "Mem.h"
- #include <kopano/ECGuid.h>
- #include "SOAPUtils.h"
- #include "WSUtil.h"
- WSABTableView::WSABTableView(ULONG ulType, ULONG ulFlags, KCmd *lpCmd,
- std::recursive_mutex &lpDataLock, ECSESSIONID ecSessionId, ULONG cbEntryId,
- LPENTRYID lpEntryId, ECABLogon* lpABLogon, WSTransport *lpTransport) :
- WSTableView(ulType, ulFlags, lpCmd, lpDataLock, ecSessionId, cbEntryId,
- lpEntryId, lpTransport, "WSABTableView")
- {
- m_lpProvider = lpABLogon;
- m_ulTableType = TABLETYPE_AB;
- }
- HRESULT WSABTableView::Create(ULONG ulType, ULONG ulFlags, KCmd *lpCmd,
- std::recursive_mutex &lpDataLock, ECSESSIONID ecSessionId, ULONG cbEntryId,
- LPENTRYID lpEntryId, ECABLogon* lpABLogon, WSTransport *lpTransport,
- WSTableView **lppTableView)
- {
- HRESULT hr = hrSuccess;
- WSABTableView *lpTableView = NULL;
- lpTableView = new WSABTableView(ulType, ulFlags, lpCmd, lpDataLock, ecSessionId, cbEntryId, lpEntryId, lpABLogon, lpTransport);
- hr = lpTableView->QueryInterface(IID_ECTableView, (void **) lppTableView);
-
- if(hr != hrSuccess)
- delete lpTableView;
- return hr;
- }
- HRESULT WSABTableView::QueryInterface(REFIID refiid, void **lppInterface)
- {
- REGISTER_INTERFACE3(ECTableView, WSTableView, this);
- return MAPI_E_INTERFACE_NOT_SUPPORTED;
- }
|