Solid
frontend/devicemanager.cpp
7#include "devicemanager_p.h" //krazy:exclude=includes (devicenotifier.h is the header file for this class)
81QList<Solid::Device> Solid::Device::listFromQuery(const QString &predicate, const QString &parentUdi)
92QList<Solid::Device> Solid::Device::listFromType(const DeviceInterface::Type &type, const QString &parentUdi)
116QList<Solid::Device> Solid::Device::listFromQuery(const Predicate &predicate, const QString &parentUdi)
172 qCWarning(Frontend::DeviceManager::DEVICEMANAGER).nospace() << "Couldn't get StorageAccess for \"" << path << "\" - File doesn't exist";
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:92
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:60
static Device storageAccessFromPath(const QString &path)
Returns storage volume for given canonical path to file stored on that device.
Definition frontend/devicemanager.cpp:169
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:116
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
QChar separator()
bool exists() const const
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
QString & append(QChar ch)
QChar * data()
bool endsWith(QChar c, Qt::CaseSensitivity cs) const const
bool isEmpty() const const
QString & remove(QChar ch, Qt::CaseSensitivity cs)
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 Tue Mar 26 2024 11:17:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:12 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.