| 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 |
The following results get returned in the @results vardict: |
| 144 |
|
| 145 |
* ``devices`` (``u``) |
| 146 |
|
| 147 |
A bitmask of the devices selected by the user. |
| 148 |
|
| 149 |
* ``clipboard_enabled`` (``b``) |
| 150 |
|
| 151 |
A boolean for whether the clipboard was enabled ('true') or not ('false'). |
| 152 |
See the :ref:`org.freedesktop.portal.Clipboard` documentation for more information. |
| 153 |
|
| 154 |
Since version 2. |
| 155 |
|
| 156 |
* ``streams`` (``a(ua{sv})``) |
| 157 |
|
| 158 |
Equivalent to the streams entry documented in |
| 159 |
:ref:`org.freedesktop.impl.portal.ScreenCast.Start`. |
| 160 |
|
| 161 |
* ``devices`` (``u``) |
| 162 |
|
| 163 |
The device types that can be used for remote control. See the |
| 164 |
AvailableDeviceTypes property. |
| 165 |
--> |
| 166 |
<method name="Start"> |
| 167 |
<arg type="o" name="handle" direction="in"/> |
| 168 |
<arg type="o" name="session_handle" direction="in"/> |
| 169 |
<arg type="s" name="app_id" direction="in"/> |
| 170 |
<arg type="s" name="parent_window" direction="in"/> |
| 171 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QVariantMap"/> |
| 172 |
<arg type="a{sv}" name="options" direction="in"/> |
| 173 |
<arg type="u" name="response" direction="out"/> |
| 174 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 175 |
<arg type="a{sv}" name="results" direction="out"/> |
| 176 |
</method> |
| 177 |
<!-- |
| 178 |
NotifyPointerMotion: |
| 179 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 180 |
@options: Vardict with optional further information |
| 181 |
@dx: Relative movement on the x axis |
| 182 |
@dy: Relative movement on the y axis |
| 183 |
|
| 184 |
Notify about a new relative pointer motion event. The (dx, dy) vector |
| 185 |
represents the new pointer position in the streams logical coordinate |
| 186 |
space. |
| 187 |
--> |
| 188 |
<method name="NotifyPointerMotion"> |
| 189 |
<arg type="o" name="session_handle" direction="in"/> |
| 190 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 191 |
<arg type="a{sv}" name="options" direction="in"/> |
| 192 |
<arg type="d" name="dx" direction="in"/> |
| 193 |
<arg type="d" name="dy" direction="in"/> |
| 194 |
</method> |
| 195 |
<!-- |
| 196 |
NotifyPointerMotionAbsolute: |
| 197 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 198 |
@options: Vardict with optional further information |
| 199 |
@stream: The PipeWire stream node the coordinate is relative to |
| 200 |
@x: Pointer motion x coordinate |
| 201 |
@y: Pointer motion y coordinate |
| 202 |
|
| 203 |
Notify about a new absolute pointer motion event. The (x, y) position |
| 204 |
represents the new pointer position in the streams logical coordinate |
| 205 |
space (see the logical_size stream property in |
| 206 |
:ref:`org.freedesktop.portal.ScreenCast`). |
| 207 |
--> |
| 208 |
<method name="NotifyPointerMotionAbsolute"> |
| 209 |
<arg type="o" name="session_handle" direction="in"/> |
| 210 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 211 |
<arg type="a{sv}" name="options" direction="in"/> |
| 212 |
<arg type="u" name="stream" direction="in"/> |
| 213 |
<arg type="d" name="x" direction="in"/> |
| 214 |
<arg type="d" name="y" direction="in"/> |
| 215 |
</method> |
| 216 |
<!-- |
| 217 |
NotifyPointerButton: |
| 218 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 219 |
@options: Vardict with optional further information |
| 220 |
@button: The pointer button was pressed or released |
| 221 |
@state: The new state of the button |
| 222 |
|
| 223 |
The pointer button is encoded according to Linux Evdev button codes. |
| 224 |
|
| 225 |
May only be called if POINTER access was provided after starting the |
| 226 |
session. |
| 227 |
|
| 228 |
Available button states: |
| 229 |
|
| 230 |
- ``0``: Released |
| 231 |
- ``1``: Pressed |
| 232 |
--> |
| 233 |
<method name="NotifyPointerButton"> |
| 234 |
<arg type="o" name="session_handle" direction="in"/> |
| 235 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 236 |
<arg type="a{sv}" name="options" direction="in"/> |
| 237 |
<arg type="i" name="button" direction="in"/> |
| 238 |
<arg type="u" name="state" direction="in"/> |
| 239 |
</method> |
| 240 |
<!-- |
| 241 |
NotifyPointerAxis: |
| 242 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 243 |
@options: Vardict with optional further information |
| 244 |
@dx: Relative axis movement on the x axis |
| 245 |
@dy: Relative axis movement on the y axis |
| 246 |
|
| 247 |
The axis movement from a 'smooth scroll' device, such as a touchpad. |
| 248 |
When applicable, the size of the motion delta should be equivalent to |
| 249 |
the motion vector of a pointer motion done using the same advice. |
| 250 |
|
| 251 |
May only be called if POINTER access was provided after starting the |
| 252 |
session. |
| 253 |
|
| 254 |
Supported keys in the @options vardict include: |
| 255 |
|
| 256 |
* ``finish`` (``b``) |
| 257 |
|
| 258 |
If set to true, this is the last axis event in a series, for |
| 259 |
example as a result of the fingers being lifted from a touchpad |
| 260 |
after a two-finger scroll. Default is false. |
| 261 |
--> |
| 262 |
<method name="NotifyPointerAxis"> |
| 263 |
<arg type="o" name="session_handle" direction="in"/> |
| 264 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 265 |
<arg type="a{sv}" name="options" direction="in"/> |
| 266 |
<arg type="d" name="dx" direction="in"/> |
| 267 |
<arg type="d" name="dy" direction="in"/> |
| 268 |
</method> |
| 269 |
<!-- |
| 270 |
NotifyPointerAxisDiscrete: |
| 271 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 272 |
@options: Vardict with optional further information |
| 273 |
@axis: The axis that was scrolled |
| 274 |
@steps: The number of steps scrolled |
| 275 |
|
| 276 |
May only be called if POINTER access was provided after starting the |
| 277 |
session. |
| 278 |
|
| 279 |
Available axes: |
| 280 |
|
| 281 |
- ``0``: Vertical scroll |
| 282 |
- ``1``: Horizontal scroll |
| 283 |
--> |
| 284 |
<method name="NotifyPointerAxisDiscrete"> |
| 285 |
<arg type="o" name="session_handle" direction="in"/> |
| 286 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 287 |
<arg type="a{sv}" name="options" direction="in"/> |
| 288 |
<arg type="u" name="axis" direction="in"/> |
| 289 |
<arg type="i" name="steps" direction="in"/> |
| 290 |
</method> |
| 291 |
<!-- |
| 292 |
NotifyKeyboardKeycode: |
| 293 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 294 |
@options: Vardict with optional further information |
| 295 |
@keycode: Keyboard code that was pressed or released |
| 296 |
@state: New state of keyboard keysym |
| 297 |
|
| 298 |
May only be called if KEYBOARD access was provided after starting the |
| 299 |
session. |
| 300 |
|
| 301 |
Available keyboard keysym states: |
| 302 |
|
| 303 |
- ``0``: Released |
| 304 |
- ``1``: Pressed |
| 305 |
--> |
| 306 |
<method name="NotifyKeyboardKeycode"> |
| 307 |
<arg type="o" name="session_handle" direction="in"/> |
| 308 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 309 |
<arg type="a{sv}" name="options" direction="in"/> |
| 310 |
<arg type="i" name="keycode" direction="in"/> |
| 311 |
<arg type="u" name="state" direction="in"/> |
| 312 |
</method> |
| 313 |
<!-- |
| 314 |
NotifyKeyboardKeysym: |
| 315 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 316 |
@options: Vardict with optional further information |
| 317 |
@keysym: Keyboard symbol that was pressed or released |
| 318 |
@state: New state of keyboard keysym |
| 319 |
|
| 320 |
May only be called if KEYBOARD access was provided after starting the |
| 321 |
session. |
| 322 |
|
| 323 |
Available keyboard keysym states: |
| 324 |
|
| 325 |
- ``0``: Released |
| 326 |
- ``1``: Pressed |
| 327 |
--> |
| 328 |
<method name="NotifyKeyboardKeysym"> |
| 329 |
<arg type="o" name="session_handle" direction="in"/> |
| 330 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 331 |
<arg type="a{sv}" name="options" direction="in"/> |
| 332 |
<arg type="i" name="keysym" direction="in"/> |
| 333 |
<arg type="u" name="state" direction="in"/> |
| 334 |
</method> |
| 335 |
<!-- |
| 336 |
NotifyTouchDown: |
| 337 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 338 |
@options: Vardict with optional further information |
| 339 |
@stream: The PipeWire stream node the coordinate is relative to |
| 340 |
@slot: Touch slot where touch point appeared |
| 341 |
@x: Touch down x coordinate |
| 342 |
@y: Touch down y coordinate |
| 343 |
|
| 344 |
May only be called if TOUCHSCREEN access was provided after starting the |
| 345 |
session. |
| 346 |
|
| 347 |
Notify about a new touch down event. The (x, y) position |
| 348 |
represents the new touch point position in the streams logical |
| 349 |
coordinate space (see the ``logical_size`` stream property in |
| 350 |
:ref:`org.freedesktop.portal.ScreenCast`). |
| 351 |
--> |
| 352 |
<method name="NotifyTouchDown"> |
| 353 |
<arg type="o" name="session_handle" direction="in"/> |
| 354 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 355 |
<arg type="a{sv}" name="options" direction="in"/> |
| 356 |
<arg type="u" name="stream" direction="in"/> |
| 357 |
<arg type="u" name="slot" direction="in"/> |
| 358 |
<arg type="d" name="x" direction="in"/> |
| 359 |
<arg type="d" name="y" direction="in"/> |
| 360 |
</method> |
| 361 |
<!-- |
| 362 |
NotifyTouchMotion: |
| 363 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 364 |
@options: Vardict with optional further information |
| 365 |
@stream: The PipeWire stream node the coordinate is relative to |
| 366 |
@slot: Touch slot where touch point appeared |
| 367 |
@x: Touch motion x coordinate |
| 368 |
@y: Touch motion y coordinate |
| 369 |
|
| 370 |
May only be called if TOUCHSCREEN access was provided after starting the |
| 371 |
session. |
| 372 |
|
| 373 |
Notify about a new touch motion event. The (x, y) position |
| 374 |
represents where the touch point position in the streams logical |
| 375 |
coordinate space moved (see the ``logical_size`` stream property in |
| 376 |
:ref:`org.freedesktop.portal.ScreenCast`). |
| 377 |
--> |
| 378 |
<method name="NotifyTouchMotion"> |
| 379 |
<arg type="o" name="session_handle" direction="in"/> |
| 380 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 381 |
<arg type="a{sv}" name="options" direction="in"/> |
| 382 |
<arg type="u" name="stream" direction="in"/> |
| 383 |
<arg type="u" name="slot" direction="in"/> |
| 384 |
<arg type="d" name="x" direction="in"/> |
| 385 |
<arg type="d" name="y" direction="in"/> |
| 386 |
</method> |
| 387 |
<!-- |
| 388 |
NotifyTouchUp: |
| 389 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 390 |
@options: Vardict with optional further information |
| 391 |
@slot: Touch slot where touch point appeared |
| 392 |
|
| 393 |
May only be called if TOUCHSCREEN access was provided after starting the |
| 394 |
session. |
| 395 |
|
| 396 |
Notify about a new touch up event. |
| 397 |
--> |
| 398 |
<method name="NotifyTouchUp"> |
| 399 |
<arg type="o" name="session_handle" direction="in"/> |
| 400 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/> |
| 401 |
<arg type="a{sv}" name="options" direction="in"/> |
| 402 |
<arg type="u" name="slot" direction="in"/> |
| 403 |
</method> |
| 404 |
<!-- |
| 405 |
ConnectToEIS: |
| 406 |
@session_handle: Object path for the :ref:`org.freedesktop.portal.Session` object |
| 407 |
@app_id: App id of the application |
| 408 |
@options: Vardict with optional further information |
| 409 |
@fd: A file descriptor to an EIS implementation that can be passed to a |
| 410 |
sender libei context |
| 411 |
|
| 412 |
Request a connection to an EIS implementation. |
| 413 |
|
| 414 |
This method is available in version 2 of this interface. |
| 415 |
--> |
| 416 |
<method name="ConnectToEIS"> |
| 417 |
<annotation name="org.gtk.GDBus.C.UnixFD" value="true"/> |
| 418 |
<arg type="o" name="session_handle" direction="in"/> |
| 419 |
<arg type="s" name="app_id" direction="in"/> |
| 420 |
<annotation name="org.qtproject.QtDBus.QtTypeName.In2" value="QVariantMap"/> |
| 421 |
<arg type="a{sv}" name="options" direction="in"/> |
| 422 |
<arg type="h" name="fd" direction="out"/> |
| 423 |
</method> |
| 424 |
<!-- |
| 425 |
AvailableDeviceTypes: |
| 426 |
|
| 427 |
A bitmask of available source types. Currently defined types are: |
| 428 |
|
| 429 |
- ``1``: KEYBOARD |
| 430 |
- ``2``: POINTER |
| 431 |
- ``4``: TOUCHSCREEN |
| 432 |
--> |
| 433 |
<property name="AvailableDeviceTypes" type="u" access="read"/> |
| 434 |
<property name="version" type="u" access="read"/> |
| 435 |
</interface> |
| 436 |
</node> |