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