123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /*
- * Copyright 2005 - 2016 Zarafa and its licensors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- #ifndef ECRULESTABLEPROXY_INCLUDED
- #define ECRULESTABLEPROXY_INCLUDED
- #include <kopano/zcdefs.h>
- #include <kopano/ECUnknown.h>
- #include <mapidefs.h>
- class ECRulesTableProxy _kc_final : public ECUnknown {
- protected:
- ECRulesTableProxy(LPMAPITABLE lpTable);
- virtual ~ECRulesTableProxy();
-
- public:
- static HRESULT Create(LPMAPITABLE lpTable, ECRulesTableProxy **lppRulesTableProxy);
- virtual HRESULT QueryInterface(REFIID refiid, void **lppInterface) _kc_override;
- virtual HRESULT GetLastError(HRESULT hResult, ULONG ulFlags, LPMAPIERROR *lppMAPIError);
- virtual HRESULT Advise(ULONG ulEventMask, LPMAPIADVISESINK lpAdviseSink, ULONG *lpulConnection);
- virtual HRESULT Unadvise(ULONG ulConnection);
- virtual HRESULT GetStatus(ULONG *lpulTableStatus, ULONG *lpulTableType);
- virtual HRESULT SetColumns(const SPropTagArray *lpPropTagArray, ULONG ulFlags);
- virtual HRESULT QueryColumns(ULONG ulFlags, LPSPropTagArray *lpPropTagArray);
- virtual HRESULT GetRowCount(ULONG ulFlags, ULONG *lpulCount);
- virtual HRESULT SeekRow(BOOKMARK bkOrigin, LONG lRowCount, LONG *lplRowsSought) ;
- virtual HRESULT SeekRowApprox(ULONG ulNumerator, ULONG ulDenominator);
- virtual HRESULT QueryPosition(ULONG *lpulRow, ULONG *lpulNumerator, ULONG *lpulDenominator);
- virtual HRESULT FindRow(LPSRestriction lpRestriction, BOOKMARK bkOrigin, ULONG ulFlags);
- virtual HRESULT Restrict(LPSRestriction lpRestriction, ULONG ulFlags);
- virtual HRESULT CreateBookmark(BOOKMARK* lpbkPosition);
- virtual HRESULT FreeBookmark(BOOKMARK bkPosition);
- virtual HRESULT SortTable(const SSortOrderSet *, ULONG flags);
- virtual HRESULT QuerySortOrder(LPSSortOrderSet *lppSortCriteria);
- virtual HRESULT QueryRows(LONG lRowCount, ULONG ulFlags, LPSRowSet *lppRows);
- virtual HRESULT Abort();
- virtual HRESULT ExpandRow(ULONG cbInstanceKey, LPBYTE pbInstanceKey, ULONG ulRowCount, ULONG ulFlags, LPSRowSet * lppRows, ULONG *lpulMoreRows);
- virtual HRESULT CollapseRow(ULONG cbInstanceKey, LPBYTE pbInstanceKey, ULONG ulFlags, ULONG *lpulRowCount);
- virtual HRESULT WaitForCompletion(ULONG ulFlags, ULONG ulTimeout, ULONG *lpulTableStatus);
- virtual HRESULT GetCollapseState(ULONG ulFlags, ULONG cbInstanceKey, LPBYTE lpbInstanceKey, ULONG *lpcbCollapseState, LPBYTE *lppbCollapseState);
- virtual HRESULT SetCollapseState(ULONG ulFlags, ULONG cbCollapseState, LPBYTE pbCollapseState, BOOKMARK *lpbkLocation);
- protected:
- class xMAPITable _kc_final : public IMAPITable {
- #include <kopano/xclsfrag/IUnknown.hpp>
- #include <kopano/xclsfrag/IMAPITable.hpp>
- } m_xMAPITable;
- private:
- LPMAPITABLE m_lpTable;
- };
- #endif // ndef ECRULESTABLEPROXY_INCLUDED
|