Debian Codegraph @

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

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2022 Aleix Pol Gonzalez <[email protected]>
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: Aleix Pol Gonzalez <[email protected]>
21 -->
22
23 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
24 <!--
25 org.freedesktop.impl.portal.GlobalShortcuts:
26 @short_description: GlobalShortcuts portal backend interface
27
28 This portal lets applications register global shortcuts so they can
29 act regardless of the system state upon an input event.
30
31 This documentation describes version 1 of this interface.
32 -->
33 <interface name="org.freedesktop.impl.portal.GlobalShortcuts">
34 <!--
35 CreateSession:
36 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
37 @session_handle: Object path for the ref:`org.freedesktop.impl.portal.Session` object representing the session being created
38 @app_id: App id of the application
39 @options: Vardict with optional further information. See :ref:`org.freedesktop.portal.GlobalShortcuts.CreateSession`
40 @response: Numeric Request response
41 @results: Vardict with the results of the call
42
43 Create a global shortcuts session.
44
45 There are currently no supported keys in the @results vardict.
46 -->
47 <method name="CreateSession">
48 <arg type="o" name="handle" direction="in"/>
49 <arg type="o" name="session_handle" direction="in"/>
50 <arg type="s" name="app_id" direction="in"/>
51 <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/>
52 <arg type="a{sv}" name="options" direction="in"/>
53 <arg type="u" name="response" direction="out"/>
54 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
55 <arg type="a{sv}" name="results" direction="out"/>
56 </method>
57
58 <!--
59 BindShortcuts:
60 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
61 @session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session
62 @shortcuts: The list of shortcuts to bind. See :ref:`org.freedesktop.portal.GlobalShortcuts.BindShortcuts`
63 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
64 @shortcuts: The identifier of the shortcuts we intend to register, empty for all shortcuts
65 @results: Vardict with the results of the call
66
67 Bind the shortcuts of this session. This will typically result the portal
68 presenting a dialog letting the user configure shortcut triggers.
69 -->
70 <method name="BindShortcuts">
71 <arg type="o" name="handle" direction="in"/>
72 <arg type="o" name="session_handle" direction="in"/>
73 <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QList&lt;QPair&lt;QString,QVariantMap&gt;&gt;"/>
74 <arg type="a(sa{sv})" name="shortcuts" direction="in"/>
75 <arg type="s" name="parent_window" direction="in"/>
76 <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/>
77 <arg type="a{sv}" name="options" direction="in"/>
78 <annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QVariantMap"/>
79 <arg type="u" name="response" direction="out"/>
80 <arg type="a{sv}" name="results" direction="out"/>
81 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
82 </method>
83
84 <!--
85 ListShortcuts:
86 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
87 @session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session
88 @results: Vardict with the results of the call
89
90 List shortcuts registered in the global shortcuts session.
91
92 The following results get returned in the @results vardict:
93
94 * ``shortcuts`` (``a(sa{sv})``)
95
96 A list of shortcuts.
97
98 See the :ref:`org.freedesktop.portal.GlobalShortcuts.BindShortcuts` method for
99 the list of supported properties of shortcuts.
100 -->
101 <method name="ListShortcuts">
102 <arg type="o" name="handle" direction="in"/>
103 <arg type="o" name="session_handle" direction="in"/>
104 <arg type="u" name="response" direction="out"/>
105 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
106 <arg type="a{sv}" name="results" direction="out"/>
107 </method>
108
109 <!--
110 Activated:
111 @session_handle: Session that requested the shortcut
112 @shortcut_id: the application-provided ID for the notification
113 @timestamp: the time of activation with millisecond granularity, with an undefined base.
114 @options: Vardict with optional further information
115
116 Emitted when a shortcut is activated.
117 -->
118 <signal name="Activated">
119 <arg type="o" name="session_handle" direction="out"/>
120 <arg type="s" name="shortcut_id" direction="out"/>
121 <arg type="t" name="timestamp" direction="out"/>
122 <annotation name="org.qtproject.QtDBus.QtTypeName.Out3" value="QVariantMap"/>
123 <arg type="a{sv}" name="options" direction="out"/>
124 </signal>
125
126 <!--
127 Deactivated:
128 @session_handle: Session that requested the shortcut
129 @shortcut_id: the application-provided ID for the notification
130 @timestamp: the time of deactivation with millisecond granularity, with an undefined base.
131 @options: Vardict with optional further information
132
133 Emitted when a shortcut is deactivated.
134 -->
135 <signal name="Deactivated">
136 <arg type="o" name="session_handle" direction="out"/>
137 <arg type="s" name="shortcut_id" direction="out"/>
138 <arg type="t" name="timestamp" direction="out"/>
139 <annotation name="org.qtproject.QtDBus.QtTypeName.Out3" value="QVariantMap"/>
140 <arg type="a{sv}" name="options" direction="out"/>
141 </signal>
142
143 <!--
144 ShortcutsChanged:
145 @session_handle: Session that requested the shortcut
146 @shortcuts: The list of changed shortcuts
147
148 Emitted when shortcuts are changed.
149
150 The results get returned via the :ref:`org.freedesktop.portal.Request::Response`
151 signal. See :ref:`org.freedesktop.portal.GlobalShortcuts.BindShortcuts` for the
152 list of supported properties of shortcuts.
153 -->
154 <signal name="ShortcutsChanged">
155 <arg type="o" name="session_handle" direction="out"/>
156 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QList&lt;QPair&lt;QString,QVariantMap&gt;&gt;"/>
157 <arg type="a(sa{sv})" name="shortcuts" direction="out"/>
158 </signal>
159
160 <property name="version" type="u" access="read"/>
161 </interface>
162 </node>