1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 /* 3 * Libbrasero-burn 4 * Copyright (C) Philippe Rouquier 2005-2009 <bonfire-app@wanadoo.fr> 5 * 6 * Libbrasero-burn is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * The Libbrasero-burn authors hereby grant permission for non-GPL compatible 12 * GStreamer plugins to be used and distributed together with GStreamer 13 * and Libbrasero-burn. This permission is above and beyond the permissions granted 14 * by the GPL license by which Libbrasero-burn is covered. If you modify this code 15 * you may extend this exception to your version of the code, but you are not 16 * obligated to do so. If you do not wish to do so, delete this exception 17 * statement from your version. 18 * 19 * Libbrasero-burn is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * GNU Library General Public License for more details. 23 * 24 * You should have received a copy of the GNU General Public License 25 * along with this program; if not, write to: 26 * The Free Software Foundation, Inc., 27 * 51 Franklin Street, Fifth Floor 28 * Boston, MA 02110-1301, USA. 29 */ 30 31 #ifndef BRASERO_TOOL_DIALOG_H 32 #define BRASERO_TOOL_DIALOG_H 33 34 #include <glib.h> 35 #include <glib-object.h> 36 37 #include <gtk/gtk.h> 38 39 #include <brasero-medium.h> 40 #include <brasero-medium-monitor.h> 41 42 #include <brasero-session.h> 43 #include <brasero-burn.h> 44 45 46 G_BEGIN_DECLS 47 48 #define BRASERO_TYPE_TOOL_DIALOG (brasero_tool_dialog_get_type ()) 49 #define BRASERO_TOOL_DIALOG(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), BRASERO_TYPE_TOOL_DIALOG, BraseroToolDialog)) 50 #define BRASERO_TOOL_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), BRASERO_TYPE_TOOL_DIALOG, BraseroToolDialogClass)) 51 #define BRASERO_IS_TOOL_DIALOG(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), BRASERO_TYPE_TOOL_DIALOG)) 52 #define BRASERO_IS_TOOL_DIALOG_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), BRASERO_TYPE_TOOL_DIALOG)) 53 #define BRASERO_TOOL_DIALOG_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), BRASERO_TYPE_TOOL_DIALOG, BraseroToolDialogClass)) 54 55 typedef struct _BraseroToolDialog BraseroToolDialog; 56 typedef struct _BraseroToolDialogClass BraseroToolDialogClass; 57 58 struct _BraseroToolDialog { 59 GtkDialog parent; 60 }; 61 62 struct _BraseroToolDialogClass { 63 GtkDialogClass parent_class; 64 65 /* Virtual functions */ 66 gboolean (*activate) (BraseroToolDialog *dialog, 67 BraseroMedium *medium); 68 gboolean (*cancel) (BraseroToolDialog *dialog); 69 void (*medium_changed) (BraseroToolDialog *dialog, 70 BraseroMedium *medium); 71 }; 72 73 GType brasero_tool_dialog_get_type (void); 74 75 gboolean 76 brasero_tool_dialog_cancel (BraseroToolDialog *dialog); 77 78 gboolean 79 brasero_tool_dialog_set_medium (BraseroToolDialog *dialog, 80 BraseroMedium *medium); 81 82 G_END_DECLS 83 84 #endif /* BRASERO_TOOL_DIALOG_H */ 85