Debian Codegraph @

data/org.freedesktop.impl.portal.Access.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.impl.portal.Access:
26 @short_description: Interface for presenting an access dialog
27
28 This backend can be used by portal implementations that
29 need to ask a direct access question, such as "May xyz
30 use the microphone?"
31 -->
32 <interface name="org.freedesktop.impl.portal.Access">
33 <!--
34 AccessDialog:
35 @handle: Object path to export the Request object at
36 @app_id: App id of the application
37 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
38 @title: Title for the dialog
39 @subtitle: Subtitle for the dialog
40 @body: Body text, may be ""
41 @options: Vardict with optional further information
42 @response: Numeric response. The values allowed match the values allowed for :ref:`org.freedesktop.portal.Request::Response` signal.
43 @results: Vardict with the results of the call
44
45 Presents a "deny/grant" question to the user.
46
47 Supported keys in the @options include:
48
49 * ``modal`` (``b``)
50
51 Whether to make the dialog modal. Defaults to true.
52
53 * ``deny_label`` (``s``)
54
55 Label for the Deny button.
56
57 * ``grant_label`` (``s``)
58
59 Label for the Grant button.
60
61 * ``icon`` (``s``)
62
63 Icon name for an icon to show in the dialog. This should be a symbolic icon name.
64
65 * ``choices`` (``a(ssa(ss)s)``)
66
67 List of serialized choices.
68 See :ref:`org.freedesktop.portal.FileChooser.OpenFile` for details.
69
70 The following results get returned via the @results vardict:
71
72 * ``choices`` (``a(ss)``)
73
74 An array of pairs of strings, corresponding to the passed-in choices.
75 See :ref:`org.freedesktop.portal.FileChooser.OpenFile` for details.
76 -->
77 <method name="AccessDialog">
78 <arg type="o" name="handle" direction="in"/>
79 <arg type="s" name="app_id" direction="in"/>
80 <arg type="s" name="parent_window" direction="in"/>
81 <arg type="s" name="title" direction="in"/>
82 <arg type="s" name="subtitle" direction="in"/>
83 <arg type="s" name="body" direction="in"/>
84 <annotation name="org.qtproject.QtDBus.QtTypeName.In6" value="QVariantMap"/>
85 <arg type="a{sv}" name="options" direction="in"/>
86 <arg type="u" name="response" direction="out"/>
87 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
88 <arg type="a{sv}" name="results" direction="out"/>
89 </method>
90 </interface>
91 </node>