automotive-message-broker  0.13
 All Classes Files Functions Variables Pages
bluemonkey.idl
Go to the documentation of this file.
1 
44 partial interface Navigator {
45  readonly attribute Bluemonkey bluemonkey;
46 };
47 
57 interface Bluemonkey {
62  PropertyInterface subscribeTo(DOMString propertyName, optional unsigned short zone, optional DOMString source);
63 
67  DOMString[] sourcesForProperty(DOMString propertyName);
68 
72  unsigned short[] zonesForProperty(DOMString propertyName);
73 
77  DOMString[] supportedProperties();
78 
82  void loadConfig(DOMString configFile);
83 
87  void loadModule(DOMString moduleFile);
88 
92  void log(DOMString text);
93 
97  QTimer createTimer();
98 
102  QObject createQObject();
103 
107  void getHistory(DOMString[] properties, Date begin, Date end, HistoryCallback callback);
108 
112  void createCustomProperty(DOMString name, any value, optional unsigned short zone);
113 
114 };
118 interface PropertyInterface {
122  readonly attribute DOMString type;
123 
127  readonly attribute unsigned short zone;
128 
132  readonly attribute any value;
133 
137  readonly attribute DOMString source;
138 
142  readonly attribute DOMTimestamp timestamp;
143 
147  readonly attribute Signal changed;
148 
153  void getHistory(Date begin, Date end, HistoryCallback callback);
154 };
155 
159 interface Signal {
164  void connect(ChangedCallback callback)
165 };
166 
167 callback ChangedCallback = void(any value); ();
168 
169 callback HistoryCallback = void(PropertyInterface[] data); ();
170 
PropertyInterface represents an interface to an AMB Property.
Definition: bluemonkey.idl:118
DOMString[] sourcesForProperty(DOMString propertyName)
return the AMB sources that provide propertyName
void getHistory(DOMString[] properties, Date begin, Date end, HistoryCallback callback)
return logged data between "begin" and "end"
Entry point for bluemonkey.
Definition: bluemonkey.idl:44
void loadConfig(DOMString configFile)
load another script
readonly attribute any value
value of the property
Definition: bluemonkey.idl:132
readonly attribute Signal changed
changed signal
Definition: bluemonkey.idl:147
DOMString[] supportedProperties()
return supported properties
QObject createQObject()
create a QObject
void log(DOMString text)
log text to AMB output
void loadModule(DOMString moduleFile)
load a bluemonkey module
Bluemonkey interface Bluemonkey provides AMB plugin-like interfaces and allows the loading of other m...
Definition: bluemonkey.idl:57
void getHistory(Date begin, Date end, HistoryCallback callback)
get logged data between
readonly attribute DOMString type
type AMB property name
Definition: bluemonkey.idl:122
void createCustomProperty(DOMString name, any value, optional unsigned short zone)
creates a custom property
QTimer createTimer()
create a QTimer
Signal represents an way to connect to Qt signals and get a javascript callback.
Definition: bluemonkey.idl:159
unsigned short[] zonesForProperty(DOMString propertyName)
returns the available zones that contians propertyName
readonly attribute DOMTimestamp timestamp
timestamp when this property last changed
Definition: bluemonkey.idl:142
readonly attribute unsigned short zone
zone in the vehicle where this property is located
Definition: bluemonkey.idl:127
PropertyInterface subscribeTo(DOMString propertyName, optional unsigned short zone, optional DOMString source)
subscribe to a property
readonly attribute DOMString source
source plugin UUID for this property
Definition: bluemonkey.idl:137