Class DBusInterface

All Implemented Interfaces:
PointerInterface

public class DBusInterface extends Interface
The #GDBusInterface type is the base type for D-Bus interfaces both
on the service side (see #GDBusInterfaceSkeleton) and client side
(see #GDBusProxy).

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

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • dupObject

      public DBusObject dupObject()
      Gets the #GDBusObject that @interface_ belongs to, if any.
      Returns:
      A #GDBusObject or %NULL. The returned reference should be freed with g_object_unref().
    • getInfo

      public DBusInterfaceInfo getInfo()
      Gets D-Bus introspection information for the D-Bus interface
      implemented by @interface_.
      Returns:
      A #GDBusInterfaceInfo. Do not free.
    • getObject

      public DBusObject getObject()
      Gets the #GDBusObject that @interface_ belongs to, if any.

      It is not safe to use the returned object if @interface_ or
      the returned object is being used from other threads. See
      g_dbus_interface_dup_object() for a thread-safe alternative.
      Returns:
      A #GDBusObject or %NULL. The returned reference belongs to @interface_ and should not be freed.
    • setObject

      public void setObject(@Nullable DBusObject object)
      Sets the #GDBusObject for @interface_ to @object.

      Note that @interface_ will hold a weak reference to @object.
      Parameters:
      object - A #GDBusObject or %NULL.
    • 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()