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)
This device interface is available on network interfaces.
Definition: networkinterface.h:37
Type
This enum type defines the type of device interface that a Device can have.
Definition: deviceinterface.h:67
bool isDeviceInterface(const DeviceInterface::Type &type) const
Tests if a device interface is available from the device.
Definition: device.cpp:151
This class implements Portable Media Player device interface and represents a portable media player a...
Definition: portablemediaplayer.h:46
void setDevicePrivate(DevicePrivate *devicePrivate)
Definition: deviceinterface.cpp:144
QString parentUdi() const
Retrieves the Universal Device Identifier (UDI) of the Device's parent.
Definition: device.cpp:107
This device interface is available on volume devices.
Definition: storagevolume.h:40
Definition: devicemanager_p.h:43
This class allows applications to deal with devices available in the underlying system.
Definition: device.h:49
Device & operator=(const Device &device)
Assigns a device to this device and returns a reference to it.
Definition: device.cpp:91
#define deviceinterface_cast(IfaceType, DevType, backendObject)
Definition: device.cpp:156
This device interface is available on smart card readers.
Definition: smartcardreader.h:37
void setBackendObject(Ifaces::Device *object)
Definition: device.cpp:290
This device interface is available on volume devices to access them (i.e.
Definition: storageaccess.h:43
QStringList emblems() const
Retrieves the names of the emblems representing the state of this device.
Definition: device.cpp:141
QObject * backendObject() const
Definition: deviceinterface.cpp:129
#define return_SOLID_CALL(Type, Object, Default, Method)
Definition: soliddefs_p.h:26
This device interface is available on Digital Video Broadcast (DVB) devices.
Definition: dvbinterface.h:42
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
DevicePrivate * findRegisteredDevice(const QString &udi)
Definition: devicemanager.cpp:219
Definition: internetgateway.h:38
DeviceInterface * interface(const DeviceInterface::Type &type) const
Definition: device.cpp:315
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:38
This device interface is available on CD-R*,DVD*,Blu-Ray,HD-DVD drives.
Definition: opticaldrive.h:43
This device interface is available on serial interfaces.
Definition: serialinterface.h:38
void setInterface(const DeviceInterface::Type &type, DeviceInterface *interface)
Definition: device.cpp:320
QString icon() const
Retrieves the name of the icon representing this device.
Definition: device.cpp:136
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 storage devices.
Definition: storagedrive.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 27 2020 00:00:00 by doxygen 1.8.20 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.