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

Safe HaskellNone
LanguageHaskell98

DBus.Message

Synopsis

Documentation

data Flag Source

Instances

fromFlags :: (Bits a, Ord a, Num a) => a -> [Flag] Source

callMethod Source

Arguments

:: Text

Entity to send the message to

-> ObjectPath

Object

-> Text

Interface

-> Text

Member (method) name

-> [SomeDBusValue]

Arguments

-> [Flag]

Method call flags

-> DBusConnection

Connection to send the call over

-> IO (STM (Either [SomeDBusValue] SomeDBusValue)) 

Asychronously call a method. Returns an STM action that waits for the returned value.

getAnswer :: IO (STM b) -> IO b Source

Wait for the answer of a method call

callMethod' Source

Arguments

:: (SingI (RepType a), Representable a, MonadThrow m, MonadIO m) 
=> Text

Entity to send the message to

-> ObjectPath

Object

-> Text

Interface

-> Text

Member (method) to call

-> [SomeDBusValue]

Arguments

-> [Flag]

Method call flags

-> DBusConnection

Connection to send the call over

-> m a 

Synchronously call a method. Returned errors are thrown as MethodErrors. If the returned value's type doesn't match the expected type a MethodSignatureMissmatch is thrown.