Debian Codegraph @

data/org.freedesktop.host.portal.Registry.xml

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2024 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.host.portal.Registry:
26 @short_description: Interface to associate D-Bus peers with application ids
27
28 This simple interface lets unsandboxed applications register their
29 D-Bus connections and associate it with an application ID that will be
30 used in portals.
31
32 This interface will not work with applications xdg-desktop-portal
33 identifies as sandboxed.
34
35 This documentation describes version 1 of this interface.
36 -->
37 <interface name="org.freedesktop.host.portal.Registry">
38 <!--
39 Register:
40 @app_id: Application identifier
41 @options: Vardict with optional further information
42
43 Register a D-Bus peer and associate it with an application ID. The
44 application ID must be able to match the basename of a .desktop file
45 that describes the application.
46
47 The application ID will be used in org.freedesktop.portal APIs to
48 associate a portal action with an application.
49
50 Registering can only done at most once; any subsequent call will result
51 in an error.
52
53 Registering must be done before any portal method call; registering
54 after such a call will result in an error.
55
56 Applications should ideally listen for name appeared D-Bus signalling to
57 re-register the peer if the portal service is restarted.
58 -->
59 <method name="Register">
60 <arg type="s" name="app_id" direction="in"/>
61 <annotation name="org.qtproject.QtDBus.QtTypeName.In1" value="QVariantMap"/>
62 <arg type="a{sv}" name="options" direction="in"/>
63 </method>
64 <property name="version" type="u" access="read"/>
65 </interface>
66 </node>