Debian Codegraph @

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

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2017-2018 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
21 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
22 <!--
23 org.freedesktop.impl.portal.RemoteDesktop:
24 @short_description: Remote desktop portal backend interface
25
26 The Remote desktop portal allows to create remote desktop sessions.
27
28 This documentation describes version 2 of this interface.
29 -->
30 <interface name="org.freedesktop.impl.portal.RemoteDesktop">
31 <!--
32 CreateSession:
33 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
34 @app_id: App id of the application
35 @options: Vardict with optional further information
36 @response: Numeric response
37 @results: Vardict with the results of the call
38
39 Create a remote desktop session.
40
41 A remote desktop session is used to allow remote controlling a desktop
42 session. It can also be used together with a screen cast session (see
43 org.freedesktop.portal.ScreenCast), but may only be started and stopped
44 with this interface.
45
46 The following results get returned in the @results vardict:
47
48 * ``session`` (``s``)
49
50 The session id. A string representing the created screen cast session.
51 -->
52 <method name="CreateSession">
53 <arg type="o" name="handle" direction="in"/>
54 <arg type="o" name="session_handle" direction="in"/>
55 <arg type="s" name="app_id" direction="in"/>
56 <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/>
57 <arg type="a{sv}" name="options" direction="in"/>
58 <arg type="u" name="response" direction="out"/>
59 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
60 <arg type="a{sv}" name="results" direction="out"/>
61 </method>
62 <!--
63 SelectDevices:
64 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
65 @session_handle: Object path for the :ref:`org.freedesktop.impl.portal.Session` object representing the session
66 @app_id: App id of the application
67 @options: Vardict with optional further information
68 @response: Numeric response
69 @results: Vardict with the results of the call
70
71 Configure what the devices remote desktop session should expose.
72
73 Supported keys in the @options vardict include:
74
75 * ``types`` (``u``)
76
77 Bitmask of what device types to request remote controlling of.
78 Default is all.
79
80 * ``restore_data`` (``(suv)``)
81
82 The data to restore from a previous session.
83
84 If the stored session cannot be restored, this value is ignored
85 and the user will be prompted normally. This may happen when, for
86 example, the session contains a monitor or a window that is not
87 available anymore, or when the stored permissions are withdrawn.
88
89 The restore data is composed of the vendor name (e.g. "GNOME" or
90 "KDE"), the version of the implementation-specific private data,
91 and the implementation-specific private data itself.
92
93 This option was added in version 2 of this interface.
94
95 * ``persist_mode`` (``u``)
96
97 How this session should persist. Default is 0. Accepted values are:
98
99 - ``0``: Do not persist (default)
100 - ``1``: Permissions persist as long as the application is running
101 - ``2``: Permissions persist until explicitly revoked
102
103 If the permission for the session to persist is granted, ``restore_data``
104 will be returned in the results of the
105 #org.freedesktop.impl.portal.RemoteDesktop.Start method.
106
107 This option was added in version 2 of this interface.
108
109 For available device types, see the AvailableDeviceTypes property.
110 -->
111 <method name="SelectDevices">
112 <arg type="o" name="handle" direction="in"/>
113 <arg type="o" name="session_handle" direction="in"/>
114 <arg type="s" name="app_id" direction="in"/>
115 <annotation name="org.qtproject.QtDBus.QtTypeName.In3" value="QVariantMap"/>
116 <arg type="a{sv}" name="options" direction="in"/>
117 <arg type="u" name="response" direction="out"/>
118 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
119 <arg type="a{sv}" name="results" direction="out"/>
120 </method>
121 <!--
122 Start:
123 @handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call
124 @app_id: App id of the application
125 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
126 @session_handle: Identifier for the remote desktop session
127 @parent_window: Identifier for the application window
128 @options: Vardict with optional further information
129 @response: Numeric response
130 @results: Vardict with the results of the call
131
132 Start the remote desktop session. This will typically result the portal
133 presenting a dialog.
134
135 Supported keys in the @options vardict include:
136
137 * ``handle_token`` (``s``)
138
139 A string that will be used as the last element of the @handle. Must be a valid
140 object path element. See the :ref:`org.freedesktop.portal.Request` documentation for
141 more information about the @handle.
142
143 * ``persist_mode`` (``u``)
144
145 How this session should persist. Default is 0. Accepted values are:
146
147 - ``0``: Do not persist (default)
148 - ``1``: Permissions persist as long as the application is running
149 - ``2``: Permissions persist until explicitly revoked
150
151 If the session should persist, ``restore_data`` must be returned in the @results
152 vardict.
153
154 This option was added in version 2 of this interface.
155
156 The following results get returned in the @results vardict:
157
158 * ``devices`` (``u``)
159
160 The device types that can be used for remote control. See the
161 AvailableDeviceTypes property.
162
163 * ``clipboard_enabled`` (``b``)
164
165 A boolean for whether the clipboard was enabled ('true') or not ('false').
166 See the :ref:`org.freedesktop.portal.Clipboard` documentation for more information.
167
168 Since version 2.
169
170 * ``streams`` (``a(ua{sv})``)
171
172 Equivalent to the streams entry documented in
173 :ref:`org.freedesktop.impl.portal.ScreenCast.Start`.
174
175 * ``restore_data`` (``(suv)``)
176
177 The data to restore for a future session with a `persist_mode` other than 0.
178 See the #org.freedesktop.impl.portal.RemoteDesktop.SelectDevices method for
179 more details.
180
181 This option was added in version 2 of this interface.
182 -->
183 <method name="Start">
184 <arg type="o" name="handle" direction="in"/>
185 <arg type="o" name="session_handle" direction="in"/>
186 <arg type="s" name="app_id" direction="in"/>
187 <arg type="s" name="parent_window" direction="in"/>
188 <annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QVariantMap"/>
189 <arg type="a{sv}" name="options" direction="in"/>
190 <arg type="u" name="response" direction="out"/>
191 <annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/>
192 <arg type="a{sv}" name="results" direction="out"/>
193 </method>
194 <!--
195 NotifyPointerMotion:
196 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
197 @options: Vardict with optional further information
198 @dx: Relative movement on the x axis
199 @dy: Relative movement on the y axis
200
201 Notify about a new relative pointer motion event. The (dx, dy) vector
202 represents the new pointer position in the streams logical coordinate
203 space.
204 -->
205 <method name="NotifyPointerMotion">
206 <arg type="o" name="session_handle" direction="in"/>
207 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
208 <arg type="a{sv}" name="options" direction="in"/>
209 <arg type="d" name="dx" direction="in"/>
210 <arg type="d" name="dy" direction="in"/>
211 </method>
212 <!--
213 NotifyPointerMotionAbsolute:
214 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
215 @options: Vardict with optional further information
216 @stream: The PipeWire stream node the coordinate is relative to
217 @x: Pointer motion x coordinate
218 @y: Pointer motion y coordinate
219
220 Notify about a new absolute pointer motion event. The (x, y) position
221 represents the new pointer position in the streams logical coordinate
222 space (see the logical_size stream property in
223 :ref:`org.freedesktop.portal.ScreenCast`).
224 -->
225 <method name="NotifyPointerMotionAbsolute">
226 <arg type="o" name="session_handle" direction="in"/>
227 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
228 <arg type="a{sv}" name="options" direction="in"/>
229 <arg type="u" name="stream" direction="in"/>
230 <arg type="d" name="x" direction="in"/>
231 <arg type="d" name="y" direction="in"/>
232 </method>
233 <!--
234 NotifyPointerButton:
235 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
236 @options: Vardict with optional further information
237 @button: The pointer button was pressed or released
238 @state: The new state of the button
239
240 The pointer button is encoded according to Linux Evdev button codes.
241
242 May only be called if POINTER access was provided after starting the
243 session.
244
245 Available button states:
246
247 - ``0``: Released
248 - ``1``: Pressed
249 -->
250 <method name="NotifyPointerButton">
251 <arg type="o" name="session_handle" direction="in"/>
252 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
253 <arg type="a{sv}" name="options" direction="in"/>
254 <arg type="i" name="button" direction="in"/>
255 <arg type="u" name="state" direction="in"/>
256 </method>
257 <!--
258 NotifyPointerAxis:
259 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
260 @options: Vardict with optional further information
261 @dx: Relative axis movement on the x axis
262 @dy: Relative axis movement on the y axis
263
264 The axis movement from a 'smooth scroll' device, such as a touchpad.
265 When applicable, the size of the motion delta should be equivalent to
266 the motion vector of a pointer motion done using the same advice.
267
268 May only be called if POINTER access was provided after starting the
269 session.
270
271 Supported keys in the @options vardict include:
272
273 * ``finish`` (``b``)
274
275 If set to true, this is the last axis event in a series, for
276 example as a result of the fingers being lifted from a touchpad
277 after a two-finger scroll. Default is false.
278 -->
279 <method name="NotifyPointerAxis">
280 <arg type="o" name="session_handle" direction="in"/>
281 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
282 <arg type="a{sv}" name="options" direction="in"/>
283 <arg type="d" name="dx" direction="in"/>
284 <arg type="d" name="dy" direction="in"/>
285 </method>
286 <!--
287 NotifyPointerAxisDiscrete:
288 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
289 @options: Vardict with optional further information
290 @axis: The axis that was scrolled
291 @steps: The number of steps scrolled
292
293 May only be called if POINTER access was provided after starting the
294 session.
295
296 Available axes:
297
298 - ``0``: Vertical scroll
299 - ``1``: Horizontal scroll
300 -->
301 <method name="NotifyPointerAxisDiscrete">
302 <arg type="o" name="session_handle" direction="in"/>
303 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
304 <arg type="a{sv}" name="options" direction="in"/>
305 <arg type="u" name="axis" direction="in"/>
306 <arg type="i" name="steps" direction="in"/>
307 </method>
308 <!--
309 NotifyKeyboardKeycode:
310 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
311 @options: Vardict with optional further information
312 @keycode: Keyboard code that was pressed or released
313 @state: New state of keyboard keysym
314
315 May only be called if KEYBOARD access was provided after starting the
316 session.
317
318 Available keyboard keysym states:
319
320 - ``0``: Released
321 - ``1``: Pressed
322 -->
323 <method name="NotifyKeyboardKeycode">
324 <arg type="o" name="session_handle" direction="in"/>
325 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
326 <arg type="a{sv}" name="options" direction="in"/>
327 <arg type="i" name="keycode" direction="in"/>
328 <arg type="u" name="state" direction="in"/>
329 </method>
330 <!--
331 NotifyKeyboardKeysym:
332 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
333 @options: Vardict with optional further information
334 @keysym: Keyboard symbol that was pressed or released
335 @state: New state of keyboard keysym
336
337 May only be called if KEYBOARD access was provided after starting the
338 session.
339
340 Available keyboard keysym states:
341
342 - ``0``: Released
343 - ``1``: Pressed
344 -->
345 <method name="NotifyKeyboardKeysym">
346 <arg type="o" name="session_handle" direction="in"/>
347 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
348 <arg type="a{sv}" name="options" direction="in"/>
349 <arg type="i" name="keysym" direction="in"/>
350 <arg type="u" name="state" direction="in"/>
351 </method>
352 <!--
353 NotifyTouchDown:
354 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
355 @options: Vardict with optional further information
356 @stream: The PipeWire stream node the coordinate is relative to
357 @slot: Touch slot where touch point appeared
358 @x: Touch down x coordinate
359 @y: Touch down y coordinate
360
361 May only be called if TOUCHSCREEN access was provided after starting the
362 session.
363
364 Notify about a new touch down event. The (x, y) position
365 represents the new touch point position in the streams logical
366 coordinate space (see the ``logical_size`` stream property in
367 :ref:`org.freedesktop.portal.ScreenCast`).
368 -->
369 <method name="NotifyTouchDown">
370 <arg type="o" name="session_handle" direction="in"/>
371 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
372 <arg type="a{sv}" name="options" direction="in"/>
373 <arg type="u" name="stream" direction="in"/>
374 <arg type="u" name="slot" direction="in"/>
375 <arg type="d" name="x" direction="in"/>
376 <arg type="d" name="y" direction="in"/>
377 </method>
378 <!--
379 NotifyTouchMotion:
380 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
381 @options: Vardict with optional further information
382 @stream: The PipeWire stream node the coordinate is relative to
383 @slot: Touch slot where touch point appeared
384 @x: Touch motion x coordinate
385 @y: Touch motion y coordinate
386
387 May only be called if TOUCHSCREEN access was provided after starting the
388 session.
389
390 Notify about a new touch motion event. The (x, y) position
391 represents where the touch point position in the streams logical
392 coordinate space moved (see the ``logical_size`` stream property in
393 :ref:`org.freedesktop.portal.ScreenCast`).
394 -->
395 <method name="NotifyTouchMotion">
396 <arg type="o" name="session_handle" direction="in"/>
397 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
398 <arg type="a{sv}" name="options" direction="in"/>
399 <arg type="u" name="stream" direction="in"/>
400 <arg type="u" name="slot" direction="in"/>
401 <arg type="d" name="x" direction="in"/>
402 <arg type="d" name="y" direction="in"/>
403 </method>
404 <!--
405 NotifyTouchUp:
406 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
407 @options: Vardict with optional further information
408 @slot: Touch slot where touch point appeared
409
410 May only be called if TOUCHSCREEN access was provided after starting the
411 session.
412
413 Notify about a new touch up event.
414 -->
415 <method name="NotifyTouchUp">
416 <arg type="o" name="session_handle" direction="in"/>
417 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
418 <arg type="a{sv}" name="options" direction="in"/>
419 <arg type="u" name="slot" direction="in"/>
420 </method>
421 <!--
422 ConnectToEIS:
423 @session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object
424 @app_id: App id of the application
425 @options: Vardict with optional further information
426 @fd: A file descriptor to an EIS implementation that can be passed to a
427 sender libei context
428
429 Request a connection to an EIS implementation.
430
431 This method is available in version 2 of this interface.
432 -->
433 <method name="ConnectToEIS">
434 <annotation name="org.gtk.GDBus.C.UnixFD" value="true"/>
435 <arg type="o" name="session_handle" direction="in"/>
436 <arg type="s" name="app_id" direction="in"/>
437 <annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/>
438 <arg type="a{sv}" name="options" direction="in"/>
439 <arg type="h" name="fd" direction="out"/>
440 </method>
441 <!--
442 AvailableDeviceTypes:
443
444 A bitmask of available source types. Currently defined types are:
445
446 - ``1``: KEYBOARD
447 - ``2``: POINTER
448 - ``4``: TOUCHSCREEN
449 -->
450 <property name="AvailableDeviceTypes" type="u" access="read"/>
451 <property name="version" type="u" access="read"/>
452 </interface>
453 </node>