blob: 249700cfdfa9463085cbba4ddce748902834b541 [file] [log] [blame]
Alex Vakulenko2348e422014-11-21 08:57:57 -08001<?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 Vakulenko2348e422014-11-21 08:57:57 -080011 <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 Vakulenko61ad4db2015-01-20 10:50:04 -080028 <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 Vakulenko2348e422014-11-21 08:57:57 -080032 <method name="AddCommand">
33 <arg name="json_command" type="s" direction="in"/>
Vitaly Buka64fc5fc2015-03-24 12:42:24 -070034 <arg name="id" type="s" direction="out"/>
Alex Vakulenko2348e422014-11-21 08:57:57 -080035 <annotation name="org.chromium.DBus.Method.Kind" value="async"/>
36 </method>
Vitaly Buka3886e8f2015-03-24 11:39:40 -070037 <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 Vakulenko2348e422014-11-21 08:57:57 -080042 <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 Wileyc900e482015-02-15 15:42:04 -080047
48 <property name="Status" type="s" access="read">
49 <tp:docstring>
50 State of Buffet's cloud registration.
51 Possible values include:
Vitaly Bukab055f152015-03-12 13:41:43 -070052 "unconfigured": Buffet has no credentials, either from an out of box
53 state, or because device was unregistered.
Christopher Wileyc900e482015-02-15 15:42:04 -080054
Vitaly Bukab055f152015-03-12 13:41:43 -070055 "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 Wileyc900e482015-02-15 15:42:04 -080063 </tp:docstring>
64 </property>
Vitaly Buka620bd7e2015-03-16 01:07:01 -070065 <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 Bukaaabadee2015-03-18 23:33:44 -070070 <property name="CommandDefs" type="s" access="read">
71 <tp:docstring>
72 JSON with command definitions of the devices.
73 </tp:docstring>
74 </property>
Alex Vakulenko2348e422014-11-21 08:57:57 -080075 </interface>
76</node>