Package org.gnome.gio
Interface DBusObjectManager
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
DBusObjectManager.DBusObjectManagerImpl
,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
Modifier and TypeInterfaceDescriptionstatic class
Base type for D-Bus object managers.static class
The DBusObjectManagerImpl type represents a native instance of the DBusObjectManager interface.static interface
Functional interface declaration of theInterfaceAddedCallback
callback.static interface
Functional interface declaration of theInterfaceRemovedCallback
callback.static interface
Functional interface declaration of theObjectAddedCallback
callback.static interface
Functional interface declaration of theObjectRemovedCallback
callback. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
emitInterfaceAdded
(DBusObject object, DBusInterface interface_) Emits the "interface-added" signal.default void
emitInterfaceRemoved
(DBusObject object, DBusInterface interface_) Emits the "interface-removed" signal.default void
emitObjectAdded
(DBusObject object) Emits the "object-added" signal.default void
emitObjectRemoved
(DBusObject object) Emits the "object-removed" signal.default DBusInterface
getInterface
(String objectPath, String interfaceName) Gets the interface proxy forinterfaceName
atobjectPath
, if any.default DBusObject
Gets theGDBusObject
atobjectPath
, if any.default String
Gets the object path that this DBusObjectManager is for.default List
<DBusObject> Gets allGDBusObject
objects known to this DBusObjectManager.static Type
getType()
Get the GType of the DBusObjectManager classEmitted wheninterface_
is added toobject
.Emitted wheninterface_
has been removed fromobject
.Emitted whenobject
is added tomanager
.Emitted whenobject
is removed frommanager
.
-
Method Details
-
getType
-
getInterface
Gets the interface proxy forinterfaceName
atobjectPath
, if any.- Parameters:
objectPath
- Object path to look up.interfaceName
- D-Bus interface name to look up.- Returns:
- A
GDBusInterface
instance ornull
. Free with g_object_unref().
-
getObject
Gets theGDBusObject
atobjectPath
, if any.- Parameters:
objectPath
- Object path to look up.- Returns:
- A
GDBusObject
ornull
. Free with g_object_unref().
-
getObjectPath
Gets the object path that this DBusObjectManager is for.- Returns:
- A string owned by this DBusObjectManager. Do not free.
-
getObjects
Gets allGDBusObject
objects known to this DBusObjectManager.- Returns:
- A list of
GDBusObject
objects. The returned list should be freed with g_list_free() after each element has been freed with g_object_unref().
-
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
- 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
- See Also:
-
emitInterfaceRemoved
Emits the "interface-removed" signal. SeeonInterfaceRemoved(org.gnome.gio.DBusObjectManager.InterfaceRemovedCallback)
. -
onObjectAdded
default SignalConnection<DBusObjectManager.ObjectAddedCallback> onObjectAdded(DBusObjectManager.ObjectAddedCallback handler) Emitted whenobject
is added tomanager
.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitObjectAdded
Emits the "object-added" signal. SeeonObjectAdded(org.gnome.gio.DBusObjectManager.ObjectAddedCallback)
. -
onObjectRemoved
default SignalConnection<DBusObjectManager.ObjectRemovedCallback> onObjectRemoved(DBusObjectManager.ObjectRemovedCallback handler) Emitted whenobject
is removed frommanager
.- Parameters:
handler
- the signal handler- Returns:
- a signal handler ID to keep track of the signal connection
- See Also:
-
emitObjectRemoved
Emits the "object-removed" signal. SeeonObjectRemoved(org.gnome.gio.DBusObjectManager.ObjectRemovedCallback)
.
-