Safe Haskell | None |
---|---|
Language | Haskell98 |
DBus.Internal.Message
- class Message a where
- messageTypeCode :: a -> Word8
- messageHeaderFields :: a -> [HeaderField]
- messageBody :: a -> [Variant]
- messageFlags :: a -> Word8
- 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
Minimal complete definition
Methods
messageTypeCode :: a -> Word8
messageHeaderFields :: a -> [HeaderField]
messageBody :: a -> [Variant]
messageFlags :: a -> Word8
data MethodCall
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.
Constructors
MethodCall | |
Fields
|
Instances
data MethodReturn
A method return is a reply to a method call, indicating that the call succeeded.
Constructors
MethodReturn | |
Fields
|
Instances
data MethodError
A method error is a reply to a method call, indicating that the call received an error and did not succeed.
Constructors
MethodError | |
Fields
|
Instances
methodErrorMessage :: MethodError -> String
Get a human-readable description of the error, by returning the first item in the error body if it's a string.
data Signal
Signals are broadcast by applications to notify other clients of some event.
Constructors
Signal | |
Fields
|
data ReceivedMessage
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.
Constructors
ReceivedMethodCall Serial MethodCall | |
ReceivedMethodReturn Serial MethodReturn | |
ReceivedMethodError Serial MethodError | |
ReceivedSignal Serial Signal | |
ReceivedUnknown Serial UnknownMessage |
Instances
data HeaderField
Constructors
Instances
setMethodCallFlags :: MethodCall -> Word8 -> MethodCall