1
.TH "QofMainContext" 3 "9 Sep 2007" "Version 0.1.3" "gpe-expenses" \" -*- nroff -*-
9
\fC#include <qof-main.h>\fP
11
.SH "Detailed Description"
13
The qof-main context struct.
15
Intended as a core type for QOF-based CLI programs, wrap your own context struct around qof_main_context
17
Definition at line 212 of file qof-main.h.
22
.RI "gchar * \fBfilename\fP"
25
.RI "gchar * \fBwrite_file\fP"
28
.RI "gchar * \fBinput_file\fP"
31
.RI "gchar * \fBsql_file\fP"
34
.RI "gchar * \fBsql_str\fP"
37
.RI "gchar * \fBdatabase\fP"
40
.RI "gchar * \fBexclude\fP"
43
.RI "gchar * \fBcategory\fP"
46
.RI "QofTime * \fBmin_qt\fP"
49
.RI "QofTime * \fBmax_qt\fP"
52
.RI "QofSession * \fBinput_session\fP"
55
.RI "QofSession * \fBexport_session\fP"
58
.RI "gboolean \fBerror\fP"
61
.RI "QofQuery * \fBquery\fP"
64
.RI "GList * \fBsql_list\fP"
67
.RI "gint64 \fBgz_level\fP"
70
.RI "const gchar * \fBencoding\fP"
73
.RI "gint64 \fBconvert\fP"
76
.RI "QofType \fBparam_type\fP"
79
.SH "Field Documentation"
81
.SS "gchar* \fBQofMainContext::filename\fP"
83
Input filename containing (usually) QSF XML data, if any.
85
Definition at line 215 of file qof-main.h.
87
Referenced by qof_cmd_xmlfile(), and qof_main_free().
88
.SS "gchar* \fBQofMainContext::write_file\fP"
90
Export filename, if any.
92
Definition at line 217 of file qof-main.h.
94
Referenced by qof_cmd_xmlfile(), qof_main_free(), and qof_mod_write().
95
.SS "gchar* \fBQofMainContext::input_file\fP"
97
File containing data to upload, if any.
99
Definition at line 219 of file qof-main.h.
100
.SS "gchar* \fBQofMainContext::sql_file\fP"
104
Definition at line 221 of file qof-main.h.
106
Referenced by qof_main_free(), and qof_mod_sql_file().
107
.SS "gchar* \fBQofMainContext::sql_str\fP"
109
The current SQL, overwritten each iteration if using a file.
111
Definition at line 224 of file qof-main.h.
113
Referenced by qof_main_moderate_query(), qof_main_run_sql(), and qof_mod_sql().
114
.SS "gchar* \fBQofMainContext::database\fP"
116
The database to include with -d.
118
Definition at line 226 of file qof-main.h.
120
Referenced by qof_cmd_explain(), qof_cmd_xmlfile(), qof_main_free(), qof_main_moderate_query(), and qof_mod_database().
121
.SS "gchar* \fBQofMainContext::exclude\fP"
123
The database to exclude with -e.
125
Definition at line 228 of file qof-main.h.
127
Referenced by qof_cmd_xmlfile(), qof_main_moderate_query(), qof_mod_exclude(), and select_cb().
128
.SS "gchar* \fBQofMainContext::category\fP"
130
The category to include with -c.
132
Definition at line 230 of file qof-main.h.
134
Referenced by build_database_list(), qof_main_free(), and qof_mod_category().
135
.SS "QofTime* \fBQofMainContext::min_qt\fP"
137
Holds the converted -t field - minimum. Matches objects above min.
139
Definition at line 233 of file qof-main.h.
141
Referenced by build_database_list(), find_param_cb(), and qof_mod_time().
142
.SS "QofTime* \fBQofMainContext::max_qt\fP"
144
Holds the converted -t field - maximum. Matches objects below max.
146
Definition at line 236 of file qof-main.h.
148
Referenced by find_param_cb(), and qof_mod_time().
149
.SS "QofSession* \fBQofMainContext::input_session\fP"
153
Definition at line 238 of file qof-main.h.
155
Referenced by qof_cmd_xmlfile(), qof_main_run_query(), and qof_main_run_sql().
156
.SS "QofSession* \fBQofMainContext::export_session\fP"
158
The query results session, for STDOUT or -w.
160
Definition at line 240 of file qof-main.h.
162
Referenced by qof_cmd_xmlfile(), qof_main_run_query(), qof_mod_compression(), qof_mod_convert_deprecated(), and qof_mod_encoding().
163
.SS "gboolean \fBQofMainContext::error\fP"
165
general error, abort.
167
Definition at line 242 of file qof-main.h.
169
Referenced by qof_cmd_explain().
170
.SS "QofQuery* \fBQofMainContext::query\fP"
172
The current QofQuery, converted from QofSqlQuery
174
Definition at line 244 of file qof-main.h.
176
Referenced by build_database_list(), find_param_cb(), qof_main_moderate_query(), qof_main_run_query(), and qof_main_run_sql().
177
.SS "GList* \fBQofMainContext::sql_list\fP"
179
List of sql commands from a file.
181
Definition at line 246 of file qof-main.h.
183
Referenced by qof_main_moderate_query(), and qof_mod_sql_file().
184
.SS "gint64 \fBQofMainContext::gz_level\fP"
186
Use compression (>0 <=9) or not (0)
188
Definition at line 248 of file qof-main.h.
190
Referenced by option_cb(), qof_cmd_xmlfile(), and qof_mod_compression().
191
.SS "const gchar* \fBQofMainContext::encoding\fP"
193
The encoding string to pass to the backend.
195
Definition at line 250 of file qof-main.h.
197
Referenced by option_cb(), qof_cmd_xmlfile(), and qof_mod_encoding().
198
.SS "gint64 \fBQofMainContext::convert\fP"
200
If the application needs to read QOF_TYPE_DATE data records, set this to non-zero.
202
Definition at line 253 of file qof-main.h.
204
Referenced by option_cb(), and qof_mod_convert_deprecated().
205
.SS "QofType \fBQofMainContext::param_type\fP"
207
The current parameter type in the query.
209
Definition at line 255 of file qof-main.h.
211
Referenced by build_database_list(), and find_param_cb().
215
Generated automatically by Doxygen for gpe-expenses from the source code.