Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | |
| 3 | <node name="/org/chromium/Buffet/Manager" |
| 4 | xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0"> |
| 5 | <interface name="org.chromium.Buffet.Manager"> |
| 6 | <tp:docstring> |
| 7 | The Manager is responsible for global state of Buffet. It exposes |
| 8 | interfaces which affect the entire device such as device registration and |
| 9 | device state. |
| 10 | </tp:docstring> |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 11 | <method name="CheckDeviceRegistered"> |
| 12 | <arg name="device_id" type="s" direction="out"/> |
| 13 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 14 | </method> |
| 15 | <method name="GetDeviceInfo"> |
| 16 | <arg name="device_info" type="s" direction="out"/> |
| 17 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 18 | </method> |
| 19 | <method name="RegisterDevice"> |
| 20 | <arg name="params" type="a{sv}" direction="in"/> |
| 21 | <arg name="device_id" type="s" direction="out"/> |
| 22 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 23 | </method> |
| 24 | <method name="UpdateState"> |
| 25 | <arg name="property_set" type="a{sv}" direction="in"/> |
| 26 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 27 | </method> |
Alex Vakulenko | 61ad4db | 2015-01-20 10:50:04 -0800 | [diff] [blame] | 28 | <method name="GetState"> |
| 29 | <arg name="device_info" type="s" direction="out"/> |
| 30 | <annotation name="org.chromium.DBus.Method.Kind" value="normal"/> |
| 31 | </method> |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 32 | <method name="AddCommand"> |
| 33 | <arg name="json_command" type="s" direction="in"/> |
Vitaly Buka | 64fc5fc | 2015-03-24 12:42:24 -0700 | [diff] [blame] | 34 | <arg name="id" type="s" direction="out"/> |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 35 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 36 | </method> |
Vitaly Buka | 3886e8f | 2015-03-24 11:39:40 -0700 | [diff] [blame] | 37 | <method name="GetCommand"> |
| 38 | <arg name="id" type="s" direction="in"/> |
| 39 | <arg name="json_command" type="s" direction="out"/> |
| 40 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 41 | </method> |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 42 | <method name="TestMethod"> |
| 43 | <arg name="message" type="s" direction="in"/> |
| 44 | <arg name="echoed_message" type="s" direction="out"/> |
| 45 | <annotation name="org.chromium.DBus.Method.Kind" value="simple"/> |
| 46 | </method> |
Christopher Wiley | c900e48 | 2015-02-15 15:42:04 -0800 | [diff] [blame] | 47 | |
| 48 | <property name="Status" type="s" access="read"> |
| 49 | <tp:docstring> |
| 50 | State of Buffet's cloud registration. |
| 51 | Possible values include: |
Vitaly Buka | b055f15 | 2015-03-12 13:41:43 -0700 | [diff] [blame] | 52 | "unconfigured": Buffet has no credentials, either from an out of box |
| 53 | state, or because device was unregistered. |
Christopher Wiley | c900e48 | 2015-02-15 15:42:04 -0800 | [diff] [blame] | 54 | |
Vitaly Buka | b055f15 | 2015-03-12 13:41:43 -0700 | [diff] [blame] | 55 | "connecting": Buffet is registered and attempting to connect to the |
| 56 | cloud. |
| 57 | |
| 58 | "connected": Buffet is online and connected to the cloud. Note that |
| 59 | only this state requires internet connectivity. |
| 60 | |
| 61 | "invalid_credentials": Buffet has credentials, but they are no longer |
| 62 | valid. |
Christopher Wiley | c900e48 | 2015-02-15 15:42:04 -0800 | [diff] [blame] | 63 | </tp:docstring> |
| 64 | </property> |
Vitaly Buka | 620bd7e | 2015-03-16 01:07:01 -0700 | [diff] [blame] | 65 | <property name="DeviceId" type="s" access="read"> |
| 66 | <tp:docstring> |
| 67 | GCD ID if the device is registered or empty otherwise. |
| 68 | </tp:docstring> |
| 69 | </property> |
Vitaly Buka | aabadee | 2015-03-18 23:33:44 -0700 | [diff] [blame] | 70 | <property name="CommandDefs" type="s" access="read"> |
| 71 | <tp:docstring> |
| 72 | JSON with command definitions of the devices. |
| 73 | </tp:docstring> |
| 74 | </property> |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 75 | </interface> |
| 76 | </node> |