ECMAPIContainer.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. // ECMAPIContainer.h: interface for the ECMAPIContainer class.
  18. //
  19. //////////////////////////////////////////////////////////////////////
  20. #ifndef ECMAPICONTAINER
  21. #define ECMAPICONTAINER
  22. #include <kopano/zcdefs.h>
  23. #include <mapidefs.h>
  24. #include "WSTransport.h"
  25. #include "ECMsgStore.h"
  26. #include "ECMAPIProp.h"
  27. class ECMAPIContainer : public ECMAPIProp {
  28. public:
  29. ECMAPIContainer(ECMsgStore *lpMsgStore, ULONG ulObjType, BOOL fModify, const char *szClassName);
  30. virtual ~ECMAPIContainer(void) _kc_impdtor;
  31. // IUnknown
  32. virtual HRESULT QueryInterface(REFIID refiid, void **lppInterface) _kc_override;
  33. // IMAPIContainer
  34. virtual HRESULT GetContentsTable(ULONG ulFlags, LPMAPITABLE *lppTable);
  35. virtual HRESULT GetHierarchyTable(ULONG ulFlags, LPMAPITABLE *lppTable);
  36. virtual HRESULT OpenEntry(ULONG cbEntryID, LPENTRYID lpEntryID, LPCIID lpInterface, ULONG ulFlags, ULONG *lpulObjType, LPUNKNOWN *lppUnk);
  37. virtual HRESULT SetSearchCriteria(LPSRestriction lpRestriction, LPENTRYLIST lpContainerList, ULONG ulSearchFlags);
  38. virtual HRESULT GetSearchCriteria(ULONG ulFlags, LPSRestriction *lppRestriction, LPENTRYLIST *lppContainerList, ULONG *lpulSearchState);
  39. // IMAPIProp
  40. virtual HRESULT CopyTo(ULONG ciidExclude, LPCIID rgiidExclude, const SPropTagArray *lpExcludeProps, ULONG ulUIParam, LPMAPIPROGRESS lpProgress, LPCIID lpInterface, LPVOID lpDestObj, ULONG ulFlags, LPSPropProblemArray *lppProblems);
  41. virtual HRESULT CopyProps(const SPropTagArray *lpIncludeProps, ULONG ulUIParam, LPMAPIPROGRESS lpProgress, LPCIID lpInterface, LPVOID lpDestObj, ULONG ulFlags, LPSPropProblemArray *lppProblems);
  42. class xMAPIContainer _kc_final : public IMAPIContainer {
  43. #include <kopano/xclsfrag/IUnknown.hpp>
  44. #include <kopano/xclsfrag/IMAPIContainer.hpp>
  45. #include <kopano/xclsfrag/IMAPIProp.hpp>
  46. } m_xMAPIContainer;
  47. };
  48. #endif // #ifndef ECMAPICONTAINER