GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
engine-helpers.h
1 /********************************************************************\
2  * engine-helpers.h -- gnucash engine helper functions *
3  * Copyright (C) 2000 Linas Vepstas <[email protected]> *
4  * Copyright (C) 2001 Linux Developers Group, Inc. *
5  * *
6  * This program is free software; you can redistribute it and/or *
7  * modify it under the terms of the GNU General Public License as *
8  * published by the Free Software Foundation; either version 2 of *
9  * the License, or (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License*
17  * along with this program; if not, contact: *
18  * *
19  * Free Software Foundation Voice: +1-617-542-5942 *
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
21  * Boston, MA 02110-1301, USA [email protected] *
22  * *
23 \********************************************************************/
24 
25 #ifndef ENGINE_HELPERS_H
26 #define ENGINE_HELPERS_H
27 
28 #include <glib.h>
29 
30 #include "gnc-engine.h"
31 #include "Account.h"
32 #include "Query.h"
33 #include "Transaction.h"
34 
35 typedef void (*GncBOCb) (gpointer new_val, gpointer user_data);
36 
37 Timespec gnc_transaction_get_date_posted(const Transaction *t);
38 Timespec gnc_transaction_get_date_entered(const Transaction *t);
39 
40 Timespec gnc_split_get_date_reconciled(const Split *s);
41 
42 void gnc_transaction_set_date(Transaction *t, Timespec ts);
43 
51 const char * gnc_get_num_action (const Transaction *trans, const Split *split);
52 
59 const char * gnc_get_action_num (const Transaction *trans, const Split *split);
60 
72 void gnc_set_num_action (Transaction *trans, Split *split,
73  const char *num, const char *action);
74 
77 void
78 gnc_book_option_num_field_source_change (gboolean num_action);
79 
82 void
83 gnc_book_option_register_cb (gchar *key, GncBOCb func, gpointer user_data);
84 
86 void
87 gnc_book_option_remove_cb (gchar *key, GncBOCb func, gpointer user_data);
88 
89 #endif
Use a 64-bit unsigned int timespec.
Definition: gnc-date.h:299
Account handling public routines.
All type declarations for the whole Gnucash engine.
Definition: SplitP.h:71
API for Transactions and Splits (journal entries)