1 /* 2 * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org> 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 */ 18 19 20 #ifndef __CONNECTION_BINDING_PROPERTIES_H_ 21 #define __CONNECTION_BINDING_PROPERTIES_H_ 22 23 #include <gtk/gtk.h> 24 #include "browser-virtual-connection.h" 25 #include "decl.h" 26 27 G_BEGIN_DECLS 28 29 #define CONNECTION_TYPE_BINDING_PROPERTIES (connection_binding_properties_get_type()) 30 #define CONNECTION_BINDING_PROPERTIES(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, connection_binding_properties_get_type(), ConnectionBindingProperties) 31 #define CONNECTION_BINDING_PROPERTIES_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, connection_binding_properties_get_type (), ConnectionBindingPropertiesClass) 32 #define CONNECTION_IS_BINDING_PROPERTIES(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, connection_binding_properties_get_type ()) 33 34 typedef struct _ConnectionBindingProperties ConnectionBindingProperties; 35 typedef struct _ConnectionBindingPropertiesPrivate ConnectionBindingPropertiesPrivate; 36 typedef struct _ConnectionBindingPropertiesClass ConnectionBindingPropertiesClass; 37 38 /* struct for the object's data */ 39 struct _ConnectionBindingProperties 40 { 41 GtkDialog object; 42 ConnectionBindingPropertiesPrivate *priv; 43 }; 44 45 /* struct for the object's class */ 46 struct _ConnectionBindingPropertiesClass 47 { 48 GtkDialogClass parent_class; 49 }; 50 51 GType connection_binding_properties_get_type (void) G_GNUC_CONST; 52 GtkWidget *connection_binding_properties_new_create (BrowserConnection *bcnc); 53 54 GtkWidget *connection_binding_properties_new_edit (const BrowserVirtualConnectionSpecs *specs); 55 56 const BrowserVirtualConnectionSpecs *connection_binding_properties_get_specs (ConnectionBindingProperties *prop); 57 58 G_END_DECLS 59 60 #endif 61