event.h
资源名称:shell.rar [点击查看]
上传用户:xhy777
上传日期:2007-02-14
资源大小:24088k
文件大小:2k
源码类别:
系统编程
开发平台:
Visual C++
- #ifndef _EVENT_H_
- #define _EVENT_H_
- #include "iface.h" // for IARPEvent
- //------------------------------------------------------------------------
- //
- // CEventBroker
- //
- // This class brokers events sent from the OSP to the OSP listener
- // or the data source listener.
- //
- //------------------------------------------------------------------------
- class CEventBroker : public IARPEvent
- {
- public:
- // *** IUnknown ***
- STDMETHOD_(ULONG, AddRef) (void);
- STDMETHOD_(ULONG, Release) (void);
- STDMETHOD(QueryInterface) (REFIID riid, LPVOID * ppvObj);
- // *** IARPEvent ***
- STDMETHOD(SetDataSourceListener)(DataSourceListener *);
- STDMETHOD(IsOSPListener) (OLEDBSimpleProviderListener * posp);
- STDMETHOD(SetOSPListener) (OLEDBSimpleProviderListener * posp);
- STDMETHOD(AboutToDeleteRows) (DBROWCOUNT iRowStart, DBROWCOUNT cRows);
- STDMETHOD(DeletedRows) (DBROWCOUNT iRowStart, DBROWCOUNT cRows);
- STDMETHOD(RowsAvailable) (DBROWCOUNT iRowStart, DBROWCOUNT cRows);
- STDMETHOD(RowChanged) (DBROWCOUNT iRow);
- STDMETHOD(LoadCompleted) (void);
- STDMETHOD(LoadAborted) (void);
- STDMETHOD(DataSetChanged) (void);
- CEventBroker(LPWSTR pszQualifier);
- ~CEventBroker();
- private:
- ULONG _cRef;
- DataSourceListener * _pdsl;
- OLEDBSimpleProviderListener *_pospl;
- BSTR _cbstrQualifier;
- };
- HRESULT CARPEvent_CreateInstance(REFIID riid, LPVOID * ppvObj, LPWSTR pszQualifier);
- #endif // _EVENT_H_
English
