Interface DBusInterface

All Superinterfaces:
Proxy
All Known Implementing Classes:
Collection, DBusInterface.DBusInterface$Impl, DBusInterfaceSkeleton, DBusInterfaceSkeleton.DBusInterfaceSkeleton$Impl, DBusProxy, Item, Prompt, Service

@Generated("org.javagi.JavaGI") public interface DBusInterface extends Proxy

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 Classes
    Modifier and Type
    Interface
    Description
    static class 
    The DBusInterface$Impl type represents a native instance of the DBusInterface interface.
    static class 
    Base type for D-Bus interfaces.
  • Method Summary

    Modifier and Type
    Method
    Description
    default @Nullable DBusInterfaceInfo
    Gets D-Bus introspection information for the D-Bus interface implemented by interface.
    default @Nullable DBusObject
    Gets the GDBusObject that this DBusInterface belongs to, if any.
    static @Nullable Type
    Get the GType of the DBusInterface class.
    default void
    setObject(@Nullable DBusObject object)
    Sets the GDBusObject for this DBusInterface to object.

    Methods inherited from interface Proxy

    handle
  • Method Details

    • getType

      static @Nullable Type getType()
      Get the GType of the DBusInterface class.
      Returns:
      the GType
    • getObject

      default @Nullable DBusObject getObject()
      Gets the GDBusObject that this DBusInterface belongs to, if any.
      Returns:
      A GDBusObject or null. The returned reference should be freed with g_object_unref().
      Since:
      2.32
    • getInfo

      default @Nullable DBusInterfaceInfo getInfo()

      Gets D-Bus introspection information for the D-Bus interface implemented by interface.

      This can return null if no GDBusInterfaceInfo was provided during construction of this DBusInterface and is also not made available otherwise. For example, GDBusProxy implements GDBusInterface but allows for a null GDBusInterfaceInfo.

      Returns:
      A GDBusInterfaceInfo. Do not free.
      Since:
      2.30
    • setObject

      default void setObject(@Nullable DBusObject object)

      Sets the GDBusObject for this DBusInterface to object.

      Note that this DBusInterface will hold a weak reference to object.

      Parameters:
      object - A GDBusObject or null.
      Since:
      2.30