Solid
frontend/device.cpp
124#define deviceinterface_cast(IfaceType, DevType, backendObject) (qobject_cast<IfaceType *>(backendObject) ? new DevType(backendObject) : nullptr)
128 const Solid::DeviceInterface *interface = const_cast<const Device *>(this)->asDeviceInterface(type);
132const Solid::DeviceInterface *Solid::Device::asDeviceInterface(const DeviceInterface::Type &type) const
249void Solid::DevicePrivate::setInterface(const DeviceInterface::Type &type, DeviceInterface *interface)
This device interface is available on digital camera devices.
Definition frontend/camera.h:35
Base class of all the device interfaces.
Definition frontend/deviceinterface.h:30
Type
This enum type defines the type of device interface that a Device can have.
Definition frontend/deviceinterface.h:50
This class allows applications to deal with devices available in the underlying system.
Definition frontend/device.h:34
QStringList emblems() const
Retrieves the names of the emblems representing the state of this device.
Definition frontend/device.cpp:104
QString udi() const
Retrieves the Universal Device Identifier (UDI).
Definition frontend/device.cpp:68
Device & operator=(const Device &device)
Assigns a device to this device and returns a reference to it.
Definition frontend/device.cpp:57
QString displayName() const
Retrieves the display Name to use for this device.
Definition frontend/device.cpp:109
QString parentUdi() const
Retrieves the Universal Device Identifier (UDI) of the Device's parent.
Definition frontend/device.cpp:73
QString icon() const
Retrieves the name of the icon representing this device.
Definition frontend/device.cpp:99
bool isDeviceInterface(const DeviceInterface::Type &type) const
Tests if a device interface is available from the device.
Definition frontend/device.cpp:119
DeviceInterface * asDeviceInterface(const DeviceInterface::Type &type)
Retrieves a specialized interface to interact with the device corresponding to a particular device in...
Definition frontend/device.cpp:126
Device(const QString &udi=QString())
Constructs a device for a given Universal Device Identifier (UDI).
Definition frontend/device.cpp:42
QString product() const
Retrieves the name of the product corresponding to this device.
Definition frontend/device.cpp:94
Generic interface to deal with a device.
Definition frontend/genericinterface.h:33
This device interface is available on batteries.
Definition ifaces/battery.h:23
This device interface is available on block devices.
Definition ifaces/block.h:24
This device interface is available on digital camera devices.
Definition ifaces/camera.h:29
This class specifies the interface a device will have to comply to in order to be used in the system.
Definition ifaces/device.h:33
virtual QObject * createDeviceInterface(const Solid::DeviceInterface::Type &type)=0
Create a specialized interface to interact with the device corresponding to a particular device inter...
Generic interface to deal with a device.
Definition ifaces/genericinterface.h:29
This device interface is available on optical discs.
Definition ifaces/opticaldisc.h:23
This device interface is available on CD-ROM drives.
Definition ifaces/opticaldrive.h:25
This class implements Portable Media Player device interface and represents a portable media player a...
Definition ifaces/portablemediaplayer.h:26
This device interface is available on processors.
Definition ifaces/processor.h:21
This device interface is available on volume devices.
Definition ifaces/storageaccess.h:24
This device interface is available on storage devices.
Definition ifaces/storagedrive.h:26
This device interface is available on volume devices.
Definition ifaces/storagevolume.h:24
This device interface is available on optical discs.
Definition frontend/opticaldisc.h:27
This device interface is available on CD-R*,DVD*,Blu-Ray,HD-DVD drives.
Definition frontend/opticaldrive.h:31
This class implements Portable Media Player device interface and represents a portable media player a...
Definition frontend/portablemediaplayer.h:34
This device interface is available on volume devices to access them (i.e.
Definition frontend/storageaccess.h:31
This device interface is available on storage devices.
Definition frontend/storagedrive.h:28
This device interface is available on volume devices.
Definition frontend/storagevolume.h:28
Type type(const QSqlDatabase &db)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:55:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:55:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.