Module: Gio::DBusObjectManager

Defined in:
(unknown)

Overview

The GDBus::ObjectManager type is the base type for service- and client-side implementations of the standardized [org.freedesktop.DBus.ObjectManager](dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager) interface.

See GDBus::ObjectManagerClient for the client-side implementation and GDBus::ObjectManagerServer for the service-side implementation.

Instance Method Summary collapse

Instance Method Details

#get_interface(manager, object_path, interface_name) ⇒ Gio::DBusInterface

Returns A GDBus::Interface instance or nil. Free with g_object_unref().

Parameters:

  • manager (Gio::DBusObjectManager)

    A GDBus::ObjectManager.

  • object_path (String)

    Object path to look up.

  • interface_name (String)

    D-Bus interface name to look up.

Returns:

  • (Gio::DBusInterface)

    A GDBus::Interface instance or nil. Free with g_object_unref().

#get_object(manager, object_path) ⇒ Gio::DBusObject

Returns A GDBus::Object or nil. Free with g_object_unref().

Parameters:

  • manager (Gio::DBusObjectManager)

    A GDBus::ObjectManager.

  • object_path (String)

    Object path to look up.

Returns:

  • (Gio::DBusObject)

    A GDBus::Object or nil. Free with g_object_unref().

#get_object_path(manager) ⇒ String

Returns A string owned by manager. Do not free.

Parameters:

Returns:

  • (String)

    A string owned by manager. Do not free.

#get_objects(manager) ⇒ GLib::List

Returns A list of GDBus::Object objects. The returned list should be freed with g_list_free() after each element has been freed with g_object_unref().

Parameters:

Returns:

  • (GLib::List)

    A list of GDBus::Object objects. The returned list should be freed with g_list_free() after each element has been freed with g_object_unref().

#interface_added(manager, object, interface_) ⇒ nil

Parameters:

Returns:

  • (nil)

#interface_removed(manager, object, interface_) ⇒ nil

Parameters:

Returns:

  • (nil)

#object_added(manager, object) ⇒ nil

Parameters:

Returns:

  • (nil)

#object_pathString

Gets the object path that manager is for.

Returns:

  • (String)

    A string owned by manager. Do not free.

#object_removed(manager, object) ⇒ nil

Parameters:

Returns:

  • (nil)

#objectsGLib::List

Gets all GDBus::Object objects known to manager.

Returns:

  • (GLib::List)

    A list of GDBus::Object objects. The returned list should be freed with g_list_free() after each element has been freed with g_object_unref().