Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data MatchRule = MatchRule {
- mrType :: Maybe MessageType
- mrSender :: Maybe Text
- mrInterface :: Maybe Text
- mrMember :: Maybe Text
- mrPath :: Maybe (Bool, ObjectPath)
- mrDestination :: Maybe Text
- mrArgs :: [(Int, Text)]
- mrArgPaths :: [(Int, Text)]
- mrArg0namespace :: Maybe Text
- mrEavesdrop :: Maybe Bool
- matchAll :: MatchRule
- renderRule :: MatchRule -> Text
- matchSignal :: Signal a -> MatchRule -> Bool
- addMatch :: (MonadIO m, MonadThrow m) => MatchRule -> DBusConnection -> m ()
- removeMatch :: (MonadIO m, MonadThrow m) => MatchRule -> DBusConnection -> m ()
- matchSignalToMatchRule :: MatchSignal -> MatchRule
- addSignalHandler :: MatchSignal -> MatchRule -> (SomeSignal -> IO ()) -> DBusConnection -> IO ()
- castSignalBody :: SingI a => SomeSignal -> Maybe (DBusValue a)
- handleSignal :: Representable a => SignalDescription (FlattenRepType (RepType a)) -> Maybe Text -> MatchRule -> (a -> IO ()) -> DBusConnection -> IO ()
- signalChan :: MatchSignal -> DBusConnection -> IO (TChan SomeSignal)
- signalChan' :: Representable a => SignalDescription (FlattenRepType (RepType a)) -> Maybe Text -> MatchRule -> DBusConnection -> IO (TChan a)
- createSignal :: Representable a1 => SignalDescription a -> a1 -> Signal (FlattenRepType (RepType a1))
- signal :: (Representable a, Monad m) => SignalDescription (FlattenRepType (RepType a)) -> a -> MethodHandlerT m ()
- signal' :: Monad m => SomeSignal -> MethodHandlerT m ()
- emitSignal' :: SomeSignal -> DBusConnection -> IO ()
- emitSignal :: Representable a => SignalDescription (FlattenRepType (RepType a)) -> a -> DBusConnection -> IO ()
- execSignalT :: MethodHandlerT IO a -> DBusConnection -> IO (Either MsgError a)
Documentation
MatchRule | |
|
renderRule :: MatchRule -> Text Source
matchSignal :: Signal a -> MatchRule -> Bool Source
Match a Signal against a rule. The argN, argNPath and arg0namespace parameter are ignored at the moment
addMatch :: (MonadIO m, MonadThrow m) => MatchRule -> DBusConnection -> m () Source
Add a match rule
removeMatch :: (MonadIO m, MonadThrow m) => MatchRule -> DBusConnection -> m () Source
Remove a match rule
addSignalHandler :: MatchSignal -> MatchRule -> (SomeSignal -> IO ()) -> DBusConnection -> IO () Source
Add a match rule for the given signal specification and call function on all incoming matching signals
castSignalBody :: SingI a => SomeSignal -> Maybe (DBusValue a) Source
handleSignal :: Representable a => SignalDescription (FlattenRepType (RepType a)) -> Maybe Text -> MatchRule -> (a -> IO ()) -> DBusConnection -> IO () Source
Add a match rule (computed from the SignalDescription) and install a handler that tries to convert the Signal's body and passes it to the callback
signalChan :: MatchSignal -> DBusConnection -> IO (TChan SomeSignal) Source
Add a match rule for the given signal specification and put all incoming signals into the TChan
signalChan' :: Representable a => SignalDescription (FlattenRepType (RepType a)) -> Maybe Text -> MatchRule -> DBusConnection -> IO (TChan a) Source
createSignal :: Representable a1 => SignalDescription a -> a1 -> Signal (FlattenRepType (RepType a1)) Source
signal :: (Representable a, Monad m) => SignalDescription (FlattenRepType (RepType a)) -> a -> MethodHandlerT m () Source
signal' :: Monad m => SomeSignal -> MethodHandlerT m () Source
emitSignal' :: SomeSignal -> DBusConnection -> IO () Source
emitSignal :: Representable a => SignalDescription (FlattenRepType (RepType a)) -> a -> DBusConnection -> IO () Source
execSignalT :: MethodHandlerT IO a -> DBusConnection -> IO (Either MsgError a) Source