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

querydata.h File Reference

Interface to query data module. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  _queryData
 Data for the Query rename dialog. More...


Typedefs

typedef _queryData QueryData
 Data for the Query rename dialog.


Functions

QueryDataquerydata_new ()
 Allocate a new QueryData structure.

QueryDataquerydata_free (QueryData *qd)
 Free a QueryData structure.

char * querydata_get_filename (QueryData *qd)
 Get the filename.

void querydata_set_changed (QueryData *qd, int c)
 Set the value of the 'changed' flag.

int querydata_is_changed (QueryData *qd)
 Check if the query has been changed since the last save.

void querydata_set_filename (QueryData *qd, char *fn)
 Allocate a new QueryData structure.

void querydata_set_unchanged (QueryData *qd)
 Mark a query as unchanged.


Detailed Description

Interface to query data module.

Author:
Lionel ULMER , Darryl Luff

Definition in file querydata.h.


Function Documentation

QueryData* querydata_free QueryData   qd
 

Free a QueryData structure.

Parameters:
qd  The query to free.
Returns:
Always returns NULL.

Definition at line 32 of file querydata.c.

References _queryData::filename.

char* querydata_get_filename QueryData   qd
 

Get the filename.

Parameters:
qd  The QueryData structure to access.
Returns:
The filename, or NULL.

Definition at line 43 of file querydata.c.

References _queryData::filename.

Referenced by query_save_dialog_create().

int querydata_is_changed QueryData   qd
 

Check if the query has been changed since the last save.

Parameters:
qd  The query to check.
Returns:
Non-zero if the query has been changed.

Definition at line 53 of file querydata.c.

References _queryData::changed.

QueryData* querydata_new  
 

Allocate a new QueryData structure.

Returns:
A pointer to the bew QueryData structure.

Definition at line 86 of file querydata.c.

Referenced by query_add(), and query_get_querydata().

void querydata_set_changed QueryData   qd,
int    c
 

Set the value of the 'changed' flag.

Parameters:
qd  The query to update.
c  The new value. Zero flags no change. Non-zero flags a change.

Definition at line 93 of file querydata.c.

References _queryData::changed.

void querydata_set_filename QueryData   qd,
char *    fn
 

Allocate a new QueryData structure.

Returns:
The QueryData pointer.

Definition at line 71 of file querydata.c.

References _queryData::filename.

Referenced by gui_load_query_from_file(), on_queryImportDlgOkBtn_clicked(), and on_querySaveDlgOkBtn_clicked().

void querydata_set_unchanged QueryData   qd
 

Mark a query as unchanged.

Parameters:
qd  The query to mark.

Definition at line 62 of file querydata.c.

References _queryData::changed.

Referenced by gui_load_query_from_file(), gui_set_query_text(), and on_queryImportDlgOkBtn_clicked().


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