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";
159 QDBusMessage call = QDBusMessage::createMethodCall(UD2_DBUS_SERVICE, m_udi, DBUS_INTERFACE_INTROSPECT, "Introspect");
179 QDBusMessage call = QDBusMessage::createMethodCall(UD2_DBUS_SERVICE, m_udi, DBUS_INTERFACE_PROPS, "Get");
181 * Interface is set to an empty string as in this QDBusInterface is a meta-object of multiple interfaces on the same path
182 * The DBus properties also interface supports this, and will find the appropriate interface if none is explicitly set.
188 /* We don't check for error here and store the item in the cache anyway so next time we don't have to
194void DeviceBackend::slotPropertiesChanged(const QString &ifaceName, const QVariantMap &changedProps, const QStringList &invalidatedProps)
222void DeviceBackend::slotInterfacesAdded(const QDBusObjectPath &object_path, const VariantMapMap &interfaces_and_properties)
228 for (auto it = interfaces_and_properties.cbegin(); it != interfaces_and_properties.cend(); ++it) {
237void DeviceBackend::slotInterfacesRemoved(const QDBusObjectPath &object_path, const QStringList &interfaces)
254// UDisks2 sends us null terminated strings, make sure to strip the extranous \0 in favor of the implicit \0.
255// Otherwise comparision becomes unnecessarily complicated because 'foo\0' != 'foo'. QByteArrays are implicitly
QString name(StandardShortcut id)
void chop(qsizetype n)
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)
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 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.