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 block devices.
This device interface is available on digital camera devices.
Base class of all the device interfaces.
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.
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.
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.
This device interface is available on CD-R*,DVD*,Blu-Ray,HD-DVD drives.
This class implements Portable Media Player device interface and represents a portable media player a...
This device interface is available on processors.
This device interface is available on volume devices to access them (i.e.
This device interface is available on storage devices.
This device interface is available on volume devices.
Type type(const QSqlDatabase &db)
bool isEmpty() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.