ECMailUser.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 ECMAILUSER
  18. #define ECMAILUSER
  19. #include <kopano/zcdefs.h>
  20. #include <kopano/Util.h>
  21. #include <mapidefs.h>
  22. #include "ECABProp.h"
  23. class ECMailUser _kc_final : public ECABProp {
  24. private:
  25. ECMailUser(void* lpProvider, BOOL fModify);
  26. public:
  27. static HRESULT Create(void* lpProvider, BOOL fModify, ECMailUser** lppMailUser);
  28. static HRESULT TableRowGetProp(void* lpProvider, struct propVal *lpsPropValSrc, LPSPropValue lpsPropValDst, void **lpBase, ULONG ulType);
  29. static HRESULT DefaultGetProp(ULONG ulPropTag, void* lpProvider, ULONG ulFlags, LPSPropValue lpsPropValue, void *lpParam, void *lpBase);
  30. virtual HRESULT QueryInterface(REFIID refiid, void **lppInterface) _kc_override;
  31. virtual HRESULT OpenProperty(ULONG ulPropTag, LPCIID lpiid, ULONG ulInterfaceOptions, ULONG ulFlags, LPUNKNOWN *lppUnk);
  32. virtual HRESULT CopyTo(ULONG ciidExclude, LPCIID rgiidExclude, const SPropTagArray *lpExcludeProps, ULONG ulUIParam, LPMAPIPROGRESS lpProgress, LPCIID lpInterface, LPVOID lpDestObj, ULONG ulFlags, LPSPropProblemArray *lppProblems);
  33. virtual HRESULT CopyProps(const SPropTagArray *lpIncludeProps, ULONG ulUIParam, LPMAPIPROGRESS lpProgress, LPCIID lpInterface, LPVOID lpDestObj, ULONG ulFlags, LPSPropProblemArray *lppProblems);
  34. class xMailUser _kc_final : public IMailUser {
  35. #include <kopano/xclsfrag/IUnknown.hpp>
  36. #include <kopano/xclsfrag/IMAPIProp.hpp>
  37. } m_xMailUser;
  38. ALLOC_WRAP_FRIEND;
  39. };
  40. #endif // #ifndef ECMAILUSER