r18203 - gnucash/trunk/src/import-export - Replace GNCBook with QofBook

Phil Longstaff plongstaff at code.gnucash.org
Mon Jul 13 12:43:40 EDT 2009


Author: plongstaff
Date: 2009-07-13 12:43:39 -0400 (Mon, 13 Jul 2009)
New Revision: 18203
Trac: http://svn.gnucash.org/trac/changeset/18203

Modified:
   gnucash/trunk/src/import-export/csv/gnc-csv-model.c
   gnucash/trunk/src/import-export/import-match-map.c
   gnucash/trunk/src/import-export/import-match-map.h
   gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c
   gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
Log:
Replace GNCBook with QofBook


Modified: gnucash/trunk/src/import-export/csv/gnc-csv-model.c
===================================================================
--- gnucash/trunk/src/import-export/csv/gnc-csv-model.c	2009-07-13 16:43:01 UTC (rev 18202)
+++ gnucash/trunk/src/import-export/csv/gnc-csv-model.c	2009-07-13 16:43:39 UTC (rev 18203)
@@ -732,7 +732,7 @@
  * @param book The book where the split should be stored
  * @param amount The amount of the split
  */
-static void trans_add_split(Transaction* trans, Account* account, GNCBook* book,
+static void trans_add_split(Transaction* trans, Account* account, QofBook* book,
                             gnc_numeric amount)
 {
   Split* split = xaccMallocSplit(book);
@@ -842,7 +842,7 @@
 {
   GncCsvTransLine* trans_line = g_new(GncCsvTransLine, 1);
   GList* properties_begin = list->properties;
-  GNCBook* book = gnc_account_get_book(list->account);
+  QofBook* book = gnc_account_get_book(list->account);
   gnc_commodity* currency = xaccAccountGetCommodity(list->account);
   gnc_numeric amount = double_to_gnc_numeric(0.0, xaccAccountGetCommoditySCU(list->account),
                                              GNC_RND_ROUND);

Modified: gnucash/trunk/src/import-export/import-match-map.c
===================================================================
--- gnucash/trunk/src/import-export/import-match-map.c	2009-07-13 16:43:01 UTC (rev 18202)
+++ gnucash/trunk/src/import-export/import-match-map.c	2009-07-13 16:43:39 UTC (rev 18203)
@@ -44,14 +44,14 @@
 struct _GncImportMatchMap {
   kvp_frame *	frame;
   Account *	acc;
-  GNCBook *	book;
+  QofBook *	book;
 };
 
 #define IMAP_FRAME		"import-map"
 #define IMAP_FRAME_BAYES	"import-map-bayes"
 
 static GncImportMatchMap *
-gnc_imap_create_from_frame (kvp_frame *frame, Account *acc, GNCBook *book)
+gnc_imap_create_from_frame (kvp_frame *frame, Account *acc, QofBook *book)
 {
   GncImportMatchMap *imap;
 
@@ -84,7 +84,7 @@
   return gnc_imap_create_from_frame (frame, acc, NULL);
 }
 
-GncImportMatchMap * gnc_imap_create_from_book (GNCBook *book)
+GncImportMatchMap * gnc_imap_create_from_book (QofBook *book)
 {
   kvp_frame * frame;
 

Modified: gnucash/trunk/src/import-export/import-match-map.h
===================================================================
--- gnucash/trunk/src/import-export/import-match-map.h	2009-07-13 16:43:01 UTC (rev 18202)
+++ gnucash/trunk/src/import-export/import-match-map.h	2009-07-13 16:43:39 UTC (rev 18203)
@@ -37,7 +37,7 @@
 /** @{
 Obtain an ImportMatchMap object from an Account or a Book */
 GncImportMatchMap * gnc_imap_create_from_account (Account *acc);
-GncImportMatchMap * gnc_imap_create_from_book (GNCBook *book);
+GncImportMatchMap * gnc_imap_create_from_book (QofBook *book);
 /*@}*/
 
 /** Destroy an import map. But all stored entries will still continue

Modified: gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c
===================================================================
--- gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c	2009-07-13 16:43:01 UTC (rev 18202)
+++ gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c	2009-07-13 16:43:39 UTC (rev 18203)
@@ -360,7 +360,7 @@
   Transaction * trans = NULL;
   Split * split = NULL;
   Account * acct = NULL;
-  GNCBook * book = gnc_get_current_book();
+  QofBook * book = gnc_get_current_book();
 
   DEBUG("process_trans_record(): Begin...\n");
 

Modified: gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
===================================================================
--- gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c	2009-07-13 16:43:01 UTC (rev 18202)
+++ gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c	2009-07-13 16:43:39 UTC (rev 18203)
@@ -112,7 +112,7 @@
   gnc_commodity *currency=NULL;
   gnc_commodity *investment_commodity=NULL;
   gnc_numeric gnc_amount, gnc_units;
-  GNCBook *book;
+  QofBook *book;
   Transaction *transaction;
   Split *split;
   gchar *notes, *tmp;



More information about the gnucash-changes mailing list