Solid::Ifaces::OpticalDrive
#include <opticaldrive.h>
Public Member Functions | |
~OpticalDrive () override | |
virtual bool | eject ()=0 |
virtual int | readSpeed () const =0 |
virtual Solid::OpticalDrive::MediumTypes | supportedMedia () const =0 |
virtual int | writeSpeed () const =0 |
virtual QList< int > | writeSpeeds () const =0 |
Public Member Functions inherited from Solid::Ifaces::StorageDrive | |
~StorageDrive () override | |
virtual Solid::StorageDrive::Bus | bus () const =0 |
virtual Solid::StorageDrive::DriveType | driveType () const =0 |
virtual bool | isHotpluggable () const =0 |
virtual bool | isRemovable () const =0 |
virtual qulonglong | size () const =0 |
virtual QDateTime | timeDetected () const |
virtual QDateTime | timeMediaDetected () const |
Public Member Functions inherited from Solid::Ifaces::Block | |
~Block () override | |
virtual QString | device () const =0 |
virtual int | deviceMajor () const =0 |
virtual int | deviceMinor () const =0 |
Public Member Functions inherited from Solid::Ifaces::DeviceInterface | |
virtual | ~DeviceInterface () |
Protected Member Functions | |
virtual void | ejectDone (Solid::ErrorType error, QVariant errorData, const QString &udi)=0 |
virtual void | ejectPressed (const QString &udi)=0 |
Detailed Description
This device interface is available on CD-ROM drives.
A Cdrom is a storage that can handle optical discs.
Definition at line 24 of file ifaces/opticaldrive.h.
Constructor & Destructor Documentation
◆ ~OpticalDrive()
|
override |
Destroys a Cdrom object.
Definition at line 9 of file ifaces/opticaldrive.cpp.
Member Function Documentation
◆ eject()
|
pure virtual |
Ejects any disc that could be contained in this drive.
If this drive is empty, but has a tray it'll be opened
- Returns
◆ ejectPressed()
|
protectedpure virtual |
This signal is emitted when the eject button is pressed on the drive.
Please note that some (broken) drives doesn't report this event.
- Parameters
-
udi the UDI of the drive
◆ readSpeed()
|
pure virtual |
Retrieves the maximum read speed of this drive in kilobytes.
- Returns
- the maximum read speed
◆ supportedMedia()
|
pure virtual |
Retrieves the medium types this drive supports.
- Returns
- the flag set indicating the supported medium types
◆ writeSpeed()
|
pure virtual |
Retrieves the maximum write speed of this drive in kilobytes.
- Returns
- the maximum write speed
◆ writeSpeeds()
|
pure virtual |
Retrieves the list of supported write speeds of this drive in kilobytes.
- Returns
- the list of supported write speeds
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.