| Safe Haskell | Safe-Infered |
|---|
DBus.Client
- data Client
- connect :: Address -> IO Client
- attach :: Connection -> IO Client
- disconnect :: Client -> IO ()
- call :: Client -> MethodCall -> IO (Either Error MethodReturn)
- call_ :: Client -> MethodCall -> IO MethodReturn
- emit :: Client -> Signal -> IO ()
- data MatchRule = MatchRule {}
- listen :: Client -> MatchRule -> (BusName -> Signal -> IO ()) -> IO ()
- data Method
- data Reply
- = ReplyReturn [Variant]
- | ReplyError ErrorName [Variant]
- throwError :: ErrorName -> Text -> [Variant] -> IO a
- method :: InterfaceName -> MemberName -> Signature -> Signature -> ([Variant] -> IO Reply) -> Method
- export :: Client -> ObjectPath -> [Method] -> IO ()
- setMessageProcessor :: Client -> (ReceivedMessage -> IO Bool) -> IO ()
Clients
attach :: Connection -> IO ClientSource
call :: Client -> MethodCall -> IO (Either Error MethodReturn)Source
call_ :: Client -> MethodCall -> IO MethodReturnSource
Listening for signals
Constructors
| MatchRule | |
Fields | |
Exporting objects
Constructors
| ReplyReturn [Variant] | |
| ReplyError ErrorName [Variant] |
throwError :: ErrorName -> Text -> [Variant] -> IO aSource
Normally, any exceptions raised while executing a method will be
given the generic "org.freedesktop.DBus.Error.Failed" name.
throwError allows the programmer to specify an error name, and provide
additional information to the remote application. You may use this instead
of throwIO to abort a method call.
method :: InterfaceName -> MemberName -> Signature -> Signature -> ([Variant] -> IO Reply) -> MethodSource
Other
setMessageProcessor :: Client -> (ReceivedMessage -> IO Bool) -> IO ()Source