2.9 <GDBusObject>

Interface: <GDBusObject>

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.

Procedures

Method: dbus-object:get-interface self interface-name ⇒ %return
Method: get-interface self interface-name ⇒ %return

Gets the D-Bus interface with name interface-name associated with self, if any.

self

Passed: a <GDBusObject>.

A <GDBusObject>.

interface-name

Passed: a string.

A D-Bus interface name.

%return

Returned: a <GDBusInterface>, or #f.

#f if not found, otherwise a <GDBusInterface> that must be freed with object:unref.

Method: dbus-object:get-interfaces self ⇒ %return
Method: get-interfaces self ⇒ %return

Gets the D-Bus interfaces associated with self.

self

Passed: a <GDBusObject>.

A <GDBusObject>.

%return

Returned: a list, each a <GDBusInterface>.

A list of <GDBusInterface> instances. The returned list must be freed by g_list_free() after each element has been freed with object:unref.

Method: dbus-object:get-object-path self ⇒ %return
Method: get-object-path self ⇒ %return

Gets the object path for self.

self

Passed: a <GDBusObject>.

A <GDBusObject>.

%return

Returned: a string.

A string owned by self. Do not free.

Signals

Signal: dbus-object:interface-added

Connect a handler with (connect object dbus-object:interface-added handler). It is called as (handler self interface).

Emitted when interface is added to object.

self

Passed: a <GDBusObject>.

interface

Passed: a <GDBusInterface>.

The <GDBusInterface> that was added.

Signal: dbus-object:interface-removed

Connect a handler with (connect object dbus-object:interface-removed handler). It is called as (handler self interface).

Emitted when interface is removed from object.

self

Passed: a <GDBusObject>.

interface

Passed: a <GDBusInterface>.

The <GDBusInterface> that was removed.

Virtual methods

Virtual method: dbus-object:do-get-interface implementor self interface-name ⇒ %return

Gets the D-Bus interface with name interface-name associated with self, if any.

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

implementor

Passed: the class whose implementation to call: a class that implements <GDBusObject>, or its GType number.

self

Passed: a <GDBusObject>.

A <GDBusObject>.

interface-name

Passed: a string.

A D-Bus interface name.

%return

Returned: a <GDBusInterface>, or #f.

#f if not found, otherwise a <GDBusInterface> that must be freed with object:unref.

Virtual method: dbus-object:do-get-interfaces implementor self ⇒ %return

Gets the D-Bus interfaces associated with self.

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

implementor

Passed: the class whose implementation to call: a class that implements <GDBusObject>, or its GType number.

self

Passed: a <GDBusObject>.

A <GDBusObject>.

%return

Returned: a list, each a <GDBusInterface>.

A list of <GDBusInterface> instances. The returned list must be freed by g_list_free() after each element has been freed with object:unref.

Virtual method: dbus-object:do-get-object-path implementor self ⇒ %return

Gets the object path for self.

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

implementor

Passed: the class whose implementation to call: a class that implements <GDBusObject>, or its GType number.

self

Passed: a <GDBusObject>.

A <GDBusObject>.

%return

Returned: a string.

A string owned by self. Do not free.

Virtual method: dbus-object:do-interface-added implementor self interface-

Signal handler for the dbus-object:interface-added signal.

To override it in a new class, give register-type #:vfuncs `((interface-added . ,procedure)). The procedure is called as (procedure self interface-).

implementor

Passed: the class whose implementation to call: a class that implements <GDBusObject>, or its GType number.

self

Passed: a <GDBusObject>.

interface-

Passed: a <GDBusInterface>.

Virtual method: dbus-object:do-interface-removed implementor self interface-

Signal handler for the dbus-object:interface-removed signal.

To override it in a new class, give register-type #:vfuncs `((interface-removed . ,procedure)). The procedure is called as (procedure self interface-).

implementor

Passed: the class whose implementation to call: a class that implements <GDBusObject>, or its GType number.

self

Passed: a <GDBusObject>.

interface-

Passed: a <GDBusInterface>.