Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DBusObjectSkeleton

[14:7] 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 [iface@Gio.DBusObjectManager].

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • DBusObjectSkeleton (object_path = null)

    Creates a new #GDBusObjectSkeleton.

    • @p object_path is An object path..
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asObject ()

    Wraps this handle as Object.

    • @r A Object object.
  • asDBusObject ()

    Wraps this handle as DBusObject.

    • @r A DBusObject object.
  • connectSignal (string Name, CallbackObj)

    Connects one generated callback wrapper to a named signal.

    • @p Name is the signal name.
    • @p CallbackObj is the generated callback wrapper to connect.
    • @r The connected handler id.
  • disconnectSignalHandler (int HandlerId)

    Disconnects one retained signal handler id.

    • @p HandlerId is the signal handler id to disconnect.
    • @r None.
  • setOnAuthorizemethod (callback Fn, UserData = null)

    Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized. This signal is like #GDBusInterfaceSkeleton's #GDBusInterfaceSkeleton::g-authorize-method signal, except that it is for the enclosing object. The default class handler just returns %TRUE.

    • @p Fn is the Aussom callback.
    • @p Fn is called with (DBusObjectSkeleton Self, DBusInterfaceSkeleton Interface, DBusMethodInvocation Invocation).
    • @p UserData is retained and passed through to the generated callback wrapper when provided.
    • @r The connected handler id.
  • getProperty (string Name)

    Reads one generated property by name.

  • setProperty (string Name, Value)

    Writes one generated property by name.

  • setGobjectpath (string Value)

    The object path where the object is exported.

    • @p Value is the new property value.
    • @r None.
  • add_interface (object 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.
    • @p interface_ is A #GDBusInterfaceSkeleton..
    • @r None.
  • flush ()

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

    • @r None.
  • remove_interface (object interface_)

    Removes @interface_ from @object.

    • @p interface_ is A #GDBusInterfaceSkeleton..
    • @r None.
  • remove_interface_by_name (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.

    • @p interface_name is A D-Bus interface name..
    • @r None.
  • set_object_path (string object_path)

    Sets the object path for @object.

    • @p object_path is A valid D-Bus object path..
    • @r None.

class: DBusObjectSkeletonAuthorizemethodCallback

[258:7] extends: object

Generated low-level callback wrapper for GIR callback authorize-method.

Members

  • callbackObj
  • userFn
  • userData
  • hasUserData

Methods

  • DBusObjectSkeletonAuthorizemethodCallback (callback Fn, UserData = null)

    Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking Fn.

    • @p Fn is the Aussom callback implementation.
    • @p UserData is retained and passed through to Fn on each invocation when provided.
  • trampoline (nativeSelf, interface, invocation, nativeUserData)

    Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.

  • callback ()

    Returns the wrapped NativeCallback.

  • handle ()

    Returns the callback as a NativeHandle.

  • close ()

    Closes the underlying NativeCallback.

  • isClosed ()

    Returns true when the callback has been closed.

class: DBusObjectSkeletonMeta

[330:14] static extends: object

Generated metadata helpers for DBusObjectSkeleton class surfaces.

Methods

  • properties ()

    Returns property metadata for DBusObjectSkeleton.

    • @r A list.
  • signals ()

    Returns signal metadata for DBusObjectSkeleton.

    • @r A list.