• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0"?>
2<!--
3 Copyright (C) 2016 Red Hat, Inc.
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library. If not, see <http://www.gnu.org/licenses/>.
17
18 Author: Matthias Clasen <mclasen@redhat.com>
19-->
20
21<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
22  <!--
23      org.freedesktop.portal.Trash:
24      @short_description: Portal for trashing files
25
26      This simple interface lets sandboxed applications send files to
27      the trashcan.
28
29      This documentation describes version 1 of this interface.
30  -->
31  <interface name="org.freedesktop.portal.Trash">
32    <!--
33        TrashFile:
34	@fd: file descriptor for the file to trash
35        @result: the result. 0 if trashing failed, 1 if trashing succeeded, other values may be returned in the future
36
37        Sends a file to the trashcan. Applications are allowed to
38        trash a file if they can open it in r/w mode.
39    -->
40    <method name="TrashFile">
41      <annotation name="org.gtk.GDBus.C.UnixFD" value="true"/>
42      <arg type="h" name="fd" direction="in"/>
43      <arg type="u" name="result" direction="out"/>
44    </method>
45
46    <property name="version" type="u" access="read"/>
47  </interface>
48</node>
49