Rename qofbackend-p.h and qofbackend.cpp

To qof-backend.hpp and qof-backend.cpp respectively, to reflect that they
implement the QofBackend class (which won’t be a class until a future commit).
This commit is contained in:
John Ralls 2016-11-27 14:12:43 -08:00
parent eace625007
commit 46ce3f3745
19 changed files with 20 additions and 22 deletions

View File

@ -482,7 +482,7 @@ src/libqof/qof/gnc-timezone.cpp
src/libqof/qof/guid.cpp src/libqof/qof/guid.cpp
src/libqof/qof/kvp_frame.cpp src/libqof/qof/kvp_frame.cpp
src/libqof/qof/kvp-value.cpp src/libqof/qof/kvp-value.cpp
src/libqof/qof/qofbackend.cpp src/libqof/qof/qof-backend.cpp
src/libqof/qof/qofbook.cpp src/libqof/qof/qofbook.cpp
src/libqof/qof/qofchoice.cpp src/libqof/qof/qofchoice.cpp
src/libqof/qof/qofclass.cpp src/libqof/qof/qofclass.cpp

View File

@ -27,13 +27,14 @@
extern "C" extern "C"
{ {
#include <qof.h> #include <qof.h>
#include <qofbackend-p.h>
#include <Account.h> #include <Account.h>
} }
#include <memory> #include <memory>
#include <exception> #include <exception>
#include <sstream> #include <sstream>
#include <vector> #include <vector>
#include <qof-backend.hpp>
class GncSqlColumnTableEntry; class GncSqlColumnTableEntry;
using GncSqlColumnTableEntryPtr = std::shared_ptr<GncSqlColumnTableEntry>; using GncSqlColumnTableEntryPtr = std::shared_ptr<GncSqlColumnTableEntry>;
using EntryVec = std::vector<GncSqlColumnTableEntryPtr>; using EntryVec = std::vector<GncSqlColumnTableEntryPtr>;

View File

@ -27,7 +27,6 @@
extern "C" extern "C"
{ {
#include <qof.h> #include <qof.h>
#include "qofbackend-p.h"
} }
#include <memory> #include <memory>
#include <vector> #include <vector>

View File

@ -78,7 +78,7 @@ extern "C"
#include <gnc-backend-prov.hpp> #include <gnc-backend-prov.hpp>
#include "gnc-backend-xml.h" #include "gnc-backend-xml.h"
#include <qofbackend-p.h> #include <qof-backend.hpp>
#include "gnc-xml-backend.hpp" #include "gnc-xml-backend.hpp"
#include "gnc-xml-helper.h" #include "gnc-xml-helper.h"
#include "io-gncxml-v2.h" #include "io-gncxml-v2.h"

View File

@ -36,7 +36,6 @@ extern "C"
#endif #endif
#include <qof.h> #include <qof.h>
#include <gmodule.h> #include <gmodule.h>
#include <qofbackend-p.h>
typedef enum typedef enum
{ {
@ -70,6 +69,6 @@ void qof_backend_module_init (void);
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#include <qof-backend.hpp>
#endif #endif
#endif /* GNC_BACKEND_XML_H_ */ #endif /* GNC_BACKEND_XML_H_ */

View File

@ -21,10 +21,10 @@
extern "C" extern "C"
{ {
#include <qof.h> #include <qof.h>
#include <qofbackend-p.h>
} }
#include <string> #include <string>
#include <qof-backend.hpp>
class GncXmlBackend class GncXmlBackend
{ {

View File

@ -35,7 +35,6 @@ extern "C"
#include "../gnc-lot.h" #include "../gnc-lot.h"
#include "../gnc-event.h" #include "../gnc-event.h"
#include <qof.h> #include <qof.h>
#include <qofbackend-p.h>
#ifdef HAVE_GLIB_2_38 #ifdef HAVE_GLIB_2_38
#define _Q "'" #define _Q "'"
@ -50,6 +49,7 @@ static const gchar *suitename = "/engine/Transaction";
void test_suite_transaction ( void ); void test_suite_transaction ( void );
} }
#include <qof-backend.hpp>
#include <kvp_frame.hpp> #include <kvp_frame.hpp>
/* Copied from Transaction.c. Changing these values will break /* Copied from Transaction.c. Changing these values will break

View File

@ -14,7 +14,7 @@ SET (gnc_qof_HEADERS
qof/kvp_frame.hpp qof/kvp_frame.hpp
qof/kvp-value.hpp qof/kvp-value.hpp
qof/qof.h qof/qof.h
qof/qofbackend-p.h qof/qof-backend.hpp
qof/qofbackend.h qof/qofbackend.h
qof/qofbook.h qof/qofbook.h
qof/qofbookslots.h qof/qofbookslots.h
@ -59,7 +59,7 @@ SET (gnc_qof_SOURCES
qof/guid.cpp qof/guid.cpp
qof/kvp_frame.cpp qof/kvp_frame.cpp
qof/kvp-value.cpp qof/kvp-value.cpp
qof/qofbackend.cpp qof/qof-backend.cpp
qof/qofbook.cpp qof/qofbook.cpp
qof/qofchoice.cpp qof/qofchoice.cpp
qof/qofclass.cpp qof/qofclass.cpp

View File

@ -32,7 +32,7 @@ libgnc_qof_la_SOURCES = \
guid.cpp \ guid.cpp \
kvp_frame.cpp \ kvp_frame.cpp \
kvp-value.cpp \ kvp-value.cpp \
qofbackend.cpp \ qof-backend.cpp \
qofbook.cpp \ qofbook.cpp \
qofchoice.cpp \ qofchoice.cpp \
qofclass.cpp \ qofclass.cpp \
@ -61,7 +61,7 @@ qofinclude_HEADERS = \
kvp_frame.hpp \ kvp_frame.hpp \
kvp-value.hpp \ kvp-value.hpp \
qof.h \ qof.h \
qofbackend-p.h \ qof-backend.hpp \
qofbackend.h \ qofbackend.h \
qofbook.h \ qofbook.h \
qofbookslots.h \ qofbookslots.h \

View File

@ -34,10 +34,10 @@ extern "C"
#include <gmodule.h> #include <gmodule.h>
#include <errno.h> #include <errno.h>
#include "qof.h" #include "qof.h"
#include "qofbackend-p.h"
} }
#include "qof-backend.hpp"
G_GNUC_UNUSED static QofLogModule log_module = QOF_MOD_BACKEND; G_GNUC_UNUSED static QofLogModule log_module = QOF_MOD_BACKEND;
#define QOF_CONFIG_DESC "desc" #define QOF_CONFIG_DESC "desc"

View File

@ -52,7 +52,7 @@ extern "C"
#include "qof.h" #include "qof.h"
#include "qofevent-p.h" #include "qofevent-p.h"
#include "qofbackend-p.h" #include "qofbackend.h"
#include "qofbook-p.h" #include "qofbook-p.h"
#include "qofid-p.h" #include "qofid-p.h"
#include "qofobject-p.h" #include "qofobject-p.h"

View File

@ -41,6 +41,7 @@ extern "C"
#include "qofid-p.h" #include "qofid-p.h"
#include "kvp_frame.hpp" #include "kvp_frame.hpp"
#include "qofinstance-p.h" #include "qofinstance-p.h"
#include "qof-backend.hpp"
static QofLogModule log_module = QOF_MOD_ENGINE; static QofLogModule log_module = QOF_MOD_ENGINE;

View File

@ -33,7 +33,7 @@ extern "C"
} }
#include "qof.h" #include "qof.h"
#include "qofbackend-p.h" #include "qof-backend.hpp"
#include "qofbook-p.h" #include "qofbook-p.h"
#include "qofclass-p.h" #include "qofclass-p.h"
#include "qofquery-p.h" #include "qofquery-p.h"

View File

@ -56,7 +56,7 @@ extern "C"
static QofLogModule log_module = QOF_MOD_SESSION; static QofLogModule log_module = QOF_MOD_SESSION;
} //extern 'C' } //extern 'C'
#include "qofbackend-p.h" #include "qof-backend.hpp"
#include "qofsession.hpp" #include "qofsession.hpp"
#include "gnc-backend-prov.hpp" #include "gnc-backend-prov.hpp"

View File

@ -32,7 +32,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "qof.h" #include "qof.h"
#include "qofbackend-p.h" #include "qof-backend.hpp"
G_GNUC_UNUSED static QofLogModule log_module = QOF_MOD_UTIL; G_GNUC_UNUSED static QofLogModule log_module = QOF_MOD_UTIL;

View File

@ -14,9 +14,7 @@ test_qof_SOURCES = \
test-qofbook.c \ test-qofbook.c \
test-qofinstance.cpp \ test-qofinstance.cpp \
test-qofobject.c \ test-qofobject.c \
test-qofsession-old.cpp \
test-qof-string-cache.c \ test-qof-string-cache.c \
test-gnc-guid-old.cpp \
${top_srcdir}/src/test-core/unittest-support.c ${top_srcdir}/src/test-core/unittest-support.c
test_qof_HEADERS = \ test_qof_HEADERS = \

View File

@ -27,8 +27,8 @@ extern "C"
#include <glib.h> #include <glib.h>
#include <unittest-support.h> #include <unittest-support.h>
#include "../qof.h" #include "../qof.h"
#include "../qofbackend-p.h"
} }
#include "../qof-backend.hpp"
#include "../kvp_frame.hpp" #include "../kvp_frame.hpp"
static const gchar *suitename = "/qof/qofinstance"; static const gchar *suitename = "/qof/qofinstance";
extern "C" void test_suite_qofinstance ( void ); extern "C" void test_suite_qofinstance ( void );

View File

@ -25,7 +25,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "../guid.hpp" #include "../guid.hpp"
#include <qofsession.hpp> #include <qofsession.hpp>
#include "qofbackend-p.h" #include <qof-backend.hpp>
#include <cstdlib> #include <cstdlib>
#include "../gnc-backend-prov.hpp" #include "../gnc-backend-prov.hpp"