Debian Codegraph @

data/org.freedesktop.portal.Trash.xml

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2016 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.portal.Trash:
26 @short_description: Portal for trashing files
27
28 This simple interface lets sandboxed applications send files to
29 the trashcan.
30
31 This documentation describes version 1 of this interface.
32 -->
33 <interface name="org.freedesktop.portal.Trash">
34 <!--
35 TrashFile:
36 @fd: file descriptor for the file to trash
37 @result: the result. 0 if trashing failed, 1 if trashing succeeded, other values may be returned in the future
38
39 Sends a file to the trashcan. Applications are allowed to
40 trash a file if they can open it in r/w mode.
41 -->
42 <method name="TrashFile">
43 <annotation name="org.gtk.GDBus.C.UnixFD" value="true"/>
44 <arg type="h" name="fd" direction="in"/>
45 <arg type="u" name="result" direction="out"/>
46 </method>
47
48 <property name="version" type="u" access="read"/>
49 </interface>
50 </node>