diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:00:05 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:00:05 +0000 |
commit | 2f8205a568181f5f63f565f11952e657afa5a3b2 (patch) | |
tree | b8d8ffc67349912af4067344872d27042029e5ed /daemon/gvfsjobdelete.h | |
parent | 3abebe5d04882e632575182525bd61f374780a59 (diff) | |
download | gvfs-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/gvfsjobdelete.h')
-rw-r--r-- | daemon/gvfsjobdelete.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/daemon/gvfsjobdelete.h b/daemon/gvfsjobdelete.h new file mode 100644 index 00000000..c53f6889 --- /dev/null +++ b/daemon/gvfsjobdelete.h @@ -0,0 +1,41 @@ +#ifndef __G_VFS_JOB_DELETE_H__ +#define __G_VFS_JOB_DELETE_H__ + +#include <gio/gfileinfo.h> +#include <gvfsjob.h> +#include <gvfsjobdbus.h> +#include <gvfsbackend.h> + +G_BEGIN_DECLS + +#define G_VFS_TYPE_JOB_DELETE (g_vfs_job_delete_get_type ()) +#define G_VFS_JOB_DELETE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_VFS_TYPE_JOB_DELETE, GVfsJobDelete)) +#define G_VFS_JOB_DELETE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_VFS_TYPE_JOB_DELETE, GVfsJobDeleteClass)) +#define G_VFS_IS_JOB_DELETE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_VFS_TYPE_JOB_DELETE)) +#define G_VFS_IS_JOB_DELETE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_VFS_TYPE_JOB_DELETE)) +#define G_VFS_JOB_DELETE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_VFS_TYPE_JOB_DELETE, GVfsJobDeleteClass)) + +typedef struct _GVfsJobDeleteClass GVfsJobDeleteClass; + +struct _GVfsJobDelete +{ + GVfsJobDBus parent_instance; + + GVfsBackend *backend; + char *filename; +}; + +struct _GVfsJobDeleteClass +{ + GVfsJobDBusClass parent_class; +}; + +GType g_vfs_job_delete_get_type (void) G_GNUC_CONST; + +GVfsJob *g_vfs_job_delete_new (DBusConnection *connection, + DBusMessage *message, + GVfsBackend *backend); + +G_END_DECLS + +#endif /* __G_VFS_JOB_DELETE_H__ */ |