Definition in file pilot-qof.c.
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <regex.h>
#include <ctype.h>
#include <glib.h>
#include <glib/gi18n.h>
#include <glib/gprintf.h>
#include <qof.h>
#include <popt.h>
#include "pi-source.h"
#include "pi-debug.h"
#include "pi-socket.h"
#include "pi-file.h"
#include "pi-header.h"
#include "pi-util.h"
#include "qof-main.h"
#include "pilot-qof.h"
#include "pilot-todo.h"
#include "qof-address.h"
#include "qof-datebook.h"
#include "qof-expenses.h"
Go to the source code of this file.
Defines | |
#define | _GNU_SOURCE |
#define | ARGUMENT_BAD_OPTION 17227 |
#define | EXCLUDE_REPEATER_SQL |
#define | ENUM_LIST_Q(_) |
Enumerations | |
enum | qof_op_type { qof_op_noop = 0, qof_op_offline, qof_op_list, qof_op_hotsync, qof_op_empty, qof_op_category, qof_op_database, qof_op_time, qof_op_exclude, qof_op_sql, qof_op_sql_file, qof_op_write, qof_op_upload, qof_op_explain, qof_op_vers, qof_op_compress, qof_op_debug, qof_op_inv_city, qof_op_inv_vendor, qof_op_use_locale } |
enum | plu_findcategory_flags_t { PLU_CAT_NOFLAGS = 0, PLU_CAT_CASE_INSENSITIVE = 0x0001, PLU_CAT_DEFAULT_UNFILED = 0x0002, PLU_CAT_MATCH_NUMBERS = 0x0004, PLU_CAT_WARN_UNKNOWN = 0x0008 } |
Functions | |
static PQContext * | pilot_qof_create (void) |
PQContext * | pilot_qof_init (void) |
Register all QOF objects. | |
static gint | plu_connect (gchar *plu_port, gint plu_quiet) |
static gint | pq_findcategory (PQContext *context, const gchar *name, gint flags) |
static void | pilot_entity_free (QofEntity *ent, gpointer user_data) |
static void | pilot_object_free (QofObject *obj, gpointer user_data) |
static void | pilot_qof_free (PQContext *data) |
static void | write_ent_cb (QofEntity *ent, gpointer user_data) |
static void | pilot_database_open (QofObject *obj, gpointer user_data) |
static void | pilot_error (PQContext *context, const gchar *message) |
static void | find_invoice_contact (QofEntity *ent, gpointer data) |
static void | check_invoice_handler (PQContext *context) |
void | qof_cmd_hotsync (PQContext *context) |
Activate/HotSync and query the Palm, ignoring the offline storage. | |
static void | pq_invoice_xmlfile (PQContext *context) |
int | main (int argc, const char *argv[]) |
Packing, unpacking and freeing wrapped objects. | |
QOF is wrapped around existing pilot-link structs. These objects have their own methods for writing to and reading from the Palm databases. Objects are packed before being written to the Palm, and unpacked to create new objects when the database is read. Packing and unpacking are only used when connecting to the Palm.
The free_ent_func routines are used whenever any QofBook created from this framework is closed. | |
void | pilot_qof_pack (QofEntity *ent, gpointer user_data) |
Pack this object. | |
void | pilot_qof_unpack (QofEntity *ent, gpointer user_data) |
Unpack this object. | |
void | pilot_app_unpack (QofIdTypeConst e_type, gpointer user_data) |
Unpack the database information. | |
void | pilot_entity_finaliser (QofBook *book, gpointer key, gpointer data) |
Free the wrapped object. | |
gboolean | pilot_qof_pack_register (const PQPack *p) |
Shamelessly copied from QOF. | |
const PQPack * | pilot_qof_pack_lookup (QofIdTypeConst object_type) |
provide for looking up an object | |
Variables | |
static QofLogModule | log_module = "pilotqof-cli" |
static GList * | pilot_modules = NULL |
static const gchar * | env_pilotport = "PILOTPORT" |