ECRulesTableProxy.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 ECRULESTABLEPROXY_INCLUDED
  18. #define ECRULESTABLEPROXY_INCLUDED
  19. #include <kopano/zcdefs.h>
  20. #include <kopano/ECUnknown.h>
  21. #include <mapidefs.h>
  22. class ECRulesTableProxy _kc_final : public ECUnknown {
  23. protected:
  24. ECRulesTableProxy(LPMAPITABLE lpTable);
  25. virtual ~ECRulesTableProxy();
  26. public:
  27. static HRESULT Create(LPMAPITABLE lpTable, ECRulesTableProxy **lppRulesTableProxy);
  28. virtual HRESULT QueryInterface(REFIID refiid, void **lppInterface) _kc_override;
  29. virtual HRESULT GetLastError(HRESULT hResult, ULONG ulFlags, LPMAPIERROR *lppMAPIError);
  30. virtual HRESULT Advise(ULONG ulEventMask, LPMAPIADVISESINK lpAdviseSink, ULONG *lpulConnection);
  31. virtual HRESULT Unadvise(ULONG ulConnection);
  32. virtual HRESULT GetStatus(ULONG *lpulTableStatus, ULONG *lpulTableType);
  33. virtual HRESULT SetColumns(const SPropTagArray *lpPropTagArray, ULONG ulFlags);
  34. virtual HRESULT QueryColumns(ULONG ulFlags, LPSPropTagArray *lpPropTagArray);
  35. virtual HRESULT GetRowCount(ULONG ulFlags, ULONG *lpulCount);
  36. virtual HRESULT SeekRow(BOOKMARK bkOrigin, LONG lRowCount, LONG *lplRowsSought) ;
  37. virtual HRESULT SeekRowApprox(ULONG ulNumerator, ULONG ulDenominator);
  38. virtual HRESULT QueryPosition(ULONG *lpulRow, ULONG *lpulNumerator, ULONG *lpulDenominator);
  39. virtual HRESULT FindRow(LPSRestriction lpRestriction, BOOKMARK bkOrigin, ULONG ulFlags);
  40. virtual HRESULT Restrict(LPSRestriction lpRestriction, ULONG ulFlags);
  41. virtual HRESULT CreateBookmark(BOOKMARK* lpbkPosition);
  42. virtual HRESULT FreeBookmark(BOOKMARK bkPosition);
  43. virtual HRESULT SortTable(const SSortOrderSet *, ULONG flags);
  44. virtual HRESULT QuerySortOrder(LPSSortOrderSet *lppSortCriteria);
  45. virtual HRESULT QueryRows(LONG lRowCount, ULONG ulFlags, LPSRowSet *lppRows);
  46. virtual HRESULT Abort();
  47. virtual HRESULT ExpandRow(ULONG cbInstanceKey, LPBYTE pbInstanceKey, ULONG ulRowCount, ULONG ulFlags, LPSRowSet * lppRows, ULONG *lpulMoreRows);
  48. virtual HRESULT CollapseRow(ULONG cbInstanceKey, LPBYTE pbInstanceKey, ULONG ulFlags, ULONG *lpulRowCount);
  49. virtual HRESULT WaitForCompletion(ULONG ulFlags, ULONG ulTimeout, ULONG *lpulTableStatus);
  50. virtual HRESULT GetCollapseState(ULONG ulFlags, ULONG cbInstanceKey, LPBYTE lpbInstanceKey, ULONG *lpcbCollapseState, LPBYTE *lppbCollapseState);
  51. virtual HRESULT SetCollapseState(ULONG ulFlags, ULONG cbCollapseState, LPBYTE pbCollapseState, BOOKMARK *lpbkLocation);
  52. protected:
  53. class xMAPITable _kc_final : public IMAPITable {
  54. #include <kopano/xclsfrag/IUnknown.hpp>
  55. #include <kopano/xclsfrag/IMAPITable.hpp>
  56. } m_xMAPITable;
  57. private:
  58. LPMAPITABLE m_lpTable;
  59. };
  60. #endif // ndef ECRULESTABLEPROXY_INCLUDED