mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-12-04 15:11:02 -05:00
26 lines
420 B
C
26 lines
420 B
C
|
#ifndef NULLSOFT_WAITLAYERH
|
||
|
#define NULLSOFT_WAITLAYERH
|
||
|
|
||
|
#include "WMHandler.h"
|
||
|
|
||
|
class WaitLayer : public WMHandler
|
||
|
{
|
||
|
public:
|
||
|
WaitLayer(IWMReader *_reader);
|
||
|
~WaitLayer();
|
||
|
|
||
|
void ResetForOpen();
|
||
|
bool WaitForOpen(int time_ms);
|
||
|
bool IsOpen();
|
||
|
protected:
|
||
|
/* inherited from WMCallback */
|
||
|
void OpenCalled();
|
||
|
void OpenFailed();
|
||
|
void Opened();
|
||
|
|
||
|
IWMReader *reader; // not ours
|
||
|
HANDLE stopEvent, openEvent;
|
||
|
};
|
||
|
|
||
|
#endif
|