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

Safe HaskellNone

DBus.Message

Synopsis

Documentation

data Flag Source

Instances

newtype Flags Source

Constructors

Flags [Flag] 

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

callMethodSource

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 bSource

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.