GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-transaction-sql.h
Go to the documentation of this file.
1 /********************************************************************
2  * gnc-transaction-sql.h: load and save data to SQL *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA [email protected] *
20 \********************************************************************/
29 #ifndef GNC_TRANSACTION_SQL_H
30 #define GNC_TRANSACTION_SQL_H
31 
32 #include "gnc-backend-sql.h"
33 #include "Transaction.h"
34 #include "qof.h"
35 #include "Account.h"
36 
37 void gnc_sql_init_transaction_handler( void );
38 
46 
55 
63 
70 
71 typedef struct
72 {
73  Account* acct;
74  gnc_numeric balance;
75  gnc_numeric cleared_balance;
76  gnc_numeric reconciled_balance;
78 
86 /*@ null @*/
88 
89 #endif /* GNC_TRANSACTION_SQL_H */
load and save data to SQL
void gnc_sql_transaction_commit_splits(GncSqlBackend *be, Transaction *pTx)
void gnc_sql_transaction_load_all_tx(GncSqlBackend *be)
Account handling public routines.
void gnc_sql_transaction_load_tx_for_account(GncSqlBackend *be, Account *account)
gboolean gnc_sql_save_transaction(GncSqlBackend *be, QofInstance *inst)
API for Transactions and Splits (journal entries)
GSList * gnc_sql_get_account_balances_slist(GncSqlBackend *be)