Solid
frontend/device.h
47 * @param type device interface type available on the devices we're looking for, or DeviceInterface::Unknown
54 static QList<Device> listFromType(const DeviceInterface::Type &type, const QString &parentUdi = QString());
66 static QList<Device> listFromQuery(const Predicate &predicate, const QString &parentUdi = QString());
75 static QList<Device> listFromQuery(const QString &predicate, const QString &parentUdi = QString());
Base class of all the device interfaces.
Definition frontend/deviceinterface.h:30
Type
This enum type defines the type of device interface that a Device can have.
Definition frontend/deviceinterface.h:50
This class allows applications to deal with devices available in the underlying system.
Definition frontend/device.h:34
static QList< Device > listFromType(const DeviceInterface::Type &type, const QString &parentUdi=QString())
Retrieves a list of devices of the system given matching the given constraints (parent and device int...
Definition frontend/devicemanager.cpp:85
QStringList emblems() const
Retrieves the names of the emblems representing the state of this device.
Definition frontend/device.cpp:104
QString udi() const
Retrieves the Universal Device Identifier (UDI).
Definition frontend/device.cpp:68
Device & operator=(const Device &device)
Assigns a device to this device and returns a reference to it.
Definition frontend/device.cpp:57
QString displayName() const
Retrieves the display Name to use for this device.
Definition frontend/device.cpp:109
QString parentUdi() const
Retrieves the Universal Device Identifier (UDI) of the Device's parent.
Definition frontend/device.cpp:73
QString icon() const
Retrieves the name of the icon representing this device.
Definition frontend/device.cpp:99
static QList< Device > allDevices()
Retrieves all the devices available in the underlying system.
Definition frontend/devicemanager.cpp:59
bool isDeviceInterface(const DeviceInterface::Type &type) const
Tests if a device interface is available from the device.
Definition frontend/device.cpp:119
DeviceInterface * asDeviceInterface(const DeviceInterface::Type &type)
Retrieves a specialized interface to interact with the device corresponding to a particular device in...
Definition frontend/device.cpp:126
static Device storageAccessFromPath(const QString &path)
Returns the Device containing the filesystem for the given path.
Definition frontend/devicemanager.cpp:152
Device(const QString &udi=QString())
Constructs a device for a given Universal Device Identifier (UDI).
Definition frontend/device.cpp:42
static QList< Device > listFromQuery(const Predicate &predicate, const QString &parentUdi=QString())
Retrieves a list of devices of the system given matching the given constraints (parent and predicate)
Definition frontend/devicemanager.cpp:104
const DevIface * as() const
Retrieves a specialized interface to interact with the device corresponding to a given device interfa...
Definition frontend/device.h:249
QString product() const
Retrieves the name of the product corresponding to this device.
Definition frontend/device.cpp:94
DevIface * as()
Retrieves a specialized interface to interact with the device corresponding to a given device interfa...
Definition frontend/device.h:235
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:55:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:55:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.