ECExchangeImportHierarchyChanges.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 ECEXCHANGEIMPORTCHIERARCHYCHANGES_H
  18. #define ECEXCHANGEIMPORTCHIERARCHYCHANGES_H
  19. #include <kopano/zcdefs.h>
  20. #include <mapidefs.h>
  21. #include "ECMAPIFolder.h"
  22. #include <kopano/ECUnknown.h>
  23. class ECExchangeImportHierarchyChanges _kc_final : public ECUnknown {
  24. protected:
  25. ECExchangeImportHierarchyChanges(ECMAPIFolder *lpFolder);
  26. virtual ~ECExchangeImportHierarchyChanges();
  27. public:
  28. static HRESULT Create(ECMAPIFolder *lpFolder, LPEXCHANGEIMPORTHIERARCHYCHANGES* lppExchangeImportHierarchyChanges);
  29. virtual HRESULT QueryInterface(REFIID refiid, void **lppInterface) _kc_override;
  30. virtual HRESULT GetLastError(HRESULT hResult, ULONG ulFlags, LPMAPIERROR *lppMAPIError);
  31. virtual HRESULT Config(LPSTREAM lpStream, ULONG ulFlags);
  32. virtual HRESULT UpdateState(LPSTREAM lpStream);
  33. virtual HRESULT ImportFolderChange(ULONG cValue, LPSPropValue lpPropArray);
  34. virtual HRESULT ImportFolderDeletion(ULONG ulFlags, LPENTRYLIST lpSourceEntryList);
  35. class xExchangeImportHierarchyChanges _kc_final :
  36. public IExchangeImportHierarchyChanges {
  37. #include <kopano/xclsfrag/IUnknown.hpp>
  38. // <kopano/xclsfrag/IExchangeImportHierarchyChanges.hpp>
  39. virtual HRESULT __stdcall GetLastError(HRESULT hResult, ULONG flags, LPMAPIERROR *lppMAPIError) _kc_override;
  40. virtual HRESULT __stdcall Config(LPSTREAM lpStream, ULONG flags) _kc_override;
  41. virtual HRESULT __stdcall UpdateState(LPSTREAM lpStream) _kc_override;
  42. virtual HRESULT __stdcall ImportFolderChange(ULONG cValue, LPSPropValue lpPropArray) _kc_override;
  43. virtual HRESULT __stdcall ImportFolderDeletion(ULONG flags, LPENTRYLIST lpSourceEntryList) _kc_override;
  44. } m_xExchangeImportHierarchyChanges;
  45. private:
  46. ECMAPIFolder *m_lpFolder = nullptr;
  47. IStream *m_lpStream = nullptr;
  48. ULONG m_ulFlags = 0;
  49. ULONG m_ulSyncId = 0;
  50. ULONG m_ulChangeId = 0;
  51. };
  52. #endif // ECEXCHANGEIMPORTCHIERARCHYCHANGES_H