ECArchiveAwareAttach.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 ECARCHIVEAWAREATTACH_INCLUDED
  18. #define ECARCHIVEAWAREATTACH_INCLUDED
  19. #include <kopano/zcdefs.h>
  20. #include <kopano/Util.h>
  21. #include "ECAttach.h"
  22. class ECArchiveAwareMessage;
  23. class ECArchiveAwareAttach _kc_final : public ECAttach {
  24. protected:
  25. ECArchiveAwareAttach(ECMsgStore *lpMsgStore, ULONG ulObjType, BOOL fModify, ULONG ulAttachNum, ECMAPIProp *lpRoot);
  26. public:
  27. static HRESULT Create(ECMsgStore *lpMsgStore, ULONG ulObjType, BOOL fModify, ULONG ulAttachNum, ECMAPIProp *lpRoot, ECAttach **lppAttach);
  28. static HRESULT SetPropHandler(ULONG ulPropTag, void *lpProvider, const SPropValue *lpsPropValue, void *lpParam);
  29. private:
  30. ECArchiveAwareMessage *m_lpRoot;
  31. ALLOC_WRAP_FRIEND;
  32. };
  33. class ECArchiveAwareAttachFactory _kc_final : public IAttachFactory {
  34. public:
  35. HRESULT Create(ECMsgStore *lpMsgStore, ULONG ulObjType, BOOL fModify, ULONG ulAttachNum, ECMAPIProp *lpRoot, ECAttach **lppAttach) const;
  36. };
  37. #endif // ndef ECARCHIVEAWAREATTACH_INCLUDED