Module: Gio::DBusObject

Defined in:
(unknown)

Overview

The GDBus::Object type is the base type for D-Bus objects on both the service side (see GDBus::ObjectSkeleton) and the client side (see GDBus::ObjectProxy). It is essentially just a container of interfaces.

Instance Method Summary collapse

Instance Method Details

#get_interface(object, interface_name) ⇒ Gio::DBusInterface

Returns nil if not found, otherwise a GDBus::Interface that must be freed with g_object_unref().

Parameters:

  • object (Gio::DBusObject)

    A GDBus::Object.

  • interface_name (String)

    A D-Bus interface name.

Returns:

  • (Gio::DBusInterface)

    nil if not found, otherwise a GDBus::Interface that must be freed with g_object_unref().

#get_interfaces(object) ⇒ GLib::List

Returns A list of GDBus::Interface instances. The returned list must be freed by g_list_free() after each element has been freed with g_object_unref().

Parameters:

Returns:

  • (GLib::List)

    A list of GDBus::Interface instances. The returned list must be freed by g_list_free() after each element has been freed with g_object_unref().

#get_object_path(object) ⇒ String

Returns A string owned by object. Do not free.

Parameters:

Returns:

  • (String)

    A string owned by object. Do not free.

#interface_added(object, interface_) ⇒ nil

Parameters:

Returns:

  • (nil)

#interface_removed(object, interface_) ⇒ nil

Parameters:

Returns:

  • (nil)

#interfacesGLib::List

Gets the D-Bus interfaces associated with object.

Returns:

  • (GLib::List)

    A list of GDBus::Interface instances. The returned list must be freed by g_list_free() after each element has been freed with g_object_unref().

#object_pathString

Gets the object path for object.

Returns:

  • (String)

    A string owned by object. Do not free.