Trait gio::prelude::DBusObjectExt[][src]

pub trait DBusObjectExt: 'static {
    fn interface(&self, interface_name: &str) -> Option<DBusInterface>;
fn interfaces(&self) -> Vec<DBusInterface>;
fn object_path(&self) -> GString;
fn connect_interface_added<F: Fn(&Self, &DBusInterface) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_interface_removed<F: Fn(&Self, &DBusInterface) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }
Expand description

Trait containing all DBusObject methods.

Implementors

DBusObject

Required methods

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

interface_name

A D-Bus interface name.

Returns

None if not found, otherwise a DBusInterface that must be freed with g_object_unref().

Gets the D-Bus interfaces associated with self.

Returns

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

Gets the object path for self.

Returns

A string owned by self. Do not free.

Emitted when interface is added to object.

interface

The DBusInterface that was added.

Emitted when interface is removed from object.

interface

The DBusInterface that was removed.

Implementors