GnuCash  2.6.18
Data Fields

Pseudo-object providing an interface between the engine and a persistant data store (e.g. a server, a database, or a file). More...

Data Fields

void(* session_begin )(QofBackend *be, QofSession *session, const char *book_id, gboolean ignore_lock, gboolean create, gboolean force)
 
void(* session_end )(QofBackend *)
 
void(* destroy_backend )(QofBackend *)
 
void(* load )(QofBackend *, QofBook *, QofBackendLoadType)
 
void(* begin )(QofBackend *, QofInstance *)
 
void(* commit )(QofBackend *, QofInstance *)
 
void(* rollback )(QofBackend *, QofInstance *)
 
gpointer(* compile_query )(QofBackend *, QofQuery *)
 
void(* free_query )(QofBackend *, gpointer)
 
void(* run_query )(QofBackend *, gpointer)
 
void(* sync )(QofBackend *, QofBook *)
 
void(* safe_sync )(QofBackend *, QofBook *)
 
void(* load_config )(QofBackend *, KvpFrame *)
 
KvpFrame *(* get_config )(QofBackend *)
 
gboolean(* events_pending )(QofBackend *)
 
gboolean(* process_events )(QofBackend *)
 
QofBePercentageFunc percentage
 
QofBackendProvider * provider
 
QofBackendError last_err
 
char * error_msg
 
KvpFrame * backend_configuration
 
gint config_count
 
char * fullpath
 
void(* price_lookup )(QofBackend *, gpointer)
 
void(* export_fn )(QofBackend *, QofBook *)
 

Detailed Description

Pseudo-object providing an interface between the engine and a persistant data store (e.g. a server, a database, or a file).

There are no backend functions that are 'public' to users of the engine. The backend can, however, report errors to the GUI & other front-end users.

Definition at line 292 of file qofbackend-p.h.

Field Documentation

◆ export_fn

void(* QofBackend::export_fn) (QofBackend *, QofBook *)
Deprecated:
Export should really NOT be here, but is left here for now. I'm not sure where this should be going to. It should be removed ASAP. This is a temporary hack-around until period-closing is fully implemented.

Definition at line 351 of file qofbackend-p.h.

◆ fullpath

char* QofBackend::fullpath

Each backend resolves a fully-qualified file path. This holds the filepath and communicates it to the frontends.

Definition at line 334 of file qofbackend-p.h.

◆ price_lookup

void(* QofBackend::price_lookup) (QofBackend *, gpointer)
Deprecated:
price_lookup should be removed during the redesign of the SQL backend... prices can now be queried using the generic query mechanism.

Note the correct signature for this call is void (*price_lookup) (QofBackend *, GNCPriceLookup *); we use gpointer to avoid an unwanted include file dependency.

Definition at line 344 of file qofbackend-p.h.


The documentation for this struct was generated from the following file: