Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

guiapi.h

Go to the documentation of this file.
00001 
00007 /* GtkSQL -- an interactive graphical query tool for PostgreSQL
00008  * Copyright (C) 2002 Darryl Luff
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00023  */
00024 
00025 #ifndef __GUIAPI_H
00026 #define __GUIAPI_H
00027 
00028 #include "gui_common.h"
00029 #include "dbapi.h"
00030 
00032 void gui_add_query(void);
00033 
00035 char *gui_get_connection_url(void);
00036 
00038 int gui_get_query_count(void);
00039 
00041 int gui_get_result_columns(void);
00042 
00044 char *gui_get_result_field(int row, int column);
00045 
00047 int gui_get_result_rows(void);
00048 
00050 void gui_init(int argc, char **argv);
00051 
00053 int gui_connection_ok(void);
00054 
00056 void gui_delete_all_queries(void);
00057 
00059 void gui_disconnect(void);
00060 
00062 DBConnection *gui_get_connection(void);
00063 
00065 void gui_load_query_from_file(char *filename);
00066 
00068 int gui_run(void);
00069 
00071 void gui_set_connection(DBConnection * con);
00072 
00074 void gui_send_query();
00075 
00077 void gui_set_query_name(gchar *name);
00078 
00080 void gui_set_query_text(char *txt);
00081 
00083 #endif

Generated on Sun May 9 19:19:16 2004 for GtkSQL by doxygen1.2.18