23 lines
444 B
C++
23 lines
444 B
C++
#ifndef _LI_CDROM_H
|
|
#define _LI_CDROM_H 1
|
|
#include <iostream>
|
|
#include <vector>
|
|
#include <string>
|
|
#include <dvdcss.h>
|
|
|
|
namespace Li::Scsi {
|
|
class CdRom {
|
|
private:
|
|
dvdcss_t dvdCssHandle;
|
|
int osFileHandle;
|
|
public:
|
|
CdRom(std::string drive);
|
|
~CdRom();
|
|
|
|
size_t GetTotalSectors();
|
|
bool SetDriveSpeed(short readSpeed, short writeSpeed);
|
|
bool AllowReadingPastDisc();
|
|
static std::vector<std::string>* ListOpticalDrives();
|
|
};
|
|
}
|
|
#endif |