Solid
ifaces/device.h
24 * This class specifies the interface a device will have to comply to in order to be used in the system.
27 * Each device has a set of key/values pair describing its properties. It has also a list of interfaces
135 void registerAction(const QString &actionName, QObject *dest, const char *requestSlot, const char *doneSlot) const;
153 void broadcastActionDone(const QString &actionName, int error = Solid::NoError, const QString &errorString = QString()) const;
Type
This enum type defines the type of device interface that a Device can have.
Definition frontend/deviceinterface.h:50
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 QString displayName() const
Retrieves the display name to use for this device.
Definition ifaces/device.cpp:63
virtual bool queryDeviceInterface(const Solid::DeviceInterface::Type &type) const =0
Tests if a property exist.
void broadcastActionRequested(const QString &actionName) const
Allows to broadcast that an action just got requested on a device to all the corresponding devices in...
Definition ifaces/device.cpp:49
virtual QString description() const =0
Retrieves the description of device.
void broadcastActionDone(const QString &actionName, int error=Solid::NoError, const QString &errorString=QString()) const
Allows to broadcast that an action just completed in a device to all the corresponding devices in oth...
Definition ifaces/device.cpp:39
virtual QStringList emblems() const =0
Retrieves the name of the emblems representing the state of this device.
virtual QString product() const =0
Retrieves the name of the product corresponding to this device.
virtual QString parentUdi() const
Retrieves the Universal Device Identifier (UDI) of the Device's parent.
Definition ifaces/device.cpp:23
virtual QString vendor() const =0
Retrieves the name of the device vendor.
void registerAction(const QString &actionName, QObject *dest, const char *requestSlot, const char *doneSlot) const
Register an action for the given device.
Definition ifaces/device.cpp:28
virtual QString icon() const =0
Retrieves the name of the icon representing this device.
virtual QString udi() const =0
Retrieves the Universal Device Identifier (UDI) of the Device.
virtual QObject * createDeviceInterface(const Solid::DeviceInterface::Type &type)=0
Create a specialized interface to interact with the device corresponding to a particular device inter...
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.