00001 00047 #pragma once 00048 00049 #include <DirectShow/StatusInterface.h> 00050 #include <Windows.h> 00051 00052 class CStatusInterface : public IStatusInterface 00053 { 00054 public: 00056 CStatusInterface(); 00058 STDMETHODIMP SetLastError( std::string sError, bool bNotifyApplication = false); 00060 STDMETHODIMP GetLastError( std::string& sError ); 00062 STDMETHODIMP SetMediaEventSink( IMediaEventSink* pEventSink ); 00064 STDMETHODIMP SetFriendlyID( long lId ); 00066 STDMETHODIMP GetFriendlyID( long& lId ); 00067 00068 protected: 00070 void NotifyApplication(long lEventCode, LONG_PTR lEventParam1); 00071 00073 std::string m_sLastError; 00075 IMediaEventSink* m_pMediaEventSink; 00077 long m_lFriendlyId; 00078 };