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

Safe HaskellNone
LanguageHaskell2010

DBus.Property

Synopsis

Documentation

mkProperty :: Representable a => ObjectPath -> Text -> Text -> Maybe (MethodHandlerT IO a) -> Maybe (a -> MethodHandlerT IO Bool) -> PropertyEmitsChangedSignal -> Property (RepType a) Source #

Create a property from a getter and a setter. It will emit a PropertyChanged signal when the setter is called. To change this behaviour modify the propertyEmitsChangedSignal field

mkTVarProperty :: Representable a => ObjectPath -> Text -> Text -> PropertyAccess -> PropertyEmitsChangedSignal -> TVar a -> Property (RepType a) Source #

Make a property out of a TVar. The property is considered changed on every outside set, no matter if the updated value is actually different from the old one

propertiesInterfaceName :: IsString t => t Source #

Interface for D-BUs properties

propertyChangedSignal :: Representable a => Property (RepType a) -> a -> Maybe SomeSignal Source #

Create a propertyChangedSignal for a property