Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- 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 Source #
messageTypeCode :: a -> Word8 Source #
messageHeaderFields :: a -> [HeaderField] Source #
messageBody :: a -> [Variant] Source #
messageFlags :: a -> Word8 Source #
Instances
data UnknownMessage Source #
Instances
Show UnknownMessage Source # | |
Defined in DBus.Internal.Message showsPrec :: Int -> UnknownMessage -> ShowS # show :: UnknownMessage -> String # showList :: [UnknownMessage] -> ShowS # | |
Eq UnknownMessage Source # | |
Defined in DBus.Internal.Message (==) :: UnknownMessage -> UnknownMessage -> Bool # (/=) :: UnknownMessage -> UnknownMessage -> Bool # |
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 | |
|
Instances
Show MethodCall Source # | |
Defined in DBus.Internal.Message showsPrec :: Int -> MethodCall -> ShowS # show :: MethodCall -> String # showList :: [MethodCall] -> ShowS # | |
Message MethodCall Source # | |
Defined in DBus.Internal.Message messageTypeCode :: MethodCall -> Word8 Source # messageHeaderFields :: MethodCall -> [HeaderField] Source # messageBody :: MethodCall -> [Variant] Source # messageFlags :: MethodCall -> Word8 Source # | |
Eq MethodCall Source # | |
Defined in DBus.Internal.Message (==) :: MethodCall -> MethodCall -> Bool # (/=) :: MethodCall -> MethodCall -> Bool # |
data MethodReturn Source #
A method return is a reply to a method call, indicating that the call succeeded.
MethodReturn | |
|
Instances
Show MethodReturn Source # | |
Defined in DBus.Internal.Message showsPrec :: Int -> MethodReturn -> ShowS # show :: MethodReturn -> String # showList :: [MethodReturn] -> ShowS # | |
Message MethodReturn Source # | |
Defined in DBus.Internal.Message messageTypeCode :: MethodReturn -> Word8 Source # messageHeaderFields :: MethodReturn -> [HeaderField] Source # messageBody :: MethodReturn -> [Variant] Source # messageFlags :: MethodReturn -> Word8 Source # | |
Eq MethodReturn Source # | |
Defined in DBus.Internal.Message (==) :: MethodReturn -> MethodReturn -> Bool # (/=) :: MethodReturn -> MethodReturn -> Bool # |
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 | |
|
Instances
Show MethodError Source # | |
Defined in DBus.Internal.Message showsPrec :: Int -> MethodError -> ShowS # show :: MethodError -> String # showList :: [MethodError] -> ShowS # | |
Message MethodError Source # | |
Defined in DBus.Internal.Message messageTypeCode :: MethodError -> Word8 Source # messageHeaderFields :: MethodError -> [HeaderField] Source # messageBody :: MethodError -> [Variant] Source # messageFlags :: MethodError -> Word8 Source # | |
Eq MethodError Source # | |
Defined in DBus.Internal.Message (==) :: MethodError -> MethodError -> Bool # (/=) :: MethodError -> MethodError -> Bool # |
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.
ReceivedMethodCall Serial MethodCall | |
ReceivedMethodReturn Serial MethodReturn | |
ReceivedMethodError Serial MethodError | |
ReceivedSignal Serial Signal | |
ReceivedUnknown Serial UnknownMessage |
Instances
Show ReceivedMessage Source # | |
Defined in DBus.Internal.Message showsPrec :: Int -> ReceivedMessage -> ShowS # show :: ReceivedMessage -> String # showList :: [ReceivedMessage] -> ShowS # | |
Eq ReceivedMessage Source # | |
Defined in DBus.Internal.Message (==) :: ReceivedMessage -> ReceivedMessage -> Bool # (/=) :: ReceivedMessage -> ReceivedMessage -> Bool # |
data HeaderField Source #
Instances
Show HeaderField Source # | |
Defined in DBus.Internal.Message showsPrec :: Int -> HeaderField -> ShowS # show :: HeaderField -> String # showList :: [HeaderField] -> ShowS # | |
Eq HeaderField Source # | |
Defined in DBus.Internal.Message (==) :: HeaderField -> HeaderField -> Bool # (/=) :: HeaderField -> HeaderField -> Bool # |
setMethodCallFlags :: MethodCall -> Word8 -> MethodCall Source #