Solid
devicemanager.h
68 * @param type DeviceInterface type available on the devices we're looking for, or DeviceInterface::Unknown
72 virtual QStringList devicesFromQuery(const QString &parentUdi, Solid::DeviceInterface::Type type = Solid::DeviceInterface::Unknown) = 0;
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 backend will have to implement in order to be used in the system...
Definition devicemanager.h:29
virtual QString udiPrefix() const =0
Retrieves the prefix used for the UDIs off all the devices reported by the device manager.
virtual QStringList allDevices()=0
Retrieves the Universal Device Identifier (UDI) of all the devices available in the system.
void deviceAdded(const QString &udi)
This signal is emitted when a new device appears in the system.
void deviceRemoved(const QString &udi)
This signal is emitted when a device disappears from the system.
virtual QSet< Solid::DeviceInterface::Type > supportedInterfaces() const =0
Retrieves a set of interfaces the backend supports.
virtual QStringList devicesFromQuery(const QString &parentUdi, Solid::DeviceInterface::Type type=Solid::DeviceInterface::Unknown)=0
Retrieves the Universal Device Identifier (UDI) of all the devices matching the given constraints (pa...
virtual QObject * createDevice(const QString &udi)=0
Instantiates a new Device object from this backend given its UDI.
DeviceManager(QObject *parent=nullptr)
Constructs a DeviceManager.
Definition ifaces/devicemanager.cpp:9
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
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.