Logo Search packages:      
Sourcecode: libdesktop-agnostic version File versions  Download package

vfs-trash.h

/* 
 * Desktop Agnostic Library: Trash interface.
 *
 * Copyright (C) 2008, 2009 Mark Lee <libdesktop-agnostic@lazymalevolence.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 *
 * Author : Mark Lee <libdesktop-agnostic@lazymalevolence.com>
 */

#ifndef __LIBDESKTOP_AGNOSTIC_VFS_TRASH_H__
#define __LIBDESKTOP_AGNOSTIC_VFS_TRASH_H__

#include <glib.h>
#include <glib-object.h>
#include <libdesktop-agnostic/vfs-file.h>

G_BEGIN_DECLS


#define DESKTOP_AGNOSTIC_VFS_TRASH_TYPE_BACKEND (desktop_agnostic_vfs_trash_backend_get_type ())
#define DESKTOP_AGNOSTIC_VFS_TRASH_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DESKTOP_AGNOSTIC_VFS_TRASH_TYPE_BACKEND, DesktopAgnosticVFSTrashBackend))
#define DESKTOP_AGNOSTIC_VFS_TRASH_IS_BACKEND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DESKTOP_AGNOSTIC_VFS_TRASH_TYPE_BACKEND))
#define DESKTOP_AGNOSTIC_VFS_TRASH_BACKEND_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), DESKTOP_AGNOSTIC_VFS_TRASH_TYPE_BACKEND, DesktopAgnosticVFSTrashBackendIface))

typedef struct _DesktopAgnosticVFSTrashBackend DesktopAgnosticVFSTrashBackend;
typedef struct _DesktopAgnosticVFSTrashBackendIface DesktopAgnosticVFSTrashBackendIface;

struct _DesktopAgnosticVFSTrashBackendIface {
      GTypeInterface parent_iface;
      void (*send_to_trash) (DesktopAgnosticVFSTrashBackend* self, DesktopAgnosticVFSFileBackend* file, GError** error);
      void (*empty) (DesktopAgnosticVFSTrashBackend* self);
      guint (*get_file_count) (DesktopAgnosticVFSTrashBackend* self);
};


void desktop_agnostic_vfs_trash_backend_send_to_trash (DesktopAgnosticVFSTrashBackend* self, DesktopAgnosticVFSFileBackend* file, GError** error);
void desktop_agnostic_vfs_trash_backend_empty (DesktopAgnosticVFSTrashBackend* self);
guint desktop_agnostic_vfs_trash_backend_get_file_count (DesktopAgnosticVFSTrashBackend* self);
GType desktop_agnostic_vfs_trash_backend_get_type (void);


G_END_DECLS

#endif

Generated by  Doxygen 1.6.0   Back to index