6#include <PhosphorDBus/phosphordbus_export.h>
18class QLoggingCategory;
62 explicit ObjectManager(QDBusConnection connection, QString service, QString rootPath = QStringLiteral(
"/"),
63 QObject* parent =
nullptr,
const QLoggingCategory* log =
nullptr);
87 void _q_onInterfacesAdded(
const QDBusMessage& message);
88 void _q_onInterfacesRemoved(
const QDBusMessage& message);
92 std::unique_ptr<Private> d;
Service-agnostic observer for org.freedesktop.DBus.ObjectManager.
Definition ObjectManager.h:48
bool isReady() const
True once the initial GetManagedObjects round-trip has completed (success or error).
void interfacesRemoved(const QString &path, const QStringList &interfaces)
Some of an object's interfaces went away.
~ObjectManager() override
void interfacesAdded(const QString &path, const PhosphorDBus::InterfaceMap &interfaces)
A managed object appeared, or the initial walk surfaced it.
ObjectManager(QDBusConnection connection, QString service, QString rootPath=QStringLiteral("/"), QObject *parent=nullptr, const QLoggingCategory *log=nullptr)
void ready()
Emitted once after the initial GetManagedObjects round-trip completes.
QMap< QString, QVariantMap > InterfaceMap
One D-Bus object's interfaces as reported by ObjectManager: a map of interface name → that interface'...
Definition ObjectManager.h:25