1.23 <GDBusObjectSkeleton>

Class: <GDBusObjectSkeleton>

It derives from <GObject>.

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>.

Properties

Property: dbus-object-skeleton:g-object-path self

The object path where the object is exported.

Its value is a string, or #f.

Set it with (set! (dbus-object-skeleton:g-object-path self) value).

Procedures

Method: dbus-object-skeleton:add-interface self interface-
Method: add-interface self interface-

Adds interface- to self.

If self already contains a <GDBusInterfaceSkeleton> with the same interface name, it is removed before interface- is added.

Note that self takes its own reference on interface- and holds it until removed.

self

Passed: a <GDBusObjectSkeleton>.

A <GDBusObjectSkeleton>.

interface-

Passed: a <GDBusInterfaceSkeleton>.

A <GDBusInterfaceSkeleton>.

Method: dbus-object-skeleton:flush self
Method: flush self

This method simply calls dbus-interface-skeleton:flush on all interfaces belonging to self. See that method for when flushing is useful.

self

Passed: a <GDBusObjectSkeleton>.

A <GDBusObjectSkeleton>.

Procedure: dbus-object-skeleton:new object-path ⇒ %return

Creates a new <GDBusObjectSkeleton>.

object-path

Passed: a string.

An object path.

%return

Returned: a <GDBusObjectSkeleton>.

A <GDBusObjectSkeleton>. Free with object:unref.

Method: dbus-object-skeleton:remove-interface self interface-
Method: remove-interface self interface-

Removes interface- from self.

self

Passed: a <GDBusObjectSkeleton>.

A <GDBusObjectSkeleton>.

interface-

Passed: a <GDBusInterfaceSkeleton>.

A <GDBusInterfaceSkeleton>.

Method: dbus-object-skeleton:remove-interface-by-name self interface-name
Method: remove-interface-by-name self interface-name

Removes the <GDBusInterface> with interface-name from self.

If no D-Bus interface of the given interface exists, this function does nothing.

self

Passed: a <GDBusObjectSkeleton>.

A <GDBusObjectSkeleton>.

interface-name

Passed: a string.

A D-Bus interface name.

Method: dbus-object-skeleton:set-object-path self object-path
Method: set-object-path self object-path

Sets the object path for self.

self

Passed: a <GDBusObjectSkeleton>.

A <GDBusObjectSkeleton>.

object-path

Passed: a string.

A valid D-Bus object path.

Signals

Signal: dbus-object-skeleton:authorize-method

Connect a handler with (connect object dbus-object-skeleton:authorize-method handler). It is called as (handler self interface invocation) ⇒ %return.

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 dbus-interface-skeleton:g-authorize-method signal, except that it is for the enclosing object.

The default class handler just returns #t.

self

Passed: a <GDBusObjectSkeleton>.

interface

Passed: a <GDBusInterfaceSkeleton>.

The <GDBusInterfaceSkeleton> that invocation is for.

invocation

Passed: a <GDBusMethodInvocation>.

A <GDBusMethodInvocation>.

%return

Returned: a boolean.

#t if the call is authorized, #f otherwise.

Virtual methods

Virtual method: dbus-object-skeleton:do-authorize-method implementor self interface- invocation ⇒ %return

Signal class handler for the dbus-object-skeleton:authorize-method signal.

To override it in a new class, give register-type #:vfuncs `((authorize-method . ,procedure)). The procedure is called as (procedure self interface- invocation) ⇒ %return.

implementor

Passed: the class whose implementation to call: <GDBusObjectSkeleton>, or a class that derives from it, or its GType number.

self

Passed: a <GDBusObjectSkeleton>.

interface-

Passed: a <GDBusInterfaceSkeleton>.

invocation

Passed: a <GDBusMethodInvocation>.

%return

Returned: a boolean.