32 DiscType type{DiscType::UNKNOWN};
41 bool empty() {
return (type == DiscType::UNKNOWN && name.empty() && serial.empty()); }
47 type = DiscType::UNKNOWN;
58 bool GetDiscInfo(
DiscInfo& info,
const std::string& mediaPath);
64 DiscInfo ProbeDVDDiscInfo(
const std::string& mediaPath);
70 DiscInfo ProbeBlurayDiscInfo(
const std::string& mediaPath);
Abstracts the info the app knows about a disc (type, name, serial)
Definition: DiscsUtils.h:29
std::string name
The disc label (equivalent to the mount point label)
Definition: DiscsUtils.h:36
Definition: ColorUtils.h:18
void clear()
Clears all the DiscInfo members.
Definition: DiscsUtils.h:45
std::string serial
The disc serial number.
Definition: DiscsUtils.h:34
bool empty()
Check if the info is empty (e.g. after probing)
Definition: DiscsUtils.h:41