Solid
udisksdevicebackend.cpp
144 qCWarning(UDISKS2) << "Error getting props:" << reply.error().name() << reply.error().message() << "for" << m_udi;
146 // qDebug() << "After iface" << iface << ", cache now contains" << m_propertyCache.size() << "items";
160 QDBusMessage::createMethodCall(QStringLiteral(UD2_DBUS_SERVICE), m_udi, QStringLiteral(DBUS_INTERFACE_INTROSPECT), QStringLiteral("Introspect"));
180 QDBusMessage call = QDBusMessage::createMethodCall(QStringLiteral(UD2_DBUS_SERVICE), m_udi, QStringLiteral(DBUS_INTERFACE_PROPS), QStringLiteral("Get"));
182 * Interface is set to an empty string as in this QDBusInterface is a meta-object of multiple interfaces on the same path
183 * The DBus properties also interface supports this, and will find the appropriate interface if none is explicitly set.
189 /* We don't check for error here and store the item in the cache anyway so next time we don't have to
195void DeviceBackend::slotPropertiesChanged(const QString &ifaceName, const QVariantMap &changedProps, const QStringList &invalidatedProps)
223void DeviceBackend::slotInterfacesAdded(const QDBusObjectPath &object_path, const VariantMapMap &interfaces_and_properties)
229 for (auto it = interfaces_and_properties.cbegin(); it != interfaces_and_properties.cend(); ++it) {
238void DeviceBackend::slotInterfacesRemoved(const QDBusObjectPath &object_path, const QStringList &interfaces)
255// UDisks2 sends us null terminated strings, make sure to strip the extranous \0 in favor of the implicit \0.
256// Otherwise comparision becomes unnecessarily complicated because 'foo\0' != 'foo'. QByteArrays are implicitly
QString name(StandardAction id)
QDBusMessage call(const QDBusMessage &message, QDBus::CallMode mode, int timeout) const const
bool connect(const QString &service, const QString &path, const QString &interface, const QString &name, QObject *receiver, const char *slot)
QDBusConnection systemBus()
QString message() const const
QString name() const const
QDBusMessage createMethodCall(const QString &service, const QString &path, const QString &interface, const QString &method)
void setArguments(const QList< QVariant > &arguments)
QString path() const const
QDBusError error() const const
bool isValid() const const
typename Select< 0 >::Type value() const const
void append(QList< T > &&value)
void clear()
bool isEmpty() const const
qsizetype removeAll(const AT &t)
const_iterator cbegin() const const
const_iterator cend() const const
iterator insert(const Key &key, const T &value)
QMetaType fromType()
Q_EMITQ_EMIT
bool isEmpty() const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
T & localData()
QMetaType metaType() const const
QByteArray toByteArray() 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.