gpe-expenses  0.1.9
Data Structures | Macros | Typedefs | Functions
qof-main.h File Reference

Common functions for the QOF external framework. More...

Go to the source code of this file.

Data Structures

struct  QofMain_s
 The qof-main context struct. More...
 

Macros

#define ERR_INDENT   strlen(PACKAGE) + 2
 Indent error messages as paragraphs.
 
#define QOF_DATE_STRING_LENGTH   MAX_DATE_LENGTH
 
#define QOF_MAIN_CLI   "QOF-mod-command-line"
 
#define CATEGORY_NAME   "category"
 Category name. More...
 
#define QSF_COMPRESS   "compression_level"
 
#define QSF_ENCODING   "encoding_string"
 
#define QSF_DATE_CONVERT   "convert_date_to_time"
 
#define QOF_SQL_SUPPORTED   "^SELECT|INSERT"
 
#define QOF_CLI_OPTIONS
 Common QOF CLI options. More...
 
#define QOF_MAIN_OP
 
#define QOF_OP_VARS
 
#define QOF_OP_INIT
 

Typedefs

typedef struct QofMain_s QofMainContext
 The qof-main context struct. More...
 

Functions

void qof_main_wrap_line (FILE *fp, gint indent, const gchar *template_str,...) __attribute__((format(printf
 Wrap long lines in popt-style. More...
 
GSListqof_main_get_param_list (QofIdTypeConst object_type, QofType param_type)
 List of all parameters for this object of one QOF type. More...
 
glong qof_mod_get_local_offset (void)
 Get the gmt_off offset for this locale. More...
 
void qof_main_show_error (QofSession *session)
 Output error messages from QOF. More...
 
void qof_main_free (QofMainContext *context)
 
void qof_cmd_xmlfile (QofMainContext *context)
 
void qof_cmd_list (void)
 Lists all databases supported by the current QOF framework. More...
 
void qof_mod_category (const gchar *category, QofMainContext *data)
 Shorthand to only query objects that are set to the specified category. More...
 
void qof_mod_database (const gchar *database, QofMainContext *data)
 Shorthand to only query objects within one specific supported database. More...
 
void qof_mod_time (const gchar *date_time, QofMainContext *data)
 Shorthand to only query objects that contain the specified date. More...
 
void qof_mod_exclude (const gchar *exclude, QofMainContext *data)
 Shorthand to exclude a supported database from the query. More...
 
void qof_mod_sql (const gchar *sql_query, QofMainContext *data)
 Specify a SQL query on the command line. More...
 
void qof_mod_sql_file (const gchar *sql_file, QofMainContext *data)
 Specify one or more SQL queries contained in a file. More...
 
void qof_mod_write (const gchar *write_file, QofMainContext *data)
 Write the results of any query to the file. More...
 
void qof_mod_compression (gint64 gz_level, QofMainContext *context)
 
void qof_mod_encoding (const gchar *encoding, QofMainContext *context)
 
void qof_mod_convert_deprecated (gint64 convert, QofMainContext *context)
 
void qof_main_moderate_query (QofMainContext *context)
 Assemble the components of the query. More...
 
void qof_cmd_explain (QofMainContext *context)
 
void qof_main_select (QofMainContext *context)
 

Detailed Description

Common functions for the QOF external framework.

Author
Copyright (c) 2005 Neil Williams linux.nosp@m.@cod.nosp@m.ehelp.nosp@m..co..nosp@m.uk

Definition in file qof-main.h.