Interface

GioDBusObject

Description [src]

interface Gio.DBusObject : GObject.Object

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.

Prerequisite

In order to implement DBusObject, your type must inherit from GObject.

Instance methods

g_dbus_object_get_interface

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

Available since: 2.30

g_dbus_object_get_interfaces

Gets the D-Bus interfaces associated with object.

Available since: 2.30

g_dbus_object_get_object_path

Gets the object path for object.

Available since: 2.30

Signals

Gio.DBusObject::interface-added

Emitted when interface is added to object.

Available since: 2.30

Gio.DBusObject::interface-removed

Emitted when interface is removed from object.

Available since: 2.30

Interface structure

struct GioDBusObjectIface {
  GTypeInterface parent_iface;
  const gchar* (* get_object_path) (
    GDBusObject* object
  );
  GList* (* get_interfaces) (
    GDBusObject* object
  );
  GDBusInterface* (* get_interface) (
    GDBusObject* object,
    const gchar* interface_name
  );
  void (* interface_added) (
    GDBusObject* object,
    GDBusInterface* interface_
  );
  void (* interface_removed) (
    GDBusObject* object,
    GDBusInterface* interface_
  );
  
}
Interface members
parent_iface
GTypeInterface
 

The parent interface.

get_object_path
const gchar* (* get_object_path) (
    GDBusObject* object
  )
 No description available.
get_interfaces
GList* (* get_interfaces) (
    GDBusObject* object
  )
 No description available.
get_interface
GDBusInterface* (* get_interface) (
    GDBusObject* object,
    const gchar* interface_name
  )
 No description available.
interface_added
void (* interface_added) (
    GDBusObject* object,
    GDBusInterface* interface_
  )
 No description available.
interface_removed
void (* interface_removed) (
    GDBusObject* object,
    GDBusInterface* interface_
  )
 No description available.

Virtual methods

Gio.DBusObject.get_interface

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

Gio.DBusObject.get_interfaces

Gets the D-Bus interfaces associated with object.

Gio.DBusObject.get_object_path

Gets the object path for object.

Gio.DBusObject.interface_added
No description available.
Gio.DBusObject.interface_removed
No description available.