Plasma5Support
hotplugengine.cpp
37 QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("solid/actions"), QStandardPaths::LocateDirectory);
68 connect(Solid::DeviceNotifier::instance(), &Solid::DeviceNotifier::deviceAdded, this, &HotplugEngine::onDeviceAdded);
69 connect(Solid::DeviceNotifier::instance(), &Solid::DeviceNotifier::deviceRemoved, this, &HotplugEngine::onDeviceRemoved);
71 m_encryptedPredicate = Solid::Predicate(QStringLiteral("StorageVolume"), QStringLiteral("usage"), "Encrypted");
101 const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("solid/actions"), QStandardPaths::LocateDirectory);
172 const QString actionUrl = QStandardPaths::locate(QStandardPaths::GenericDataLocation, "solid/actions/" + desktop);
211 if ((type == Solid::StorageVolume::Unused || type == Solid::StorageVolume::PartitionTable) && !device.is<Solid::OpticalDisc>()) {
This class is connected with solid, filter devices and provide signal with source for applet in Plasm...
Definition hotplugengine.h:22
Plasma5Support::Service * serviceForSource(const QString &source) override
Definition hotplugengine.cpp:76
void deleted(const QString &path)
WatchFiles
void dirty(const QString &path)
void created(const QString &path)
#define K_PLUGIN_CLASS_WITH_JSON(classname, jsonFile)
QList< KServiceAction > actions() const
void setData(const QString &source, const QVariant &value)
Sets a value for a data source.
Definition dataengine.cpp:121
This class provides a generic API for write access to settings or services.
Definition service.h:78
void deviceRemoved(const QString &udi)
void deviceAdded(const QString &udi)
QString description() const
QStringList emblems() const
QString udi() const
QString icon() const
QString vendor() const
bool is() const
static QList< Device > listFromQuery(const Predicate &predicate, const QString &parentUdi=QString())
QString product() const
DevIface * as()
bool matches(const Device &device) const
static Predicate fromString(const QString &predicate)
bool isHotpluggable() const
UsageType
Type type(const QSqlDatabase &db)
qreal volume()
QCA_EXPORT void init()
iterator begin()
void clear()
bool contains(const Key &key) const const
iterator erase(const_iterator pos)
iterator insert(const Key &key, const T &value)
bool isEmpty() const const
bool remove(const Key &key)
qsizetype count() const const
bool isEmpty() const const
void prepend(parameter_type value)
iterator insert(const Key &key, const T &value)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
LocateDirectory
GenericDataLocation
QString locate(StandardLocation type, const QString &fileName, LocateOptions options)
QStringList locateAll(StandardLocation type, const QString &fileName, LocateOptions options)
bool isEmpty() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:57 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.