HDBus: Haskell DBus bindingsContentsIndex
DBus.Message
Contents
Messages
Arguments
Dictionaries
Variants
Synopsis
type Message = ForeignPtr MessageTag
newSignal :: PathName -> InterfaceName -> String -> IO Message
newMethodCall :: ServiceName -> PathName -> InterfaceName -> String -> IO Message
class Show a => Arg a where
toIter :: a -> Iter -> IO ()
fromIter :: Iter -> IO a
signature :: a -> String
toIterInternal :: a -> Iter -> IO ()
fromIterInternal :: Iter -> IO a
args :: Arg a => Message -> IO a
addArgs :: Arg a => Message -> a -> IO ()
type Dict a b = [DictEntry a b]
dict :: (Arg a, Arg b) => [(a, b)] -> Dict a b
data Variant
variant :: Arg a => a -> Variant
Messages
type Message = ForeignPtr MessageTag
newSignal
:: PathNamePath.
-> InterfaceNameInterface.
-> StringMethod name.
-> IO Message
newMethodCall
:: ServiceNameBus name.
-> PathNamePath.
-> InterfaceNameInterface.
-> StringMethod name.
-> IO Message
Arguments
class Show a => Arg a where
Methods
toIter :: a -> Iter -> IO ()
fromIter :: Iter -> IO a
signature :: a -> String
toIterInternal :: a -> Iter -> IO ()
fromIterInternal :: Iter -> IO a
show/hide Instances
Arg Int32
Arg String
Arg Variant
Arg Word32
Arg ()
(Arg a, Arg b) => Arg (a, b)
(Arg a, Arg b, Arg c, Arg d, Arg e, Arg f, Arg g, Arg h) => Arg (a, b, c, d, e, f, g, h)
Arg a => Arg [a]
(Arg a, Arg b) => Arg (DictEntry a b)
args :: Arg a => Message -> IO a
Retrieve the arguments from a message.
addArgs :: Arg a => Message -> a -> IO ()
Add arguments to a message.
Dictionaries
DBus functions that expect a dictionary must be passed a Dict, which is trivially constructable from an appropriate list.
type Dict a b = [DictEntry a b]
dict :: (Arg a, Arg b) => [(a, b)] -> Dict a b
Variants
Some DBus functions allow variants, which are similar to Dynamic dynamics but restricted to DBus data types.
data Variant
show/hide Instances
variant :: Arg a => a -> Variant
Produced by Haddock version 0.7