gpe-expenses  0.1.9
Macros | Functions | Variables
qof-main.c File Reference

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

#include "config.h"
#include <glib.h>
#include <glib/gi18n.h>
#include <glib/gprintf.h>
#include <qof.h>
#include <stdlib.h>
#include <stdio.h>
#include <regex.h>
#include <time.h>
#include "qof-main.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 
#define MAX_LINE   79
 

Functions

void qof_main_wrap_line (FILE *fp, gint indent, const gchar *template_str,...) __attribute__((format(printf
 Wrap long lines in popt-style. More...
 
static void qof_main_run_sql (QofMainContext *context)
 
static void qof_main_run_query (QofMainContext *context)
 
void qof_main_free (QofMainContext *context)
 
static void find_param_cb (QofParam *param, gpointer user_data)
 
static void build_database_list (QofIdTypeConst obj_type, QofMainContext *context)
 
static void select_cb (QofObject *obj, gpointer data)
 
void qof_main_moderate_query (QofMainContext *context)
 Assemble the components of the query. More...
 
static void option_cb (QofBackendOption *option, gpointer data)
 
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_cmd_xmlfile (QofMainContext *context)
 
static void qof_main_list (QofObject *obj, gpointer G_GNUC_UNUSED data)
 
void qof_main_select (QofMainContext *context)
 
void qof_cmd_list (void)
 Lists all databases supported by the current QOF framework. More...
 
static void explain_cb (QofParam *param, gpointer G_GNUC_UNUSED user_data)
 
void qof_cmd_explain (QofMainContext *context)
 
void qof_mod_category (const gchar *category, QofMainContext *data)
 Shorthand to only query objects that are set to the specified category. More...
 
glong qof_mod_get_local_offset (void)
 Get the gmt_off offset for this locale. 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_main_show_error (QofSession *session)
 Output error messages from QOF. More...
 

Variables

static QofLogModule log_module = "QOF-mod-command-line"
 

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.c.