GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-plugin-business.h
1 /*
2  * gnc-plugin-business.h --
3  *
4  * Copyright (C) 2003 Jan Arne Petersen
5  * Author: Jan Arne Petersen <[email protected]>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License as
9  * published by the Free Software Foundation; either version 2 of
10  * the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, contact:
19  *
20  * Free Software Foundation Voice: +1-617-542-5942
21  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
22  * Boston, MA 02110-1301, USA [email protected]
23  */
24 
25 #ifndef __GNC_PLUGIN_BUSINESS_H
26 #define __GNC_PLUGIN_BUSINESS_H
27 
28 #include <gtk/gtk.h>
29 
30 #include "gnc-plugin.h"
31 
32 G_BEGIN_DECLS
33 
34 /* type macros */
35 #define GNC_TYPE_PLUGIN_BUSINESS (gnc_plugin_business_get_type ())
36 #define GNC_PLUGIN_BUSINESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_BUSINESS, GncPluginBusiness))
37 #define GNC_PLUGIN_BUSINESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_BUSINESS, GncPluginBusinessClass))
38 #define GNC_IS_PLUGIN_BUSINESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_BUSINESS))
39 #define GNC_IS_PLUGIN_BUSINESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_BUSINESS))
40 #define GNC_PLUGIN_BUSINESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_BUSINESS, GncPluginBusinessClass))
41 
42 #define GNC_PLUGIN_BUSINESS_NAME "gnc-plugin-business"
43 
44 /* typedefs & structures */
45 typedef struct
46 {
47  GncPlugin gnc_plugin;
49 
50 typedef struct
51 {
52  GncPluginClass gnc_plugin;
54 
55 /* function prototypes */
56 GType gnc_plugin_business_get_type (void);
57 
58 GncPlugin *gnc_plugin_business_new (void);
59 
60 G_END_DECLS
61 
62 GncMainWindow *gnc_plugin_business_get_window (void);
63 void gnc_invoice_remind_bills_due (void);
64 void gnc_invoice_remind_bills_due_cb (void);
65 const char *gnc_plugin_business_get_invoice_printreport(void);
66 
67 #endif /* __GNC_PLUGIN_BUSINESS_H */
Functions for adding plugins to a GnuCash window.