GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gncBusiness.h
Go to the documentation of this file.
1 /* gncBusiness.h -- Business Helper Functions
2  *
3  * This program is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU General Public License as
5  * published by the Free Software Foundation; either version 2 of
6  * the License, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, contact:
15  *
16  * Free Software Foundation Voice: +1-617-542-5942
17  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
18  * Boston, MA 02110-1301, USA [email protected]
19  */
34 #ifndef GNC_BUSINESS_H_
35 #define GNC_BUSINESS_H_
36 
37 #include <glib.h>
38 #include "qof.h"
39 
40 /* KVP key for report PDF directories */
41 #define OWNER_EXPORT_PDF_DIRNAME "export-pdf-directory"
42 #define LAST_POSTED_TO_ACCT "last-posted-to-acct"
43 #define GNC_PAYMENT "payment"
44 #define GNC_LAST_ACCOUNT "last_acct"
45 
46 /* @deprecated backwards-compat definitions */
47 #define GNC_BILLTERM_MODULE_NAME GNC_ID_BILLTERM
48 #define GNC_CUSTOMER_MODULE_NAME GNC_ID_CUSTOMER
49 #define GNC_EMPLOYEE_MODULE_NAME GNC_ID_EMPLOYEE
50 #define GNC_ENTRY_MODULE_NAME GNC_ID_ENTRY
51 #define GNC_INVOICE_MODULE_NAME GNC_ID_INVOICE
52 #define GNC_JOB_MODULE_NAME GNC_ID_JOB
53 #define GNC_ORDER_MODULE_NAME GNC_ID_ORDER
54 #define GNC_OWNER_MODULE_NAME GNC_ID_OWNER
55 #define GNC_TAXTABLE_MODULE_NAME GNC_ID_TAXTABLE
56 #define GNC_VENDOR_MODULE_NAME GNC_ID_VENDOR
57 
58 /* The initialization of the business objects is done in
59  * cashobjects_register() of <engine/cashobjects.h>. */
60 
61 #ifndef DI
62 # ifdef _MSC_VER
63 /* MSVC compiler doesn't have C99 "designated initializers"
64  * so we wrap them in a macro that is empty on MSVC. */
65 # define DI(x) /* */
66 # else
67 # define DI(x) x
68 # endif
69 #endif
70 
73 GList * gncBusinessGetList (QofBook *book, QofIdTypeConst type_name,
74  gboolean all_including_inactive);
75 
77 typedef GList OwnerList;
78 
87  gboolean all_including_inactive);
88 
89 
90 #endif /* GNC_BUSINESS_H_ */
OwnerList * gncBusinessGetOwnerList(QofBook *book, QofIdTypeConst type_name, gboolean all_including_inactive)
const gchar * QofIdTypeConst
Definition: qofid.h:87
GList * gncBusinessGetList(QofBook *book, QofIdTypeConst type_name, gboolean all_including_inactive)
GList OwnerList
Definition: gncBusiness.h:77