Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Plugins/Portable/pmp_p4s/MyProgress.h
2024-09-24 14:54:57 +02:00

35 lines
1.1 KiB
C++

#ifndef NULLSOFT_MYPROGRESSH
#define NULLSOFT_MYPROGRESSH
#include "P4SDevice.h"
class MyProgress : public IWMDMProgress3
{
public:
MyProgress(TransferItem * t);
virtual ~MyProgress();
/* IUnknown methods */
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid,void __RPC_FAR *__RPC_FAR *ppvObject);
virtual ULONG STDMETHODCALLTYPE AddRef();
virtual ULONG STDMETHODCALLTYPE Release();
/* IWMDMProgress methods */
virtual HRESULT STDMETHODCALLTYPE Begin(DWORD dwEstimatedTicks);
virtual HRESULT STDMETHODCALLTYPE Progress(DWORD dwTranspiredTicks);
virtual HRESULT STDMETHODCALLTYPE End();
/* IWMDMProgress2 methods */
virtual HRESULT STDMETHODCALLTYPE End2(HRESULT hrCompletionCode);
/* IWMDMProgress3 methods */
virtual HRESULT STDMETHODCALLTYPE Begin3(GUID EventId,DWORD dwEstimatedTicks,OPAQUECOMMAND* pContext);
virtual HRESULT STDMETHODCALLTYPE Progress3(GUID EventId,DWORD dwTranspiredTicks,OPAQUECOMMAND* pContext);
virtual HRESULT STDMETHODCALLTYPE End3(GUID EventId,HRESULT hrCompletionCode,OPAQUECOMMAND* pContext);
public:
TransferItem *t;
ULONG refcount;
DWORD estTicks;
};
#endif