aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Input/in_cdda/PlayStatus.h
blob: 9e6ed1de81c95d5d32e901b2b00563011ff336f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef NULLSOFT_PLAYSTATUSH
#define NULLSOFT_PLAYSTATUSH
#pragma warning(disable:4786)
//#include <map>
#include "../nu/AutoLock.h"

class DriveStatus
{
public:
	DriveStatus(); 

	void RippingStarted(), RippingStopped();

	bool IsRipping() const;
private:
	bool ripping;
};

class PlayStatus
{
public:
	DriveStatus &operator [](int index) { return driveStatus[index-'A']; }
	DriveStatus driveStatus[26];
};
extern PlayStatus playStatus;
//extern std::map<char, DriveStatus> playStatus;
extern Nullsoft::Utility::LockGuard *playStatusGuard;
#endif