d-bus-0.1.3.3: Permissively licensed D-Bus client library

Safe HaskellNone
LanguageHaskell2010

DBus.Signal

Synopsis

Documentation

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

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