| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
Copyright (C) 2019 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: Matthias Clasen <[email protected]> |
| 21 |
--> |
| 22 |
|
| 23 |
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd"> |
| 24 |
<!-- |
| 25 |
org.freedesktop.impl.portal.Background: |
| 26 |
@short_description: Background portal backend interface |
| 27 |
|
| 28 |
This interface provides APIs related to applications |
| 29 |
that are running in the background. |
| 30 |
--> |
| 31 |
<interface name="org.freedesktop.impl.portal.Background"> |
| 32 |
|
| 33 |
<!-- |
| 34 |
GetAppState: |
| 35 |
@apps: an array with information about running apps |
| 36 |
|
| 37 |
Gets information about running apps. Each entry has |
| 38 |
an application ID as key. The returned values are of |
| 39 |
type u and have the following meaning: |
| 40 |
|
| 41 |
- ``0``: Background (no open window) |
| 42 |
- ``1``: Running (at least one open window) |
| 43 |
- ``2``: Active (in the foreground) |
| 44 |
--> |
| 45 |
<method name="GetAppState"> |
| 46 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QVariantMap"/> |
| 47 |
<arg type="a{sv}" name="apps" direction="out"/> |
| 48 |
</method> |
| 49 |
|
| 50 |
<!-- |
| 51 |
NotifyBackground: |
| 52 |
@handle: Object path for the :ref:`org.freedesktop.impl.portal.Request` object representing this call |
| 53 |
@app_id: App id of the application |
| 54 |
@name: A display name for the application |
| 55 |
@response: Numeric response, not used |
| 56 |
@results: Vardict with results of the call |
| 57 |
|
| 58 |
Notifies the user that an application is running in the background. |
| 59 |
|
| 60 |
The following results get returned via the @results vardict: |
| 61 |
|
| 62 |
* ``result`` (``u``) |
| 63 |
|
| 64 |
The choice that the user made regarding the background |
| 65 |
activity: |
| 66 |
|
| 67 |
- ``0``: Forbid background activity by this app |
| 68 |
- ``1``: Allow background activity by this app |
| 69 |
- ``2``: Allow this instance of background activity |
| 70 |
--> |
| 71 |
<method name="NotifyBackground"> |
| 72 |
<arg type="o" name="handle" direction="in"/> |
| 73 |
<arg type="s" name="app_id" direction="in"/> |
| 74 |
<arg type="s" name="name" direction="in"/> |
| 75 |
<arg type="u" name="response" direction="out"/> |
| 76 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out1" value="QVariantMap"/> |
| 77 |
<arg type="a{sv}" name="results" direction="out"/> |
| 78 |
</method> |
| 79 |
|
| 80 |
<!-- |
| 81 |
EnableAutostart: |
| 82 |
@app_id: App id of the application |
| 83 |
@enable: TRUE to enable autostart, FALSE to disable it |
| 84 |
@commandline: The commandline to use in the autostart file |
| 85 |
@flags: Flags influencing the details of the autostarting |
| 86 |
@result: TRUE if autostart was enabled, FALSE otherwise |
| 87 |
|
| 88 |
This is deprecated! New versions of xdg-desktop-portal will not |
| 89 |
call this method. |
| 90 |
|
| 91 |
Enables or disables autostart for an application. |
| 92 |
|
| 93 |
The following flags are understood: |
| 94 |
|
| 95 |
- ``1``: Use D-Bus activation |
| 96 |
--> |
| 97 |
<method name="EnableAutostart"> |
| 98 |
<arg type="s" name="app_id" direction="in"/> |
| 99 |
<arg type="b" name="enable" direction="in"/> |
| 100 |
<arg type="as" name="commandline" direction="in"/> |
| 101 |
<arg type="u" name="flags" direction="in"/> |
| 102 |
<arg type="b" name="result" direction="out"/> |
| 103 |
</method> |
| 104 |
|
| 105 |
<!-- |
| 106 |
RunningApplicationsChanged: |
| 107 |
|
| 108 |
This signal gets emitted when applications change their state |
| 109 |
and it is worth calling GetAppState again. |
| 110 |
--> |
| 111 |
<signal name="RunningApplicationsChanged"> |
| 112 |
</signal> |
| 113 |
</interface> |
| 114 |
</node> |