[][src]Trait gio::DBusObjectExt

pub trait DBusObjectExt: 'static {
    fn get_interface(&self, interface_name: &str) -> Option<DBusInterface>;
fn get_interfaces(&self) -> Vec<DBusInterface>;
fn get_object_path(&self) -> Option<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; }

Trait containing all DBusObject methods.

Implementors

DBusObject

Required methods

fn get_interface(&self, interface_name: &str) -> Option<DBusInterface>

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 gobject::ObjectExt::unref.

fn get_interfaces(&self) -> Vec<DBusInterface>

Gets the D-Bus interfaces associated with self.

Returns

A list of DBusInterface instances. The returned list must be freed by glib::List::free after each element has been freed with gobject::ObjectExt::unref.

fn get_object_path(&self) -> Option<GString>

Gets the object path for self.

Returns

A string owned by self. Do not free.

fn connect_interface_added<F: Fn(&Self, &DBusInterface) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Emitted when interface is added to object.

interface

The DBusInterface that was added.

fn connect_interface_removed<F: Fn(&Self, &DBusInterface) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Emitted when interface is removed from object.

interface

The DBusInterface that was removed.

Loading content...

Implementors

impl<O: IsA<DBusObject>> DBusObjectExt for O[src]

Loading content...