Class DBusObjectSkeleton

All Implemented Interfaces:
PointerInterface

public class DBusObjectSkeleton extends Object
A #GDBusObjectSkeleton instance is essentially a group of D-Bus
interfaces. The set of exported interfaces on the object may be
dynamic and change at runtime.

This type is intended to be used with #GDBusObjectManager.

https://docs.gtk.org/gio/class.DBusObjectSkeleton.html

  • Field Details

  • Constructor Details

    • DBusObjectSkeleton

      public DBusObjectSkeleton(PointerContainer pointer)
    • DBusObjectSkeleton

      public DBusObjectSkeleton(@Nonnull Str object_path)
      Creates a new #GDBusObjectSkeleton.
      Parameters:
      object_path - An object path.
    • DBusObjectSkeleton

      public DBusObjectSkeleton(String object_path)
      Creates a new #GDBusObjectSkeleton.
      Parameters:
      object_path - An object path.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • addInterface

      public void addInterface(@Nonnull DBusInterfaceSkeleton interface_)
      Adds @interface_ to @object.

      If @object already contains a #GDBusInterfaceSkeleton with the same
      interface name, it is removed before @interface_ is added.

      Note that @object takes its own reference on @interface_ and holds
      it until removed.
      Parameters:
      interface_ - A #GDBusInterfaceSkeleton.
    • flush

      public void flush()
      This method simply calls g_dbus_interface_skeleton_flush() on all
      interfaces belonging to @object. See that method for when flushing
      is useful.
    • removeInterface

      public void removeInterface(@Nonnull DBusInterfaceSkeleton interface_)
      Removes @interface_ from @object.
      Parameters:
      interface_ - A #GDBusInterfaceSkeleton.
    • removeInterfaceByName

      public void removeInterfaceByName(@Nonnull Str interface_name)
      Removes the #GDBusInterface with @interface_name from @object.

      If no D-Bus interface of the given interface exists, this function
      does nothing.
      Parameters:
      interface_name - A D-Bus interface name.
    • removeInterfaceByName

      public void removeInterfaceByName(String interface_name)
      Removes the #GDBusInterface with @interface_name from @object.

      If no D-Bus interface of the given interface exists, this function
      does nothing.
      Parameters:
      interface_name - A D-Bus interface name.
    • setObjectPath

      public void setObjectPath(@Nonnull Str object_path)
      Sets the object path for @object.
      Parameters:
      object_path - A valid D-Bus object path.
    • setObjectPath

      public void setObjectPath(String object_path)
      Sets the object path for @object.
      Parameters:
      object_path - A valid D-Bus object path.
    • onAuthorizeMethod

      public SignalHandler onAuthorizeMethod(DBusObjectSkeleton.OnAuthorizeMethod signal)
      Connect to signal "authorize-method".
      See DBusObjectSkeleton.OnAuthorizeMethod.onAuthorizeMethod(ch.bailu.gtk.gio.DBusInterfaceSkeleton, ch.bailu.gtk.gio.DBusMethodInvocation) for signal description.
      Field SIGNAL_ON_AUTHORIZE_METHOD 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.
    • asDBusObject

      public DBusObject asDBusObject()
      Implements interface DBusObject. Call this to get access to interface functions.
      Returns:
      DBusObject
    • 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()