| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
Copyright (C) 2017 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: Jonas Ã…dahl <[email protected]> |
| 21 |
--> |
| 22 |
|
| 23 |
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> |
| 24 |
<!-- |
| 25 |
org.freedesktop.portal.Session: |
| 26 |
@short_description: Shared session interface |
| 27 |
|
| 28 |
The Session interface is shared by all portal interfaces that involve |
| 29 |
long lived sessions. When a method that creates a session is called, if |
| 30 |
successful, the reply will include a session handle (i.e. object path) for |
| 31 |
a Session object, which will stay alive for the duration of the session. |
| 32 |
|
| 33 |
The duration of the session is defined by the interface that creates it. |
| 34 |
For convenience, the interface contains a method |
| 35 |
org.freedesktop.portal.Session.Close(), and a signal |
| 36 |
#org.freedesktop.portal.Session::Closed. Whether it is allowed to directly |
| 37 |
call org.freedesktop.portal.Session.Close() depends on the interface. |
| 38 |
|
| 39 |
The handle of a session will be of the form |
| 40 |
``/org/freedesktop/portal/desktop/session/SENDER/TOKEN``, where ``SENDER`` |
| 41 |
is the caller's unique name, with the initial ``:`` removed and all ``.`` |
| 42 |
replaced by ``_``, and ``TOKEN`` is a unique token that the caller |
| 43 |
provided with the ``session_handle_token`` key in the options vardict of |
| 44 |
the method creating the session. |
| 45 |
|
| 46 |
The token that the caller provides should be unique and not guessable. To |
| 47 |
avoid clashes with calls made from unrelated libraries, it is a good idea |
| 48 |
to use a per-library prefix combined with a random number. |
| 49 |
|
| 50 |
A client who started a session vanishing from the D-Bus is equivalent to |
| 51 |
closing all active sessions made by said client. |
| 52 |
--> |
| 53 |
<interface name="org.freedesktop.portal.Session"> |
| 54 |
|
| 55 |
<!-- |
| 56 |
Close: |
| 57 |
|
| 58 |
Closes the portal session to which this object refers and ends all |
| 59 |
related user interaction (dialogs, etc). |
| 60 |
--> |
| 61 |
<method name="Close"> |
| 62 |
</method> |
| 63 |
|
| 64 |
<!-- |
| 65 |
Closed: |
| 66 |
@details: A key value Vardict with details about the closed session. |
| 67 |
|
| 68 |
Emitted when a session is closed. |
| 69 |
|
| 70 |
The content of @details is specified by the interface creating the session. |
| 71 |
--> |
| 72 |
<signal name="Closed"> |
| 73 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariantMap"/> |
| 74 |
<arg type="a{sv}" name="details"/> |
| 75 |
</signal> |
| 76 |
<property name="version" type="u" access="read"/> |
| 77 |
</interface> |
| 78 |
</node> |