summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackend.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 14:00:05 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 14:00:05 +0000
commit2f8205a568181f5f63f565f11952e657afa5a3b2 (patch)
treeb8d8ffc67349912af4067344872d27042029e5ed /daemon/gvfsbackend.c
parent3abebe5d04882e632575182525bd61f374780a59 (diff)
downloadgvfs-2f8205a568181f5f63f565f11952e657afa5a3b2.tar.gz
Implement trash/delete in daemon
Original git commit by Alexander Larsson <alexl@redhat.com> at 1183468196 +0200 svn path=/trunk/; revision=610
Diffstat (limited to 'daemon/gvfsbackend.c')
-rw-r--r--daemon/gvfsbackend.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/daemon/gvfsbackend.c b/daemon/gvfsbackend.c
index b63554bb..1802077d 100644
--- a/daemon/gvfsbackend.c
+++ b/daemon/gvfsbackend.c
@@ -18,6 +18,8 @@
#include <gvfsjobgetfsinfo.h>
#include <gvfsjobsetdisplayname.h>
#include <gvfsjobenumerate.h>
+#include <gvfsjobdelete.h>
+#include <gvfsjobtrash.h>
#include <gvfsjobmountmountable.h>
#include <gdbusutils.h>
@@ -282,6 +284,14 @@ backend_dbus_handler (DBusConnection *connection,
G_VFS_DBUS_MOUNT_INTERFACE,
G_VFS_DBUS_MOUNT_OP_SET_DISPLAY_NAME))
job = g_vfs_job_set_display_name_new (connection, message, backend);
+ else if (dbus_message_is_method_call (message,
+ G_VFS_DBUS_MOUNT_INTERFACE,
+ G_VFS_DBUS_MOUNT_OP_DELETE))
+ job = g_vfs_job_delete_new (connection, message, backend);
+ else if (dbus_message_is_method_call (message,
+ G_VFS_DBUS_MOUNT_INTERFACE,
+ G_VFS_DBUS_MOUNT_OP_TRASH))
+ job = g_vfs_job_trash_new (connection, message, backend);
if (job)
{