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> |
| 11 | <method name="StartDevice"> |
| 12 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 13 | </method> |
| 14 | <method name="CheckDeviceRegistered"> |
| 15 | <arg name="device_id" type="s" direction="out"/> |
| 16 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 17 | </method> |
| 18 | <method name="GetDeviceInfo"> |
| 19 | <arg name="device_info" type="s" direction="out"/> |
| 20 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 21 | </method> |
| 22 | <method name="RegisterDevice"> |
| 23 | <arg name="params" type="a{sv}" direction="in"/> |
| 24 | <arg name="device_id" type="s" direction="out"/> |
| 25 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 26 | </method> |
| 27 | <method name="UpdateState"> |
| 28 | <arg name="property_set" type="a{sv}" direction="in"/> |
| 29 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 30 | </method> |
Alex Vakulenko | 61ad4db | 2015-01-20 10:50:04 -0800 | [diff] [blame] | 31 | <method name="GetState"> |
| 32 | <arg name="device_info" type="s" direction="out"/> |
| 33 | <annotation name="org.chromium.DBus.Method.Kind" value="normal"/> |
| 34 | </method> |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 35 | <method name="AddCommand"> |
| 36 | <arg name="json_command" type="s" direction="in"/> |
| 37 | <annotation name="org.chromium.DBus.Method.Kind" value="async"/> |
| 38 | </method> |
| 39 | <method name="TestMethod"> |
| 40 | <arg name="message" type="s" direction="in"/> |
| 41 | <arg name="echoed_message" type="s" direction="out"/> |
| 42 | <annotation name="org.chromium.DBus.Method.Kind" value="simple"/> |
| 43 | </method> |
Christopher Wiley | c900e48 | 2015-02-15 15:42:04 -0800 | [diff] [blame] | 44 | |
| 45 | <property name="Status" type="s" access="read"> |
| 46 | <tp:docstring> |
| 47 | State of Buffet's cloud registration. |
| 48 | Possible values include: |
| 49 | |
| 50 | "offline": Buffet has credentials, but no connectivity to the Internet. |
| 51 | "cloud_error": Buffet has credentials, but cannot contact cloud services |
| 52 | to verify their validity. This could indicate that cloud |
| 53 | services are down, or that DNS is not resolving. |
| 54 | "invalid_credentials": Buffet has credentials, but they are no longer |
| 55 | valid. |
| 56 | "unregistered": Buffet has no credentials, either from an out of |
| 57 | box state, or because those credentials have been |
| 58 | rejected by the cloud service. Note that we |
| 59 | can unregistered with or without Internet connectivity. |
| 60 | "registering": Buffet has been provided with credentials, and is |
| 61 | registering with the cloud. |
| 62 | "registered": Buffet is online and registered with cloud services. |
| 63 | </tp:docstring> |
| 64 | </property> |
Alex Vakulenko | 2348e42 | 2014-11-21 08:57:57 -0800 | [diff] [blame] | 65 | </interface> |
| 66 | </node> |