Package org.gnome.gio
Interface DBusObject
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
DBusObject.DBusObjectImpl
,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
Modifier and TypeInterfaceDescriptionstatic class
Base object type for D-Bus objects.static class
The DBusObjectImpl type represents a native instance of the DBusObject interface.static interface
Functional interface declaration of theInterfaceAddedCallback
callback.static interface
Functional interface declaration of theInterfaceRemovedCallback
callback. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
emitInterfaceAdded
(DBusInterface interface_) Emits the "interface-added" signal.default void
emitInterfaceRemoved
(DBusInterface interface_) Emits the "interface-removed" signal.default DBusInterface
getInterface
(String interfaceName) Gets the D-Bus interface with nameinterfaceName
associated with this DBusObject, if any.default List
<DBusInterface> Gets the D-Bus interfaces associated with this DBusObject.default String
Gets the object path for this DBusObject.static Type
getType()
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 nameinterfaceName
associated with this DBusObject, if any.- Parameters:
interfaceName
- A D-Bus interface name.- Returns:
null
if not found, otherwise aGDBusInterface
that must be freed with g_object_unref().
-
getInterfaces
Gets the D-Bus interfaces associated with this DBusObject.- Returns:
- A list of
GDBusInterface
instances. The returned list must be freed by g_list_free() after each element has been freed with g_object_unref().
-
getObjectPath
Gets the object path for this DBusObject.- Returns:
- A string owned by this DBusObject. Do not free.
-
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
- 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
- See Also:
-
emitInterfaceRemoved
Emits the "interface-removed" signal. SeeonInterfaceRemoved(org.gnome.gio.DBusObject.InterfaceRemovedCallback)
.
-