Solid::Ifaces::OpticalDrive

Solid::Ifaces::OpticalDrive Class Referenceabstract

#include <opticaldrive.h>

Inheritance diagram for Solid::Ifaces::OpticalDrive:

Public Member Functions

virtual ~OpticalDrive ()
 
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
virtual ~StorageDrive ()
 
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
 
- Public Member Functions inherited from Solid::Ifaces::Block
virtual ~Block ()
 
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

Solid::Ifaces::OpticalDrive::~OpticalDrive ( )
virtual

Destroys a Cdrom object.

Definition at line 9 of file ifaces/opticaldrive.cpp.

Member Function Documentation

virtual bool Solid::Ifaces::OpticalDrive::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
virtual void Solid::Ifaces::OpticalDrive::ejectPressed ( const QString udi)
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
udithe UDI of the drive
virtual int Solid::Ifaces::OpticalDrive::readSpeed ( ) const
pure virtual

Retrieves the maximum read speed of this drive in kilobytes.

Returns
the maximum read speed
virtual Solid::OpticalDrive::MediumTypes Solid::Ifaces::OpticalDrive::supportedMedia ( ) const
pure virtual

Retrieves the medium types this drive supports.

Returns
the flag set indicating the supported medium types
virtual int Solid::Ifaces::OpticalDrive::writeSpeed ( ) const
pure virtual

Retrieves the maximum write speed of this drive in kilobytes.

Returns
the maximum write speed
virtual QList<int> Solid::Ifaces::OpticalDrive::writeSpeeds ( ) const
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 22:47:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.