GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gnc-plugin-manager.h
Go to the documentation of this file.
1 /*
2  * gnc-plugin-manager.h -- Manage gnucash plugins.
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 
50 #ifndef __GNC_PLUGIN_MANAGER_H
51 #define __GNC_PLUGIN_MANAGER_H
52 
53 #include "gnc-plugin.h"
54 
55 G_BEGIN_DECLS
56 
60 /* type macros */
61 #define GNC_TYPE_PLUGIN_MANAGER (gnc_plugin_manager_get_type ())
62 #define GNC_PLUGIN_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_MANAGER, GncPluginManager))
63 #define GNC_PLUGIN_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_MANAGER, GncPluginManagerClass))
64 #define GNC_IS_PLUGIN_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_MANAGER))
65 #define GNC_IS_PLUGIN_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_MANAGER))
66 #define GNC_PLUGIN_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_MANAGER, GncPluginManagerClass))
67 
68 /* typedefs & structures */
69 typedef struct
70 {
71  GObject gobject;
73 
74 typedef struct
75 {
76  GObjectClass gobject;
77 
78  /* Signals */
79  void (* plugin_added)
80  (GncPluginManager *plugin_manager, GncPlugin *plugin);
81  void (* plugin_removed)
82  (GncPluginManager *plugin_manager, GncPlugin *plugin);
84 
89 GType gnc_plugin_manager_get_type (void);
90 
106 
107 
119  GncPlugin *plugin);
120 
121 
130  GncPlugin *plugin);
131 
132 
144 
145 
158  const gchar *name);
162 G_END_DECLS
163 
164 #endif /* __GNC_PLUGIN_MANAGER_H */
165 
void gnc_plugin_manager_add_plugin(GncPluginManager *manager, GncPlugin *plugin)
void gnc_plugin_manager_remove_plugin(GncPluginManager *manager, GncPlugin *plugin)
GType gnc_plugin_manager_get_type(void)
GncPluginManager * gnc_plugin_manager_get(void)
Functions for adding plugins to a GnuCash window.
GList * gnc_plugin_manager_get_plugins(GncPluginManager *manager)
GncPlugin * gnc_plugin_manager_get_plugin(GncPluginManager *manager, const gchar *name)