Debian Codegraph @

data/org.freedesktop.portal.Account.xml

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2016 Red Hat, Inc.
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library. If not, see <http://www.gnu.org/licenses/>.
19
20 Author: Matthias Clasen <[email protected]>
21 -->
22
23 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
24 <!--
25 org.freedesktop.portal.Account:
26 @short_description: Portal for obtaining information about the user
27
28 This simple interface lets sandboxed applications query basic
29 information about the user, like their name and avatar photo.
30
31 This documentation describes version 1 of this interface.
32 -->
33 <interface name="org.freedesktop.portal.Account">
34 <!--
35 GetUserInformation:
36 @window: Identifier for the window
37 @options: Vardict with optional further information
38 @handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call
39
40 Gets information about the user.
41
42 Supported keys in the @options vardict include:
43
44 * ``handle_token`` (``s``)
45
46 A string that will be used as the last element of the @handle. Must be a valid
47 object path element. See the :ref:`org.freedesktop.portal.Request` documentation for
48 more information about the @handle.
49
50 * ``reason`` (``s``)
51
52 A string that can be shown in the dialog to explain why the information is
53 needed. This should be a complete sentence that explains what the application
54 will do with the returned information, for example: "Allows your personal
55 information to be included with recipes you share with your friends".
56
57
58 The following results get returned via the :ref:`org.freedesktop.portal.Request::Response` signal:
59
60 * ``id`` (``s``)
61
62 The user id.
63
64 * ``name`` (``s``)
65
66 The user's real name.
67
68 * ``image`` (``s``)
69
70 The URI of an image file for the user's avatar photo.
71 -->
72 <method name="GetUserInformation">
73 <arg type="s" name="window" direction="in"/>
74 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
75 <arg type="a{sv}" name="options" direction="in"/>
76 <arg type="o" name="handle" direction="out"/>
77 </method>
78 <property name="version" type="u" access="read"/>
79 </interface>
80 </node>