GnuCash  5.6-150-g038405b370+
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 <jpetersen@uni-bonn.de>
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 gnu@gnu.org
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 G_DECLARE_FINAL_TYPE (GncPluginManager, gnc_plugin_manager, GNC, PLUGIN_MANAGER, GObject)
63 
64 
78 GncPluginManager *gnc_plugin_manager_get (void);
79 
80 
91 void gnc_plugin_manager_add_plugin (GncPluginManager *manager,
92  GncPlugin *plugin);
93 
94 
102 void gnc_plugin_manager_remove_plugin (GncPluginManager *manager,
103  GncPlugin *plugin);
104 
105 
116 GList *gnc_plugin_manager_get_plugins (GncPluginManager *manager);
117 
118 
130 GncPlugin *gnc_plugin_manager_get_plugin (GncPluginManager *manager,
131  const gchar *name);
135 G_END_DECLS
136 
137 #endif /* __GNC_PLUGIN_MANAGER_H */
138 
void gnc_plugin_manager_add_plugin(GncPluginManager *manager, GncPlugin *plugin)
Add a plugin to the list maintained by the plugin manager.
void gnc_plugin_manager_remove_plugin(GncPluginManager *manager, GncPlugin *plugin)
Remove a plugin from the list maintained by the plugin manager.
GncPluginManager * gnc_plugin_manager_get(void)
Retrieve a pointer to the plugin manager.
Functions for adding plugins to a GnuCash window.
GList * gnc_plugin_manager_get_plugins(GncPluginManager *manager)
Get a list of all plugins being held by the plugin manager.
GncPlugin * gnc_plugin_manager_get_plugin(GncPluginManager *manager, const gchar *name)
Find a plugin by name from the list of plugins being held by the plugin manager.