Replace GNCBook with QofBook

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18203 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2009-07-13 16:43:39 +00:00
parent 7bec19eef9
commit 3bc9f56800
5 changed files with 8 additions and 8 deletions

View File

@ -732,7 +732,7 @@ static void trans_property_list_add(TransProperty* property)
* @param book The book where the split should be stored * @param book The book where the split should be stored
* @param amount The amount of the split * @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) gnc_numeric amount)
{ {
Split* split = xaccMallocSplit(book); Split* split = xaccMallocSplit(book);
@ -842,7 +842,7 @@ static GncCsvTransLine* trans_property_list_to_trans(TransPropertyList* list, gc
{ {
GncCsvTransLine* trans_line = g_new(GncCsvTransLine, 1); GncCsvTransLine* trans_line = g_new(GncCsvTransLine, 1);
GList* properties_begin = list->properties; 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_commodity* currency = xaccAccountGetCommodity(list->account);
gnc_numeric amount = double_to_gnc_numeric(0.0, xaccAccountGetCommoditySCU(list->account), gnc_numeric amount = double_to_gnc_numeric(0.0, xaccAccountGetCommoditySCU(list->account),
GNC_RND_ROUND); GNC_RND_ROUND);

View File

@ -44,14 +44,14 @@ static QofLogModule log_module = GNC_MOD_IMPORT;
struct _GncImportMatchMap { struct _GncImportMatchMap {
kvp_frame * frame; kvp_frame * frame;
Account * acc; Account * acc;
GNCBook * book; QofBook * book;
}; };
#define IMAP_FRAME "import-map" #define IMAP_FRAME "import-map"
#define IMAP_FRAME_BAYES "import-map-bayes" #define IMAP_FRAME_BAYES "import-map-bayes"
static GncImportMatchMap * 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; GncImportMatchMap *imap;
@ -84,7 +84,7 @@ GncImportMatchMap * gnc_imap_create_from_account (Account *acc)
return gnc_imap_create_from_frame (frame, acc, NULL); 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; kvp_frame * frame;

View File

@ -37,7 +37,7 @@ typedef struct _GncImportMatchMap GncImportMatchMap;
/** @{ /** @{
Obtain an ImportMatchMap object from an Account or a Book */ Obtain an ImportMatchMap object from an Account or a Book */
GncImportMatchMap * gnc_imap_create_from_account (Account *acc); 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 /** Destroy an import map. But all stored entries will still continue

View File

@ -360,7 +360,7 @@ static void process_trans_record( FILE *log_file)
Transaction * trans = NULL; Transaction * trans = NULL;
Split * split = NULL; Split * split = NULL;
Account * acct = NULL; Account * acct = NULL;
GNCBook * book = gnc_get_current_book(); QofBook * book = gnc_get_current_book();
DEBUG("process_trans_record(): Begin...\n"); DEBUG("process_trans_record(): Begin...\n");

View File

@ -112,7 +112,7 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data, void * transaction_u
gnc_commodity *currency=NULL; gnc_commodity *currency=NULL;
gnc_commodity *investment_commodity=NULL; gnc_commodity *investment_commodity=NULL;
gnc_numeric gnc_amount, gnc_units; gnc_numeric gnc_amount, gnc_units;
GNCBook *book; QofBook *book;
Transaction *transaction; Transaction *transaction;
Split *split; Split *split;
gchar *notes, *tmp; gchar *notes, *tmp;