Safe Haskell | None |
---|---|
Language | Haskell2010 |
- property :: SingI t => Property t -> Objects
- mkProperty :: Representable a => ObjectPath -> Text -> Text -> Maybe (MethodHandlerT IO a) -> Maybe (a -> MethodHandlerT IO Bool) -> PropertyEmitsChangedSignal -> Property (RepType a)
- mkTVarProperty :: Representable a => ObjectPath -> Text -> Text -> PropertyAccess -> PropertyEmitsChangedSignal -> TVar a -> Property (RepType a)
- manageStmProperty :: (Representable t, Eq t) => Property (RepType t) -> STM t -> DBusConnection -> IO ()
- propertiesInterfaceName :: Text
- propertyChangedSignal :: Representable a => Property (RepType a) -> a -> Maybe SomeSignal
- propertyChanged :: (MonadIO m, Representable a) => Property (RepType a) -> a -> MethodHandlerT m ()
- emitPropertyChanged :: Representable a => Property (RepType a) -> a -> DBusConnection -> IO ()
- getProperty :: Representable a => RemoteProperty (RepType a) -> DBusConnection -> IO (Either MethodError a)
- setProperty :: Representable a => RemoteProperty (RepType a) -> a -> DBusConnection -> IO (Either MethodError ())
- handlePropertyChanged :: Representable a => RemoteProperty (RepType a) -> (Maybe a -> IO ()) -> DBusConnection -> IO ()
- propertyToTVar :: Representable a => RemoteProperty (RepType a) -> DBusConnection -> IO (TVar a)
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
manageStmProperty :: (Representable t, Eq t) => Property (RepType t) -> STM t -> DBusConnection -> IO () Source #
propertiesInterfaceName :: Text Source #
Interface for D-BUs properties
propertyChangedSignal :: Representable a => Property (RepType a) -> a -> Maybe SomeSignal Source #
Create a propertyChangedSignal for a property
propertyChanged :: (MonadIO m, Representable a) => Property (RepType a) -> a -> MethodHandlerT m () Source #
emitPropertyChanged :: Representable a => Property (RepType a) -> a -> DBusConnection -> IO () Source #
getProperty :: Representable a => RemoteProperty (RepType a) -> DBusConnection -> IO (Either MethodError a) Source #
setProperty :: Representable a => RemoteProperty (RepType a) -> a -> DBusConnection -> IO (Either MethodError ()) Source #
handlePropertyChanged :: Representable a => RemoteProperty (RepType a) -> (Maybe a -> IO ()) -> DBusConnection -> IO () Source #
propertyToTVar :: Representable a => RemoteProperty (RepType a) -> DBusConnection -> IO (TVar a) Source #