DBus.Introspection

dbus-0.10.12: A client library for the D-Bus IPC system.

Safe Haskell | None
Language | Haskell98

DBus.Introspection

Contents

- XML conversion
- Objects
- Interfaces
- Methods
  - Method arguments
- Signals
  - Signal arguments
- Properties

Synopsis

- parseXML :: ObjectPath -> String -> Maybe Object
- formatXML :: Object -> Maybe String
- data Object
- object :: ObjectPath -> Object
- objectPath :: Object -> ObjectPath
- objectInterfaces :: Object -> [Interface]
- objectChildren :: Object -> [Object]
- data Interface
- interface :: InterfaceName -> Interface
- interfaceName :: Interface -> InterfaceName
- interfaceMethods :: Interface -> [Method]
- interfaceSignals :: Interface -> [Signal]
- interfaceProperties :: Interface -> [Property]
- data Method
- method :: MemberName -> Method
- methodName :: Method -> MemberName
- methodArgs :: Method -> [MethodArg]
- data MethodArg
- methodArg :: String -> Type -> Direction -> MethodArg
- methodArgName :: MethodArg -> String
- methodArgType :: MethodArg -> Type
- methodArgDirection :: MethodArg -> Direction
- data Direction
- directionIn :: Direction
- directionOut :: Direction
- data Signal
- signal :: MemberName -> Signal
- signalName :: Signal -> MemberName
- signalArgs :: Signal -> [SignalArg]
- data SignalArg
- signalArg :: String -> Type -> SignalArg
- signalArgName :: SignalArg -> String
- signalArgType :: SignalArg -> Type
- data Property
- property :: String -> Type -> Property
- propertyName :: Property -> String
- propertyType :: Property -> Type
- propertyRead :: Property -> Bool
- propertyWrite :: Property -> Bool

# XML conversion

parseXML :: ObjectPath -> String -> Maybe Object

formatXML :: Object -> Maybe String

# Objects

data Object

Instances

Eq Object |
Show Object |

object :: ObjectPath -> Object

objectPath :: Object -> ObjectPath

objectInterfaces :: Object -> [Interface]

objectChildren :: Object -> [Object]

# Interfaces

data Interface

Instances

Eq Interface |
Show Interface |

interface :: InterfaceName -> Interface

interfaceName :: Interface -> InterfaceName

interfaceMethods :: Interface -> [Method]

interfaceSignals :: Interface -> [Signal]

interfaceProperties :: Interface -> [Property]

# Methods

data Method

Instances

Eq Method |
Show Method |

method :: MemberName -> Method

methodName :: Method -> MemberName

methodArgs :: Method -> [MethodArg]

## Method arguments

data MethodArg

Instances

Eq MethodArg |
Show MethodArg |

methodArg :: String -> Type -> Direction -> MethodArg

methodArgName :: MethodArg -> String

methodArgType :: MethodArg -> Type

methodArgDirection :: MethodArg -> Direction

data Direction

Instances

Eq Direction |
Show Direction |

directionIn :: Direction

directionOut :: Direction

# Signals

data Signal

Instances

Eq Signal |
Show Signal |

signal :: MemberName -> Signal

signalName :: Signal -> MemberName

signalArgs :: Signal -> [SignalArg]

## Signal arguments

data SignalArg

Instances

Eq SignalArg |
Show SignalArg |

signalArg :: String -> Type -> SignalArg

signalArgName :: SignalArg -> String

signalArgType :: SignalArg -> Type

# Properties

data Property

Instances

Eq Property |
Show Property |

property :: String -> Type -> Property

propertyName :: Property -> String

propertyType :: Property -> Type

propertyRead :: Property -> Bool

propertyWrite :: Property -> Bool