| 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.impl.portal.Account: |
| 26 |
@short_description: Backend for the portal for obtaining user information |
| 27 |
|
| 28 |
This Account portal lets sandboxed applications query basic |
| 29 |
information about the user, like their name and avatar photo. |
| 30 |
The portal backend will present the user with a dialog to confirm |
| 31 |
which (if any) information to share. |
| 32 |
--> |
| 33 |
<interface name="org.freedesktop.impl.portal.Account"> |
| 34 |
<!-- |
| 35 |
GetUserInformation: |
| 36 |
@handle: Object path for the :ref:`org.freedesktop.portal.Request` object representing this call |
| 37 |
@app_id: App id of the application |
| 38 |
@window: Identifier for the application window, see :doc:`window-identifiers` |
| 39 |
@options: Vardict with optional further information |
| 40 |
@response: Numeric response |
| 41 |
@results: Vardict with the results of the call |
| 42 |
|
| 43 |
Gets information about the user. |
| 44 |
|
| 45 |
Supported keys in the @options vardict include: |
| 46 |
|
| 47 |
* ``reason`` (``s``) |
| 48 |
|
| 49 |
A string that can be shown in the dialog to expain why the information is needed. |
| 50 |
This should be a complete sentence that explains what the application will do with |
| 51 |
the returned information, for example: Allows your personal information to be included |
| 52 |
with recipes you share with your friends. |
| 53 |
|
| 54 |
The following results get returned via the @results vardict: |
| 55 |
|
| 56 |
* ``id`` (``s``) |
| 57 |
|
| 58 |
The user id. |
| 59 |
|
| 60 |
* ``name`` (``s``) |
| 61 |
|
| 62 |
The users real name. |
| 63 |
|
| 64 |
* ``image`` (``s``) |
| 65 |
|
| 66 |
The URI of an image file for the users avatar photo. |
| 67 |
--> |
| 68 |
<method name="GetUserInformation"> |
| 69 |
<arg type="o" name="handle" direction="in"/> |
| 70 |
<arg type="s" name="app_id" direction="in"/> |
| 71 |
<arg type="s" name="window" direction="in"/> |
| 72 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/> |
| 73 |
<arg type="a{sv}" name="options" direction="in"/> |
| 74 |
<arg type="u" name="response" direction="out"/> |
| 75 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 76 |
<arg type="a{sv}" name="results" direction="out"/> |
| 77 |
</method> |
| 78 |
</interface> |
| 79 |
</node> |