GnuCash 2.4.99
gncBusiness.h
Go to the documentation of this file.
00001 /* gncBusiness.h -- Business Helper Functions
00002  *
00003  * This program is free software; you can redistribute it and/or
00004  * modify it under the terms of the GNU General Public License as
00005  * published by the Free Software Foundation; either version 2 of
00006  * the License, or (at your option) any later version.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, contact:
00015  *
00016  * Free Software Foundation           Voice:  +1-617-542-5942
00017  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00018  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00019  */
00034 #ifndef GNC_BUSINESS_H_
00035 #define GNC_BUSINESS_H_
00036 
00037 #include <glib.h>
00038 #include "qof.h"
00039 
00040 /* @deprecated backwards-compat definitions */
00041 #define GNC_BILLTERM_MODULE_NAME GNC_ID_BILLTERM
00042 #define GNC_CUSTOMER_MODULE_NAME GNC_ID_CUSTOMER
00043 #define GNC_EMPLOYEE_MODULE_NAME GNC_ID_EMPLOYEE
00044 #define GNC_ENTRY_MODULE_NAME    GNC_ID_ENTRY
00045 #define GNC_INVOICE_MODULE_NAME  GNC_ID_INVOICE
00046 #define GNC_JOB_MODULE_NAME      GNC_ID_JOB
00047 #define GNC_ORDER_MODULE_NAME    GNC_ID_ORDER
00048 #define GNC_OWNER_MODULE_NAME    GNC_ID_OWNER
00049 #define GNC_TAXTABLE_MODULE_NAME GNC_ID_TAXTABLE
00050 #define GNC_VENDOR_MODULE_NAME   GNC_ID_VENDOR
00051 
00052 /* The initialization of the business objects is done in
00053  * cashobjects_register() of <engine/cashobjects.h>. */
00054 
00055 #ifndef DI
00056 # ifdef _MSC_VER
00057 /* MSVC compiler doesn't have C99 "designated initializers"
00058  * so we wrap them in a macro that is empty on MSVC. */
00059 #  define DI(x) /* */
00060 # else
00061 #  define DI(x) x
00062 # endif
00063 #endif
00064 
00067 GList * gncBusinessGetList (QofBook *book, QofIdTypeConst type_name,
00068                             gboolean all_including_inactive);
00069 
00071 typedef GList OwnerList;
00072 
00080 OwnerList * gncBusinessGetOwnerList (QofBook *book, QofIdTypeConst type_name,
00081                                      gboolean all_including_inactive);
00082 
00083 
00084 #endif /* GNC_BUSINESS_H_ */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines