~ci-train-bot/online-accounts-api/online-accounts-api-ubuntu-zesty-2222

« back to all changes in this revision

Viewing changes to src/daemon/manager.xml

  • Committer: James Henstridge
  • Date: 2015-02-06 07:50:43 UTC
  • Revision ID: james@jamesh.id.au-20150206075043-5l0ip8mjnvah344v
Skeleton for accounts daemon.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
 
2
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
 
3
 
 
4
<node name="/com/ubuntu/OnlineAccounts/Manager">
 
5
  <interface name="com.ubuntu.OnlineAccounts.Manager">
 
6
 
 
7
    <!--
 
8
        GetAccounts: returns a list of account IDs that provide the
 
9
        given service.
 
10
    -->
 
11
    <method name="GetAccounts">
 
12
      <arg name="service_id" type="s" direction="in" />
 
13
      <arg name="accounts" type="au" direction="out"/>
 
14
      <annotation name="org.qtproject.QtDBus.QtTypeName.Out0"
 
15
                  value="QList&lt;uint&gt;"/>
 
16
    </method>
 
17
 
 
18
    <!--
 
19
        GetAccountInfo: return information about a given account ID
 
20
    -->
 
21
    <method name="GetAccountInfo">
 
22
      <arg name="service_id" type="s" direction="in" />
 
23
      <arg name="account_id" type="u" direction="in" />
 
24
      <arg name="details" type="a{sv}" direction="out" />
 
25
      <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
 
26
    </method>
 
27
 
 
28
    <!--
 
29
        Authenticate: request authentication credentials for the given
 
30
        account ID in the context of a particualr service.
 
31
 
 
32
        If "interactive" is false, an error will be returned if
 
33
        user interaction would be required to retrieve the
 
34
        credentials.
 
35
 
 
36
        If "invalidate" is true, any stored credentials will be
 
37
        ignored and new credentials will be requested from the account
 
38
        provider.
 
39
 
 
40
        The result or error will be delivered over the socket provided
 
41
        by the client.
 
42
    -->
 
43
    <method name="Authenticate">
 
44
      <arg name="service_id" type="s" direction="in" />
 
45
      <arg name="account_id" type="u" direction="in" />
 
46
      <arg name="interactive" type="b" direction="in" />
 
47
      <arg name="invalidate" type="b" direction="in" />
 
48
      <!-- <arg name="reply_socket" type="h" direction="in" /> -->
 
49
      <arg name="credentials" type="a{sv}" direction="out" />
 
50
      <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
 
51
    </method>
 
52
 
 
53
    <!--
 
54
        Register: register a new account for use with the given
 
55
        service.
 
56
 
 
57
        The result or error will be delivered over the socket provided
 
58
        by the client.
 
59
    -->
 
60
    <method name="Register">
 
61
      <arg name="service_id" type="s" direction="in" />
 
62
      <!-- <arg name="reply_socket" type="h" direction="in" /> -->
 
63
      <arg name="account_id" type="u" direction="out" />
 
64
      <arg name="details" type="a{sv}" direction="out" />
 
65
      <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
 
66
      <arg name="credentials" type="a{sv}" direction="out" />
 
67
      <annotation name="org.qtproject.QtDBus.QtTypeName.Out2" value="QVariantMap"/>
 
68
    </method>
 
69
 
 
70
    <!--
 
71
        AccountChanged: emitted when account details are changed.
 
72
 
 
73
        This signal will be emitted when new accounts are enabled, and
 
74
        when existing accounts are disabled.  Clients can detect these
 
75
        cases by checking the "enabled" flag and comparing the account
 
76
        ID with the list of accounts they currently know about.
 
77
 
 
78
        The actual changed account details can be retrieved with
 
79
        GetAccountInfo().
 
80
    -->
 
81
    <signal name="AccountChanged">
 
82
      <arg name="service_id" type="s" />
 
83
      <arg name="account_id" type="u" />
 
84
      <arg name="enabled" type="b" />
 
85
    </signal>
 
86
 
 
87
    <!--
 
88
        CredentialsChanged: emitted when the credentials for the given
 
89
        service ID on the given account change.
 
90
 
 
91
        The new credentials can be retrieved with Authenticate().
 
92
    -->
 
93
    <signal name="CredentialsChanged">
 
94
      <arg name="service_id" type="s" />
 
95
      <arg name="account_id" type="u" />
 
96
    </signal>
 
97
 
 
98
  </interface>
 
99
</node>