1 /*
2  * Copyright (C) 2009 - 2011 Vivien Malerba <malerba@gnome-db.org>
3  * Copyright (C) 2011 Murray Cumming <murrayc@murrayc.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18  * Boston, MA  02110-1301, USA.
19  */
20 
21 #ifndef __GDAUI_SERVER_OPERATION__
22 #define __GDAUI_SERVER_OPERATION__
23 
24 #include <gtk/gtk.h>
25 #include <libgda/libgda.h>
26 #ifdef HAVE_LIBGLADE
27 #include <glade/glade.h>
28 #endif
29 
30 G_BEGIN_DECLS
31 
32 #define GDAUI_TYPE_SERVER_OPERATION          (gdaui_server_operation_get_type())
33 #define GDAUI_SERVER_OPERATION(obj)          G_TYPE_CHECK_INSTANCE_CAST (obj, gdaui_server_operation_get_type(), GdauiServerOperation)
34 #define GDAUI_SERVER_OPERATION_CLASS(klass)  G_TYPE_CHECK_CLASS_CAST (klass, gdaui_server_operation_get_type (), GdauiServerOperationClass)
35 #define GDAUI_IS_SERVER_OPERATION(obj)       G_TYPE_CHECK_INSTANCE_TYPE (obj, gdaui_server_operation_get_type ())
36 
37 
38 typedef struct _GdauiServerOperation      GdauiServerOperation;
39 typedef struct _GdauiServerOperationClass GdauiServerOperationClass;
40 typedef struct _GdauiServerOperationPriv  GdauiServerOperationPriv;
41 
42 /* struct for the object's data */
43 struct _GdauiServerOperation
44 {
45 	GtkBox                     object;
46 	GdauiServerOperationPriv *priv;
47 };
48 
49 /* struct for the object's class */
50 struct _GdauiServerOperationClass
51 {
52 	GtkBoxClass                parent_class;
53 };
54 
55 /**
56  * SECTION:gdaui-server-operation
57  * @short_description: Enter information to perform a DDL query
58  * @title: GdauiServerOperation
59  * @stability: Stable
60  * @Image:
61  * @see_also: See the #GdaServerOperation which actually holds the information to perform the action
62  *
63  * The #GdauiServerOperation widget allows the user to enter information to perform
64  * Data Definition queries (all queries which are not SELECT, INSERT, UPDATE or DELETE).
65  * For example the figure shows a #GdauiServerOperation widget set to create an index in an
66  * SQLite database.
67  */
68 
69 GType             gdaui_server_operation_get_type      (void) G_GNUC_CONST;
70 GtkWidget        *gdaui_server_operation_new           (GdaServerOperation *op);
71 GtkWidget        *gdaui_server_operation_new_in_dialog (GdaServerOperation *op, GtkWindow *parent,
72 							   const gchar *title, const gchar *header);
73 
74 G_END_DECLS
75 
76 #endif
77 
78 
79 
80