Package org.gnome.gio
Interface DBusObjectManager
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
DBusObjectManager.DBusObjectManager$Impl,DBusObjectManagerClient,DBusObjectManagerServer
The
GDBusObjectManager type is the base type for service- and
client-side implementations of the standardized
org.freedesktop.DBus.ObjectManager
interface.
See DBusObjectManagerClient for the client-side implementation
and DBusObjectManagerServer for the service-side implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe DBusObjectManager$Impl type represents a native instance of the DBusObjectManager interface.static classBase type for D-Bus object managers.static interfaceFunctional interface declaration of theInterfaceAddedCallbackcallback.static interfaceFunctional interface declaration of theInterfaceRemovedCallbackcallback.static interfaceFunctional interface declaration of theObjectAddedCallbackcallback.static interfaceFunctional interface declaration of theObjectRemovedCallbackcallback. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidemitInterfaceAdded(@Nullable DBusObject object, @Nullable DBusInterface interface_) Emits the "interface-added" signal.default voidemitInterfaceRemoved(@Nullable DBusObject object, @Nullable DBusInterface interface_) Emits the "interface-removed" signal.default voidemitObjectAdded(@Nullable DBusObject object) Emits the "object-added" signal.default voidemitObjectRemoved(@Nullable DBusObject object) Emits the "object-removed" signal.default @Nullable DBusInterfacegetInterface(String objectPath, String interfaceName) Gets the interface proxy forinterfaceNameatobjectPath,if any.default @Nullable DBusObjectGets theGDBusObjectatobjectPath,if any.default StringGets the object path that this DBusObjectManager is for.default List<DBusObject> Gets allGDBusObjectobjects known tomanager.static @Nullable TypegetType()Get the GType of the DBusObjectManager classEmitted wheninterface_is added toobject.Emitted wheninterface_has been removed fromobject.Emitted whenobjectis added tomanager.Emitted whenobjectis removed frommanager.
-
Method Details
-
getType
-
getInterface
Gets the interface proxy forinterfaceNameatobjectPath,if any.- Parameters:
objectPath- Object path to look up.interfaceName- D-Bus interface name to look up.- Returns:
- A
GDBusInterfaceinstance ornull. Free with g_object_unref(). - Since:
- 2.30
-
getObject
Gets theGDBusObjectatobjectPath,if any.- Parameters:
objectPath- Object path to look up.- Returns:
- A
GDBusObjectornull. Free with g_object_unref(). - Since:
- 2.30
-
getObjectPath
Gets the object path that this DBusObjectManager is for.- Returns:
- A string owned by
manager.Do not free. - Since:
- 2.30
-
getObjects
Gets allGDBusObjectobjects known tomanager.- Returns:
- A list of
GDBusObjectobjects. The returned list should be freed with g_list_free() after each element has been freed with g_object_unref(). - Since:
- 2.30
-
onInterfaceAdded
default SignalConnection<DBusObjectManager.InterfaceAddedCallback> onInterfaceAdded(DBusObjectManager.InterfaceAddedCallback handler) Emitted wheninterface_is added toobject.This signal exists purely as a convenience to avoid having to connect signals to all objects managed by
manager.- Parameters:
handler- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- Since:
- 2.30
- See Also:
-
emitInterfaceAdded
Emits the "interface-added" signal. SeeonInterfaceAdded(org.gnome.gio.DBusObjectManager.InterfaceAddedCallback). -
onInterfaceRemoved
default SignalConnection<DBusObjectManager.InterfaceRemovedCallback> onInterfaceRemoved(DBusObjectManager.InterfaceRemovedCallback handler) Emitted wheninterface_has been removed fromobject.This signal exists purely as a convenience to avoid having to connect signals to all objects managed by
manager.- Parameters:
handler- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- Since:
- 2.30
- See Also:
-
emitInterfaceRemoved
Emits the "interface-removed" signal. SeeonInterfaceRemoved(org.gnome.gio.DBusObjectManager.InterfaceRemovedCallback). -
onObjectAdded
default SignalConnection<DBusObjectManager.ObjectAddedCallback> onObjectAdded(DBusObjectManager.ObjectAddedCallback handler) Emitted whenobjectis added tomanager.- Parameters:
handler- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- Since:
- 2.30
- See Also:
-
emitObjectAdded
Emits the "object-added" signal. SeeonObjectAdded(org.gnome.gio.DBusObjectManager.ObjectAddedCallback). -
onObjectRemoved
default SignalConnection<DBusObjectManager.ObjectRemovedCallback> onObjectRemoved(DBusObjectManager.ObjectRemovedCallback handler) Emitted whenobjectis removed frommanager.- Parameters:
handler- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- Since:
- 2.30
- See Also:
-
emitObjectRemoved
Emits the "object-removed" signal. SeeonObjectRemoved(org.gnome.gio.DBusObjectManager.ObjectRemovedCallback).
-