Solid
frontend/devicemanager.cpp
7#include "devicemanager_p.h" //krazy:exclude=includes (devicenotifier.h is the header file for this class)
79QList<Solid::Device> Solid::Device::listFromQuery(const QString &predicate, const QString &parentUdi)
90QList<Solid::Device> Solid::Device::listFromType(const DeviceInterface::Type &type, const QString &parentUdi)
114QList<Solid::Device> Solid::Device::listFromQuery(const Predicate &predicate, const QString &parentUdi)
Type
This enum type defines the type of device interface that a Device can have.
Definition frontend/deviceinterface.h:50
This class allow to query the underlying system to obtain information about the hardware available.
Definition devicenotifier.h:30
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:90
QString udi() const
Retrieves the Universal Device Identifier (UDI).
Definition frontend/device.cpp:68
static QList< Device > allDevices()
Retrieves all the devices available in the underlying system.
Definition frontend/devicemanager.cpp:58
static Device storageAccessFromPath(const QString &path)
Returns the Device containing the filesystem for the given path.
Definition frontend/devicemanager.cpp:167
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:114
This class specifies the interface a backend will have to implement in order to be used in the system...
Definition devicemanager.h:29
virtual QStringList allDevices()=0
Retrieves the Universal Device Identifier (UDI) of all the devices available in 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...
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
bool matches(const Device &device) const
Checks if a device matches the predicate.
Definition predicate.cpp:169
QSet< DeviceInterface::Type > usedTypes() const
Retrieves the device interface types used in this predicate.
Definition predicate.cpp:234
static Predicate fromString(const QString &predicate)
Converts a string to a predicate.
Definition predicateparse.cpp:40
This device interface is available on volume devices to access them (i.e.
Definition frontend/storageaccess.h:31
This device interface is available on volume devices.
Definition frontend/storagevolume.h:28
void append(QList< T > &&value)
iterator begin()
iterator end()
iterator insert(const_iterator before, parameter_type value)
bool contains(const QSet< T > &other) const const
QSet< T > & intersect(const QSet< T > &other)
QList< T > values() const const
QChar & back()
QChar * data()
bool isEmpty() const const
QString & remove(QChar ch, Qt::CaseSensitivity cs)
qsizetype size() const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:47:59 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:47:59 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.