GnuCash c935c2f+
Loading...
Searching...
No Matches
Enumerations | Functions
gnc-backend-xml.h File Reference

load and save data to files More...

#include <qof.h>
#include <gmodule.h>

Go to the source code of this file.

Enumerations

enum  XMLFileRetentionType { XML_RETAIN_NONE , XML_RETAIN_DAYS , XML_RETAIN_ALL }
 
enum  QofBookFileType {
  GNC_BOOK_NOT_OURS , GNC_BOOK_BIN_FILE , GNC_BOOK_XML1_FILE , GNC_BOOK_XML2_FILE ,
  GNC_BOOK_XML2_FILE_NO_ENCODING , GNC_BOOK_POST_XML2_0_0_FILE
}
 

Functions

void gnc_module_init_backend_xml (void)
 Initialization function which can be used when this module is statically linked into the application.
 
G_MODULE_EXPORT void qof_backend_module_init (void)
 This is the standardized initialization function of a qof_backend GModule, but compiling this can be disabled by defining GNC_NO_LOADABLE_MODULES.
 

Detailed Description

load and save data to files

Author
Copyright (c) 2000 Gnumatic Inc.
Copyright (c) 2002 Derek Atkins warlo.nosp@m.rd@M.nosp@m.IT.ED.nosp@m.U
Copyright (c) 2003 Linas Vepstas linas.nosp@m.@lin.nosp@m.as.or.nosp@m.g

This file implements the top-level QofBackend API for saving/ restoring data to/from an ordinary Unix filesystem file.

Definition in file gnc-backend-xml.h.

Enumeration Type Documentation

◆ QofBookFileType

enum QofBookFileType

Definition at line 45 of file gnc-backend-xml.h.

46{
47 GNC_BOOK_NOT_OURS,
48 GNC_BOOK_BIN_FILE,
49 GNC_BOOK_XML1_FILE,
50 GNC_BOOK_XML2_FILE,
51 GNC_BOOK_XML2_FILE_NO_ENCODING,
52 GNC_BOOK_POST_XML2_0_0_FILE
53} QofBookFileType;

◆ XMLFileRetentionType

enum XMLFileRetentionType

Definition at line 37 of file gnc-backend-xml.h.

38{
39 XML_RETAIN_NONE,
40 XML_RETAIN_DAYS,
41 XML_RETAIN_ALL
42}

Function Documentation

◆ gnc_module_init_backend_xml()

void gnc_module_init_backend_xml ( void  )

Initialization function which can be used when this module is statically linked into the application.

Definition at line 194 of file gnc-backend-xml.cpp.

195{
196 const char* name {"GnuCash File Backend Version 2"};
197 auto prov = QofBackendProvider_ptr(new QofXmlBackendProvider{name, "xml"});
198
199 qof_backend_register_provider(std::move(prov));
200 prov = QofBackendProvider_ptr(new QofXmlBackendProvider{name, "file"});
201 qof_backend_register_provider(std::move(prov));
202
203 /* And the business objects */
204 business_core_xml_init ();
205}

◆ qof_backend_module_init()

G_MODULE_EXPORT void qof_backend_module_init ( void  )

This is the standardized initialization function of a qof_backend GModule, but compiling this can be disabled by defining GNC_NO_LOADABLE_MODULES.

This one simply calls gnc_module_init_backend_file().

Definition at line 1183 of file gnc-backend-dbi.cpp.

1184{
1185 gnc_module_init_backend_dbi ();
1186}