Solid
device.cpp
Go to the documentation of this file.
161 const Solid::DeviceInterface *interface = const_cast<const Device *>(this)->asDeviceInterface(type);
165 const Solid::DeviceInterface *Solid::Device::asDeviceInterface(const DeviceInterface::Type &type) const
315 Solid::DeviceInterface *Solid::DevicePrivate::interface(const DeviceInterface::Type &type) const
320 void Solid::DevicePrivate::setInterface(const DeviceInterface::Type &type, DeviceInterface *interface)
DeviceInterface * interface(const DeviceInterface::Type &type) const
Definition: device.cpp:315
This device interface is available on smart card readers.
Definition: smartcardreader.h:36
This class implements Portable Media Player device interface and represents a portable media player a...
Definition: portablemediaplayer.h:45
QStringList emblems() const
Retrieves the names of the emblems representing the state of this device.
Definition: device.cpp:141
This device interface is available on network interfaces.
Definition: networkinterface.h:36
Definition: devicemanager_p.h:42
This class allows applications to deal with devices available in the underlying system.
Definition: device.h:48
Type
This enum type defines the type of device interface that a Device can have.
Definition: deviceinterface.h:67
This device interface is available on serial interfaces.
Definition: serialinterface.h:37
bool isEmpty() const
void setDevicePrivate(DevicePrivate *devicePrivate)
Definition: deviceinterface.cpp:144
QObject * backendObject() const
Definition: deviceinterface.cpp:129
This device interface is available on volume devices to access them (i.e.
Definition: storageaccess.h:42
Device(const QString &udi=QString())
Constructs a device for a given Universal Device Identifier (UDI).
Definition: device.cpp:75
This device interface is available on Digital Video Broadcast (DVB) devices.
Definition: dvbinterface.h:41
void setInterface(const DeviceInterface::Type &type, DeviceInterface *interface)
Definition: device.cpp:320
DevicePrivate * findRegisteredDevice(const QString &udi)
Definition: devicemanager.cpp:219
bool isDeviceInterface(const DeviceInterface::Type &type) const
Tests if a device interface is available from the device.
Definition: device.cpp:151
QString icon() const
Retrieves the name of the icon representing this device.
Definition: device.cpp:136
This device interface is available on volume devices.
Definition: storagevolume.h:39
#define deviceinterface_cast(IfaceType, DevType, backendObject)
Definition: device.cpp:156
DeviceInterface * asDeviceInterface(const DeviceInterface::Type &type)
Retrieves a specialized interface to interact with the device corresponding to a particular device in...
Definition: device.cpp:159
Definition: deviceinterface.h:74
#define return_SOLID_CALL(Type, Object, Default, Method)
Definition: soliddefs_p.h:26
Definition: internetgateway.h:37
This device interface is available on storage devices.
Definition: storagedrive.h:39
void setBackendObject(Ifaces::Device *object)
Definition: device.cpp:290
Device & operator=(const Device &device)
Assigns a device to this device and returns a reference to it.
Definition: device.cpp:91
QString product() const
Retrieves the name of the product corresponding to this device.
Definition: device.cpp:131
This device interface is available on interfaces exposed by sound cards.
Definition: audiointerface.h:37
QString parentUdi() const
Retrieves the Universal Device Identifier (UDI) of the Device's parent.
Definition: device.cpp:107
This device interface is available on CD-R*,DVD*,Blu-Ray,HD-DVD drives.
Definition: opticaldrive.h:42
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.