Interface DBusInterface
- All Superinterfaces:
Proxy
- All Known Implementing Classes:
Collection, DBusInterface.DBusInterface$Impl, DBusInterfaceSkeleton, DBusInterfaceSkeleton.DBusInterfaceSkeleton$Impl, DBusProxy, Item, Prompt, Service
Base type for D-Bus interfaces.
The GDBusInterface type is the base type for D-Bus interfaces both
on the service side (see DBusInterfaceSkeleton) and client side
(see DBusProxy).
- Since:
- 2.30
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThe DBusInterface$Impl type represents a native instance of the DBusInterface interface.static classBase type for D-Bus interfaces. -
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable DBusInterfaceInfogetInfo()Gets D-Bus introspection information for the D-Bus interface implemented byinterface.default @Nullable DBusObjectGets theGDBusObjectthat this DBusInterface belongs to, if any.static @Nullable TypegetType()Get the GType of the DBusInterface class.default voidsetObject(@Nullable DBusObject object) Sets theGDBusObjectfor this DBusInterface toobject.
-
Method Details
-
getType
-
getObject
Gets theGDBusObjectthat this DBusInterface belongs to, if any.- Returns:
- A
GDBusObjectornull. The returned reference should be freed with g_object_unref(). - Since:
- 2.32
-
getInfo
Gets D-Bus introspection information for the D-Bus interface implemented by
interface.This can return
nullif noGDBusInterfaceInfowas provided during construction of this DBusInterface and is also not made available otherwise. For example,GDBusProxyimplementsGDBusInterfacebut allows for anullGDBusInterfaceInfo.- Returns:
- A
GDBusInterfaceInfo. Do not free. - Since:
- 2.30
-
setObject
Sets the
GDBusObjectfor this DBusInterface toobject.Note that this DBusInterface will hold a weak reference to
object.- Parameters:
object- AGDBusObjectornull.- Since:
- 2.30
-