- 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
- 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
disconnect :: Client -> IO ()Source
Stop a Client
#8217;s callback thread and close its underlying socket.
call :: Client -> MethodCall -> IO (Either Error MethodReturn)Source
call_ :: Client -> MethodCall -> IO MethodReturnSource
Listening for signals
Exporting objects
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