Solid::Ifaces::OpticalDisc Class
class Solid::Ifaces::OpticalDiscHeader: | #include <OpticalDisc> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Solid) target_link_libraries(mytarget PRIVATE KF6::Solid) |
Inherits: | Solid::Ifaces::StorageVolume |
Public Functions
virtual | ~OpticalDisc() override |
virtual Solid::OpticalDisc::ContentTypes | availableContent() const = 0 |
virtual qulonglong | capacity() const = 0 |
virtual Solid::OpticalDisc::DiscType | discType() const = 0 |
virtual bool | isAppendable() const = 0 |
virtual bool | isBlank() const = 0 |
virtual bool | isRewritable() const = 0 |
Detailed Description
This device interface is available on optical discs.
An optical disc is a volume that can be inserted in a cdrom drive.
Member Function Documentation
[override virtual noexcept]
OpticalDisc::~OpticalDisc()
Destroys an OpticalDisc object.
[pure virtual]
Solid::OpticalDisc::ContentTypes OpticalDisc::availableContent() const
Retrieves the content types this disc contains (audio, video, data...).
@return the flag set indicating the available contents
[pure virtual]
qulonglong OpticalDisc::capacity() const
Retrieves the disc capacity (that is the maximum size of a volume could have on this disc).
@return the capacity of the disc in bytes
[pure virtual]
Solid::OpticalDisc::DiscType OpticalDisc::discType() const
Retrieves the disc type (cdr, cdrw...).
@return the disc type
[pure virtual]
bool OpticalDisc::isAppendable() const
Indicates if it's possible to write additional data to the disc.
@return true if the disc is appendable, false otherwise
[pure virtual]
bool OpticalDisc::isBlank() const
Indicates if the disc is blank.
@return true if the disc is blank, false otherwise
[pure virtual]
bool OpticalDisc::isRewritable() const
Indicates if the disc is rewritable.
A disc is rewritable if you can write on it several times.
@return true if the disc is rewritable, false otherwise