Methods
GetProperties | (au: Properties) | → | a(uv): Values | |
ListProperties | () | → | a(ussu): Available_Properties | |
SetProperties | (a(uv): Properties) | → | nothing |
Signals
PropertiesChanged | (a(uv): Properties) | |
PropertyFlagsChanged | (a(uu): Properties) |
Types
Property_ID | Simple Type | u | |
Property_Flags | Flags | u | |
Property_Spec | Struct | (ussu) | |
Property_Flags_Change | Struct | (uu) | |
Property_Value | Struct | (uv) |
Description
Interface for channels and other objects, to allow querying and setting properties. ListProperties returns which properties are valid for the given channel, including their type, and an integer handle used to refer to them in GetProperties, SetProperties, and the PropertiesChanged signal. The values are represented by D-Bus variant types, and are accompanied by flags indicating whether or not the property is readable or writable.
Each property also has a flags value to indicate what methods are available. This is a bitwise OR of PropertyFlags values.
Methods
GetProperties (au: Properties) → a(uv): Values
Parameters
- Properties — au (Property_ID_List)
Returns
- Values — a(uv) (Property_Value_List)
- integer identifiers
- variant boxed values
An array of structs containing:
Possible Errors
- Disconnected
- Invalid Argument
- Permission Denied
Rationale:
ListProperties () → a(ussu): Available_Properties
Returns
- Available_Properties — a(ussu) (Property_Spec_List)
- an integer identifier
- a string property name
- a string representing the D-Bus signature of this property
- a bitwise OR of the flags applicable to this property
SetProperties (a(uv): Properties) → nothing
Parameters
- Properties — a(uv) (Property_Value_List)
Takes an array of (identifier, value) pairs containing desired values to set the given properties. In the case of any errors, no properties will be changed. When the changes have been acknowledged by the server, the PropertiesChanged signal will be emitted.
All properties given must have the PROPERTY_FLAG_WRITE flag, or PermissionDenied will be returned. If any variants are of the wrong type, NotAvailable will be returned. If any given property identifiers are invalid, InvalidArgument will be returned.
Possible Errors
- Disconnected
- Invalid Argument
- Not Available
- Permission Denied
- Network Error
Rationale:
Signals
PropertiesChanged (a(uv): Properties)
Parameters
- Properties — a(uv) (Property_Value_List)
- integer identifiers
- variant boxed values
An array of structs containing:
The array should contain only properties whose values have actually changed.
PropertyFlagsChanged (a(uu): Properties)
Parameters
- Properties — a(uu) (Property_Flags_Change_List)
- integer identifiers
- a bitwise OR of the current flags
An array of structs containing:
The array should contain only properties whose flags have actually changed.
Types
Property_Flags — u
- Read (1)
- Write (2)
Property_Spec — (ussu)
- Property_ID — u
- Name — s
- Signature — s (DBus_Signature)
- Flags — u (Property_Flags)
Property_Flags_Change — (uu)
- Property_ID — u
- New_Flags — u
Property_Value — (uv)
- Identifier — u (Property_ID)
- Value — v