ECABLogon.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. #ifndef ECABLOGON_H
  18. #define ECABLOGON_H
  19. #include <kopano/zcdefs.h>
  20. #include <mapispi.h>
  21. #include <kopano/ECUnknown.h>
  22. #include "ECNotifyClient.h"
  23. class WSTransport;
  24. class ECABLogon _kc_final : public ECUnknown {
  25. protected:
  26. ECABLogon(LPMAPISUP lpMAPISup, WSTransport* lpTransport, ULONG ulProfileFlags, GUID *lpGUID);
  27. virtual ~ECABLogon();
  28. public:
  29. static HRESULT Create(LPMAPISUP lpMAPISup, WSTransport* lpTransport, ULONG ulProfileFlags, GUID *lpGUID, ECABLogon **lppECABLogon);
  30. virtual HRESULT QueryInterface(REFIID refiid, void **lppInterface) _kc_override;
  31. virtual HRESULT GetLastError(HRESULT hResult, ULONG ulFlags, LPMAPIERROR *lppMAPIError);
  32. virtual HRESULT Logoff(ULONG ulFlags);
  33. virtual HRESULT OpenEntry(ULONG cbEntryID, LPENTRYID lpEntryID, LPCIID lpInterface, ULONG ulFlags, ULONG *lpulObjType, LPUNKNOWN *lppUnk);
  34. virtual HRESULT CompareEntryIDs(ULONG cbEntryID1, LPENTRYID lpEntryID1, ULONG cbEntryID2, LPENTRYID lpEntryID2, ULONG ulFlags, ULONG *lpulResult);
  35. virtual HRESULT Advise(ULONG cbEntryID, LPENTRYID lpEntryID, ULONG ulEventMask, LPMAPIADVISESINK lpAdviseSink, ULONG *lpulConnection);
  36. virtual HRESULT Unadvise(ULONG ulConnection);
  37. virtual HRESULT OpenStatusEntry(LPCIID lpInterface, ULONG ulFlags, ULONG *lpulObjType, LPMAPISTATUS * lppMAPIStatus);
  38. virtual HRESULT OpenTemplateID(ULONG cbTemplateID, LPENTRYID lpTemplateID, ULONG ulTemplateFlags, LPMAPIPROP lpMAPIPropData, LPCIID lpInterface, LPMAPIPROP * lppMAPIPropNew, LPMAPIPROP lpMAPIPropSibling);
  39. virtual HRESULT GetOneOffTable(ULONG ulFlags, LPMAPITABLE * lppTable);
  40. virtual HRESULT PrepareRecips(ULONG ulFlags, const SPropTagArray *lpPropTagArray, LPADRLIST lpRecipList);
  41. class xABLogon _kc_final : public IABLogon {
  42. #include <kopano/xclsfrag/IUnknown.hpp>
  43. #include <kopano/xclsfrag/IABLogon.hpp>
  44. } m_xABLogon;
  45. LPMAPISUP m_lpMAPISup;
  46. WSTransport* m_lpTransport;
  47. ECNotifyClient *m_lpNotifyClient = nullptr;
  48. //ECNamedProp* m_lpNamedProp;
  49. GUID m_guid;
  50. GUID m_ABPGuid;
  51. };
  52. #endif // #ifndef ECABLOGON