Type deai.plugin.dbus:DBusConnection (dbus.session_bus)

DBus session bus

A connection to the DBus session bus.

See dbus.session_bus for more information about this type

Methods

get(destionation, object_path)

Get a DBus object

send(type, bus, object_path, interface, method, signature, args)

Send a message to dbus

get(destionation, object_path) DBusObject
Return type:

DBusObject

Parameters:
  • destionation (string)

  • object_path (string)

Get a DBus object

(Note: getting properties are not implemented yet, but you can call org.freedesktop.DBus.Properties.Get manually)

Create a proxy object for a DBus object. Methods are reflected as members of this object. DBus signals are also converted to signals emitted from this object. Methods must be accessed with their fully qualified names, i.e. “interface.Method”. Proxy objects for methods are returned, see deai.plugin.dbus.DBusMethod.

Calling a dbus method will not give you a reply directly, instead an object is returned. Listen for a “reply” signal on the object to receive the reply.

For how DBus types map to deai type, see dbus for more details.

send(type, bus, object_path, interface, method, signature, args) integer
Return type:

integer

Parameters:

bus (string) – recipent of this message, not used if type is “signal”

Send a message to dbus

Returns a serial number if type is ‘method’.