8.1Class DBus

Opens the connection to the DBUS system.

Class DBus
Raise
DBusError in case of failure.
Methods
addMatchAdds an active filter for incoming signals.
dispatchPerform a dispatch loop on message queues.
invokeInvoke a remote DBUS method.
popMessageGets the next message waiting to be unqueued.
removeMatchRemoves an active filter for incoming signals.
signalBroadcast a message directed to all the potential DBUS listeners.
startDispathLaunches the message dispatcher for DBus receivers.
stopDispatchStops the DBus message dispatcher.

Methods

addMatch

Adds an active filter for incoming signals.

DBus.addMatch( [rule] )
rule The filter rule in DBUS rule specification format.
Raise
DBusError in case of failure.

Set rule to nil or leave empty to perform a "full filter" request.

See the dbus_bus_add_match() description in the official DBUS low level documentation.

dispatch

Perform a dispatch loop on message queues.

DBus.dispatch( [timeout] )
timeout An optional timeout to be idle for messages to be sent or receive.
Raise
DBusError in case of failure.

Set timeout to zero (or empty) to just dispatch ready messages, or to -1 to wait forever. Otherwise, waits for seconds and fractions.

invoke

Invoke a remote DBUS method.

DBus.invoke( destination, path, interface, name, ... )
destination Well known name of the service provider where the method is searched.
path Path to the object in the service provider.
interface Interface in which the method is searched.
name Method name.
... Parameters for the method invocation.
Returnan instance of DBusPendingCall class.
Raise
DBusError in case of failure.

Use the returned instance to wait for a reply.

popMessage

Gets the next message waiting to be unqueued.

DBus.popMessage()
Returnnil if no message is currently waiting, DBusMessage if a message was waiting.

If existing the message is extracted from the wait queue and encapsulated in a DBusMessage entity.

removeMatch

Removes an active filter for incoming signals.

DBus.removeMatch( [rule] )
rule The filter rule in DBUS rule specification format.
Raise
DBusError in case of failure.

Set rule to nil or leave empty to remove a previous "full filter" request.

See the dbus_bus_remove_match() description in the official DBUS low level documentation.

signal

Broadcast a message directed to all the potential DBUS listeners.

DBus.signal( path, interface, name, ... )
path the path from the object emitting the signal
interface the interface the signal is emitted from
name name of the signal
... Parameters for the signal.
Raise
DBusError in case of failure.

startDispath

Launches the message dispatcher for DBus receivers.

DBus.startDispath()

stopDispatch

Stops the DBus message dispatcher.

DBus.stopDispatch()
Made with http://www.falconpl.org