Class DBusObject

All Implemented Interfaces:
PointerInterface

public class DBusObject extends Interface
The #GDBusObject type is the base type for D-Bus objects on both
the service side (see #GDBusObjectSkeleton) and the client side
(see #GDBusObjectProxy). It is essentially just a container of
interfaces.

https://docs.gtk.org/gio/iface.DBusObject.html

  • Field Details

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getInterface

      public DBusInterface getInterface(@Nonnull Str interface_name)
      Gets the D-Bus interface with name @interface_name associated with
      @object, if any.
      Parameters:
      interface_name - A D-Bus interface name.
      Returns:
      %NULL if not found, otherwise a #GDBusInterface that must be freed with g_object_unref().
    • getInterface

      public DBusInterface getInterface(String interface_name)
      Gets the D-Bus interface with name @interface_name associated with
      @object, if any.
      Parameters:
      interface_name - A D-Bus interface name.
      Returns:
      %NULL if not found, otherwise a #GDBusInterface that must be freed with g_object_unref().
    • getInterfaces

      public List getInterfaces()
      Gets the D-Bus interfaces associated with @object.
      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

      public Str getObjectPath()
      Gets the object path for @object.
      Returns:
      A string owned by @object. Do not free.
    • onInterfaceAdded

      public SignalHandler onInterfaceAdded(DBusObject.OnInterfaceAdded signal)
      Connect to signal "interface-added".
      See DBusObject.OnInterfaceAdded.onInterfaceAdded(ch.bailu.gtk.gio.DBusInterface) for signal description.
      Field SIGNAL_ON_INTERFACE_ADDED contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • onInterfaceRemoved

      public SignalHandler onInterfaceRemoved(DBusObject.OnInterfaceRemoved signal)
      Connect to signal "interface-removed".
      See DBusObject.OnInterfaceRemoved.onInterfaceRemoved(ch.bailu.gtk.gio.DBusInterface) for signal description.
      Field SIGNAL_ON_INTERFACE_REMOVED contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()