|
|
|
|
|
|
| Synopsis |
|
|
|
| Documentation |
|
| module DBus.Bus |
|
| module DBus.Types |
|
| module DBus.Message |
|
| Clients
|
|
|
| Clients are opaque handles to an open connection and other internal
state.
|
|
|
|
Instances | |
|
|
|
|
|
Create a new Client from an open connection and bus name. The weird
signature allows newClient to use the computations in DBus.Bus
directly, without unpacking:
client <- newClient =<< getSessionBus
Only one client should be created for any given connection. Otherwise,
they will compete to receive messages.
|
|
|
Instances | |
|
|
|
Instances | |
|
|
|
Run a DBus computation with the given client callbacks. Errors
encountered while running will be thrown as exceptions, using the
DBusException type.
Use the MonadError instance for DBus to handle errors inside
the computation.
|
|
|
|
|
| Run message handlers with the received message. If any method reply
callbacks or signal handlers are found, they will be run in the current
thread.
|
|
|
| A wrapper around send.
|
|
|
| A wrapper around send, which does not allow the message serial
to be recorded. This is a useful shortcut when sending messages which
are not expected to receive a reply.
|
|
|
| A wrapper around receive.
|
|
|
Run in a loop forever, processing messages.
This is commonly run in a separate thread, ie
client <- newClient =<< getSessionBus
forkIO $ runDBus client mainLoop
|
|
|
| Perform an asynchronous method call. One of the provided computations
will be performed depending on what message type the destination sends
back.
|
|
|
| Sends a method call, and then blocks until a reply is received. Use
this when the receive/process loop is running in a separate thread.
|
|
|
| A variant of callBlocking, which throws an exception if the
remote client returns Error.
|
|
| Handling signals
|
|
|
| Perform some computation every time this client receives a matching
signal.
|
|
| Name reservation
|
|
|
| Constructors | | AllowReplacement | | | ReplaceExisting | | | DoNotQueue | |
| Instances | |
|
|
|
| Constructors | | PrimaryOwner | | | InQueue | | | Exists | | | AlreadyOwner | |
| Instances | |
|
|
|
| Constructors | | Released | | | NonExistent | | | NotOwner | |
| Instances | |
|
|
|
|
|
|
|
|
|
|
| Exporting local objects
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Export a set of interfaces on the bus. Whenever a method call is
received which matches the object's path, interface, and member name,
one of its members will be called.
Exported objects automatically implement the
org.freedesktop.DBus.Introspectable interface.
|
|
|
|
|
|
|
|
|
| Responding to method calls
|
|
|
|
|
|
| Send a successful return reply for a method call.
|
|
|
|
|
| Constructors | | Instances | |
|
|
|
| As call, except that the proxy's information is used to
build the message.
|
|
|
| As callBlocking, except that the proxy's information is used
to build the message.
|
|
|
| As callBlocking_, except that the proxy's information is used
to build the message.
|
|
|
| As onSIgnal, except that the proxy's information is used
to build the match rule.
|
|
| Produced by Haddock version 2.6.1 |