Safe Haskell | None |
---|---|
Language | Haskell98 |
- class Message a where
- data UnknownMessage = UnknownMessage {}
- data MethodCall = MethodCall {}
- data MethodReturn = MethodReturn {}
- data MethodError = MethodError {}
- methodErrorMessage :: MethodError -> String
- data Signal = Signal {}
- data ReceivedMessage
- data HeaderField
- setMethodCallFlags :: MethodCall -> Word8 -> MethodCall
Documentation
class Message a where Source #
messageTypeCode :: a -> Word8 Source #
messageHeaderFields :: a -> [HeaderField] Source #
messageBody :: a -> [Variant] Source #
messageFlags :: a -> Word8 Source #
data MethodCall Source #
A method call is a request to run some procedure exported by the remote process. Procedures are identified by an (object_path, interface_name, method_name) tuple.
MethodCall | |
|
data MethodReturn Source #
A method return is a reply to a method call, indicating that the call succeeded.
MethodReturn | |
|
data MethodError Source #
A method error is a reply to a method call, indicating that the call received an error and did not succeed.
MethodError | |
|
methodErrorMessage :: MethodError -> String Source #
Get a human-readable description of the error, by returning the first item in the error body if it's a string.
Signals are broadcast by applications to notify other clients of some event.
Signal | |
|
data ReceivedMessage Source #
Not an actual message type, but a wrapper around messages received from
the bus. Each value contains the message's Serial
.
If casing against these constructors, always include a default case to handle messages of an unknown type. New message types may be added to the D-Bus specification, and applications should handle them gracefully by either ignoring or logging them.
data HeaderField Source #
setMethodCallFlags :: MethodCall -> Word8 -> MethodCall Source #