Package org.gnome.gio
Interface DBusObject
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
DBusObject.DBusObject$Impl,DBusObjectProxy,DBusObjectSkeleton
The
GDBusObject type is the base type for D-Bus objects on both
the service side (see DBusObjectSkeleton) and the client side
(see DBusObjectProxy). It is essentially just a container of
interfaces.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe DBusObject$Impl type represents a native instance of the DBusObject interface.static classBase object type for D-Bus objects.static interfaceFunctional interface declaration of theInterfaceAddedCallbackcallback.static interfaceFunctional interface declaration of theInterfaceRemovedCallbackcallback. -
Method Summary
Modifier and TypeMethodDescriptiondefault voidemitInterfaceAdded(@Nullable DBusInterface interface_) Emits the "interface-added" signal.default voidemitInterfaceRemoved(@Nullable DBusInterface interface_) Emits the "interface-removed" signal.default @Nullable DBusInterfacegetInterface(String interfaceName) Gets the D-Bus interface with nameinterfaceNameassociated withobject,if any.default List<DBusInterface> Gets the D-Bus interfaces associated withobject.default StringGets the object path forobject.static @Nullable TypegetType()Get the GType of the DBusObject classEmitted wheninterface_is added toobject.Emitted wheninterface_is removed fromobject.
-
Method Details
-
getType
-
getInterface
Gets the D-Bus interface with nameinterfaceNameassociated withobject,if any.- Parameters:
interfaceName- A D-Bus interface name.- Returns:
nullif not found, otherwise aGDBusInterfacethat must be freed with g_object_unref().- Since:
- 2.30
-
getInterfaces
Gets the D-Bus interfaces associated withobject.- Returns:
- A list of
GDBusInterfaceinstances. The returned list must be freed by g_list_free() after each element has been freed with g_object_unref(). - Since:
- 2.30
-
getObjectPath
Gets the object path forobject.- Returns:
- A string owned by
object.Do not free. - Since:
- 2.30
-
onInterfaceAdded
default SignalConnection<DBusObject.InterfaceAddedCallback> onInterfaceAdded(DBusObject.InterfaceAddedCallback handler) Emitted wheninterface_is added toobject.- 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.DBusObject.InterfaceAddedCallback). -
onInterfaceRemoved
default SignalConnection<DBusObject.InterfaceRemovedCallback> onInterfaceRemoved(DBusObject.InterfaceRemovedCallback handler) Emitted wheninterface_is removed fromobject.- 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.DBusObject.InterfaceRemovedCallback).
-