Debian Codegraph @

data/org.freedesktop.impl.portal.Usb.xml

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2023-2024 GNOME Foundation Inc.
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library. If not, see <http://www.gnu.org/licenses/>.
17
18 Author: Georges Basile Stavracas Neto <[email protected]>
19 -->
20
21 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
22 <!--
23 org.freedesktop.impl.portal.Usb:
24 @short_description: USB portal backend interface
25
26 This interface lets sandboxed applications monitor and request
27 access to connected USB devices.
28
29 The implementation side allows requesting permission from the user
30 to access USB devices with a GUI.
31
32 This documentation describes version 1 of this interface.
33 -->
34 <interface name="org.freedesktop.impl.portal.Usb">
35
36 <!--
37 AcquireDevices:
38 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
39 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
40 @app_id: App id of the application
41 @devices: Array of identifier, device information, and access options for each device
42 @options: Vardict with optional further information
43 @response: Numeric Request response
44 @results: Vardict with the results of the call
45
46 Selects the devices to open.
47
48 Each element of the @devices array contains the ID, information and
49 access options for each device the app wants to acquire.
50 The supported keys in the information vardict are the same as the
51 keys in the @devices vardict of
52 :ref:`org.freedesktop.portal.Usb.EnumerateDevices`.
53
54 The supported keys in the access options vardict are:
55
56 * ``writable`` (``b``)
57
58 Whether the device will be opened in read-write or read-only mode.
59 Default: False
60
61 There are no supported keys in the @options vardict.
62
63 The following results get returned via the @results vardict:
64
65 * ``devices`` (``a(sa{sv})``)
66
67 An array of identifier and access options which is a subset of
68 what was passed in via @devices.
69 -->
70 <method name="AcquireDevices">
71 <arg type="o" name="handle" direction="in"/>
72 <arg type="s" name="parent_window" direction="in"/>
73 <arg type="s" name="app_id" direction="in"/>
74 <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QList&lt;std::tuple&lt;QString,QVariantMap,QVariantMap&gt;&gt;"/>
75 <arg type="a(sa{sv}a{sv})" name="devices" direction="in"/>
76 <annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QVariantMap"/>
77 <arg type="a{sv}" name="options" direction="in"/>
78 <arg type="u" name="response" direction="out"/>
79 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
80 <arg type="a{sv}" name="results" direction="out"/>
81 </method>
82
83 <property name="version" type="u" access="read"/>
84 </interface>
85 </node>