1
0

WaitLayer.h 420 B

12345678910111213141516171819202122232425
  1. #ifndef NULLSOFT_WAITLAYERH
  2. #define NULLSOFT_WAITLAYERH
  3. #include "WMHandler.h"
  4. class WaitLayer : public WMHandler
  5. {
  6. public:
  7. WaitLayer(IWMReader *_reader);
  8. ~WaitLayer();
  9. void ResetForOpen();
  10. bool WaitForOpen(int time_ms);
  11. bool IsOpen();
  12. protected:
  13. /* inherited from WMCallback */
  14. void OpenCalled();
  15. void OpenFailed();
  16. void Opened();
  17. IWMReader *reader; // not ours
  18. HANDLE stopEvent, openEvent;
  19. };
  20. #endif