2015-08-23 06:42:29 +00:00
|
|
|
#ifndef __RETRO_CDVDREQUEST_HPP__
|
|
|
|
#define __RETRO_CDVDREQUEST_HPP__
|
|
|
|
|
|
|
|
namespace Retro
|
|
|
|
{
|
|
|
|
|
2015-10-29 07:52:15 +00:00
|
|
|
class IDvdRequest
|
2015-08-23 06:42:29 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void WaitUntilComplete()=0;
|
|
|
|
virtual bool IsComplete()=0;
|
|
|
|
virtual void PostCancelRequest()=0;
|
|
|
|
|
2015-11-21 01:16:07 +00:00
|
|
|
enum class EMediaType
|
2015-08-23 06:42:29 +00:00
|
|
|
{
|
2015-11-21 01:16:07 +00:00
|
|
|
ARAM = 0,
|
|
|
|
Real = 1,
|
|
|
|
NOD = 2
|
2015-08-23 06:42:29 +00:00
|
|
|
};
|
|
|
|
virtual EMediaType GetMediaType() const=0;
|
|
|
|
};
|
|
|
|
|
2015-10-29 07:52:15 +00:00
|
|
|
class CNODDvdRequest : public IDvdRequest
|
2015-08-23 06:42:29 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
void WaitUntilComplete();
|
|
|
|
bool IsComplete();
|
|
|
|
void PostCancelRequest();
|
2015-11-21 01:16:07 +00:00
|
|
|
EMediaType GetMediaType() const {return EMediaType::NOD;}
|
2015-08-23 06:42:29 +00:00
|
|
|
};
|
|
|
|
|
2015-10-29 07:52:15 +00:00
|
|
|
class CDvdRequest : public IDvdRequest
|
|
|
|
{
|
|
|
|
void WaitUntilComplete();
|
|
|
|
bool IsComplete();
|
|
|
|
void PostCancelRequest();
|
2015-11-21 01:16:07 +00:00
|
|
|
EMediaType GetMediaType() const { return EMediaType::Real; }
|
2015-10-29 07:52:15 +00:00
|
|
|
};
|
|
|
|
|
2015-08-23 06:42:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __RETRO_CDVDREQUEST_HPP__
|