1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 3 /* caja-file-conflict-dialog: dialog that handles file conflicts 4 during transfer operations. 5 6 Copyright (C) 2008, Cosimo Cecchi 7 8 This program is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License as 10 published by the Free Software Foundation; either version 2 of the 11 License, or (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 General Public License for more details. 17 18 You should have received a copy of the GNU General Public 19 License along with this program; if not, write to the 20 Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 21 Boston, MA 02110-1301, USA. 22 23 Authors: Cosimo Cecchi <cosimoc@gnome.org> 24 */ 25 26 #ifndef CAJA_FILE_CONFLICT_DIALOG_H 27 #define CAJA_FILE_CONFLICT_DIALOG_H 28 29 #include <glib-object.h> 30 #include <gio/gio.h> 31 #include <gtk/gtk.h> 32 33 #define CAJA_TYPE_FILE_CONFLICT_DIALOG \ 34 (caja_file_conflict_dialog_get_type ()) 35 #define CAJA_FILE_CONFLICT_DIALOG(o) \ 36 (G_TYPE_CHECK_INSTANCE_CAST ((o), CAJA_TYPE_FILE_CONFLICT_DIALOG,\ 37 CajaFileConflictDialog)) 38 #define CAJA_FILE_CONFLICT_DIALOG_CLASS(k) \ 39 (G_TYPE_CHECK_CLASS_CAST((k), CAJA_TYPE_FILE_CONFLICT_DIALOG,\ 40 CajaFileConflictDialogClass)) 41 #define CAJA_IS_FILE_CONFLICT_DIALOG(o) \ 42 (G_TYPE_CHECK_INSTANCE_TYPE ((o), CAJA_TYPE_FILE_CONFLICT_DIALOG)) 43 #define CAJA_IS_FILE_CONFLICT_DIALOG_CLASS(k) \ 44 (G_TYPE_CHECK_CLASS_TYPE ((k), CAJA_TYPE_FILE_CONFLICT_DIALOG)) 45 #define CAJA_FILE_CONFLICT_DIALOG_GET_CLASS(o) \ 46 (G_TYPE_INSTANCE_GET_CLASS ((o), CAJA_TYPE_FILE_CONFLICT_DIALOG,\ 47 CajaFileConflictDialogClass)) 48 49 typedef struct _CajaFileConflictDialog CajaFileConflictDialog; 50 typedef struct _CajaFileConflictDialogClass CajaFileConflictDialogClass; 51 typedef struct _CajaFileConflictDialogPrivate CajaFileConflictDialogPrivate; 52 53 struct _CajaFileConflictDialog 54 { 55 GtkDialog parent; 56 CajaFileConflictDialogPrivate *details; 57 }; 58 59 struct _CajaFileConflictDialogClass 60 { 61 GtkDialogClass parent_class; 62 }; 63 64 enum 65 { 66 CONFLICT_RESPONSE_SKIP = 1, 67 CONFLICT_RESPONSE_REPLACE = 2, 68 CONFLICT_RESPONSE_RENAME = 3, 69 }; 70 71 GType caja_file_conflict_dialog_get_type (void) G_GNUC_CONST; 72 73 GtkWidget* caja_file_conflict_dialog_new (GtkWindow *parent, 74 GFile *source, 75 GFile *destination, 76 GFile *dest_dir); 77 char* caja_file_conflict_dialog_get_new_name (CajaFileConflictDialog *dialog); 78 gboolean caja_file_conflict_dialog_get_apply_to_all (CajaFileConflictDialog *dialog); 79 80 #endif /* CAJA_FILE_CONFLICT_DIALOG_H */ 81