1
0

PlayStatus.h 547 B

12345678910111213141516171819202122232425262728
  1. #ifndef NULLSOFT_PLAYSTATUSH
  2. #define NULLSOFT_PLAYSTATUSH
  3. #pragma warning(disable:4786)
  4. //#include <map>
  5. #include "../nu/AutoLock.h"
  6. class DriveStatus
  7. {
  8. public:
  9. DriveStatus();
  10. void RippingStarted(), RippingStopped();
  11. bool IsRipping() const;
  12. private:
  13. bool ripping;
  14. };
  15. class PlayStatus
  16. {
  17. public:
  18. DriveStatus &operator [](int index) { return driveStatus[index-'A']; }
  19. DriveStatus driveStatus[26];
  20. };
  21. extern PlayStatus playStatus;
  22. //extern std::map<char, DriveStatus> playStatus;
  23. extern Nullsoft::Utility::LockGuard *playStatusGuard;
  24. #endif