/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */

/* nautilus-xds-dnd.h - XDS drop handling for Nautilus.

   Copyright (C) 2005 Free Software Foundation, Inc.

   The Gnome Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.

   The Gnome 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
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with the Gnome Library; see the file COPYING.LIB.  If not,
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.

   Authors: Christian Neumair <chris@gnome-de.org>
*/
#ifndef NAUTILUS_XDS_DND_H
#define NAUTILUS_XDS_DND_H

#include "nautilus-file.h"

#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>

typedef enum {
	XDS_DROP_STAGE_2_RESULT_SUCCESS,
	XDS_DROP_STAGE_2_RESULT_FAILURE,
	XDS_DROP_STAGE_2_RESULT_FAILURE_BUT_OCTET,
	XDS_DROP_STAGE_2_RESULT_ERROR
} XDSDropStage2Result;

gboolean            nautilus_xds_dnd_is_valid_xds_context (GdkDragContext *context);
char *              nautilus_xds_dnd_handle_drop_stage_1  (NautilusFile   *target_directory,
							   GdkDragContext *context);
XDSDropStage2Result nautilus_xds_dnd_handle_drop_stage_2  (GtkWidget      *widget,
							   GdkDragContext *context,
							   GtkSelectionData *data,
							   guint32 time);

#endif /* NAUTILUS_XDS_DND_H */
