The Glib.DBus_Objects.Gdbus_Object type is the base type for D-Bus objects on both the service side (see Gdbus.Object_Skeleton.Gdbus_Object_Skeleton) and the client side (see Gdbus.Object_Proxy.Gdbus_Object_Proxy). It is essentially just a container of interfaces.
function "+" (W : Gdbus_Object) return Gdbus_Object
type Cb_Gdbus_Object_Gdbus_Interface_Void is not null access procedure
(Self : Gdbus_Object;
Iface : Glib.DBus_Interfaces.Gdbus_Interface);
type Cb_GObject_Gdbus_Interface_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
Iface : Glib.DBus_Interfaces.Gdbus_Interface);
subtype DBus_Objects_Interface_Descr is Glib.Object.Interface_Description;
type Gdbus_Object is new Glib.Types.GType_Interface;
function Get_Interface
(Self : Gdbus_Object;
Interface_Name : UTF8_String)
return Glib.DBus_Interfaces.Gdbus_Interface
Gets the D-Bus interface with name Interface_Name associated with Object, if any. Since: gtk+ 2.30
A D-Bus interface name.
null if not found, otherwise a Glib.DBus_Interfaces.Gdbus_Interface that must be freed with g_object_unref.
function Get_Object_Path (Self : Gdbus_Object) return UTF8_String
Gets the object path for Object. Since: gtk+ 2.30
A string owned by Object. Do not free.
function Get_Type return Glib.GType
Null_Gdbus_Object : constant Gdbus_Object;
procedure On_Interface_Added
(Self : Gdbus_Object;
Call : Cb_Gdbus_Object_Gdbus_Interface_Void;
After : Boolean := False)
Emitted when Interface is added to Object.
procedure On_Interface_Added
(Self : Gdbus_Object;
Call : Cb_GObject_Gdbus_Interface_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted when Interface is added to Object.
procedure On_Interface_Removed
(Self : Gdbus_Object;
Call : Cb_Gdbus_Object_Gdbus_Interface_Void;
After : Boolean := False)
Emitted when Interface is removed from Object.
procedure On_Interface_Removed
(Self : Gdbus_Object;
Call : Cb_GObject_Gdbus_Interface_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
Emitted when Interface is removed from Object.
procedure Set_Get_Interface
(Self : DBus_Objects_Interface_Descr;
Handler : Virtual_Get_Interface)
procedure Set_Get_Interfaces
(Self : DBus_Objects_Interface_Descr;
Handler : Virtual_Get_Interfaces)
procedure Set_Get_Object_Path
(Self : DBus_Objects_Interface_Descr;
Handler : Virtual_Get_Object_Path)
procedure Set_Interface_Added
(Self : DBus_Objects_Interface_Descr;
Handler : Virtual_Interface_Added)
procedure Set_Interface_Removed
(Self : DBus_Objects_Interface_Descr;
Handler : Virtual_Interface_Removed)
See Glib.Object.Add_Interface
Signal_Interface_Added : constant Glib.Signal_Name := "interface-added";
Emitted when Interface is added to Object.
Signal_Interface_Removed : constant Glib.Signal_Name := "interface-removed";
Emitted when Interface is removed from Object.
type Virtual_Get_Interface is access function
(Self : Gdbus_Object;
Interface_Name : Gtkada.Types.Chars_Ptr)
return Glib.DBus_Interfaces.Gdbus_Interface;
Gets the D-Bus interface with name Interface_Name associated with Object, if any. Since: gtk+ 2.30
A D-Bus interface name.
null if not found, otherwise a Glib.DBus_Interfaces.Gdbus_Interface that must be freed with g_object_unref.
type Virtual_Get_Interfaces is access function (Self : Gdbus_Object) return System.Address;
Gets the D-Bus interfaces associated with Object. Since: gtk+ 2.30
A list of Glib.DBus_Interfaces.Gdbus_Interface instances. The returned list must be freed by g_list_free after each element has been freed with g_object_unref.
type Virtual_Get_Object_Path is access function (Self : Gdbus_Object) return Gtkada.Types.Chars_Ptr;
Gets the object path for Object. Since: gtk+ 2.30
A string owned by Object. Do not free.
type Virtual_Interface_Added is access procedure
(Self : Gdbus_Object;
Iface : Glib.DBus_Interfaces.Gdbus_Interface);
Signal handler for the Glib.DBus_Objects.Gdbus_Object::interface-added signal.
type Virtual_Interface_Removed is access procedure
(Self : Gdbus_Object;
Iface : Glib.DBus_Interfaces.Gdbus_Interface);
Signal handler for the Glib.DBus_Objects.Gdbus_Object::interface-removed signal.