Solid::Ifaces::OpticalDrive

Search for usage in LXR

Solid::Ifaces::OpticalDrive Class Referenceabstract

#include <opticaldrive.h>

Inheritance diagram for Solid::Ifaces::OpticalDrive:

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()

Solid::Ifaces::OpticalDrive::~OpticalDrive ( )
override

Destroys a Cdrom object.

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

Member Function Documentation

◆ eject()

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

◆ ejectPressed()

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

◆ readSpeed()

virtual int Solid::Ifaces::OpticalDrive::readSpeed ( ) const
pure virtual

Retrieves the maximum read speed of this drive in kilobytes.

Returns
the maximum read speed

◆ supportedMedia()

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

◆ writeSpeed()

virtual int Solid::Ifaces::OpticalDrive::writeSpeed ( ) const
pure virtual

Retrieves the maximum write speed of this drive in kilobytes.

Returns
the maximum write speed

◆ writeSpeeds()

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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.