GnuCash
2.6.99
|
Files | |
file | gnc-plugin-manager.h |
Plugin management functions for the GnuCash UI. | |
Data Structures | |
struct | GncPluginManager |
struct | GncPluginManagerClass |
Basic Object Implementation | |
GType | gnc_plugin_manager_get_type (void) |
#define | GNC_TYPE_PLUGIN_MANAGER (gnc_plugin_manager_get_type ()) |
#define | GNC_PLUGIN_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_MANAGER, GncPluginManager)) |
#define | GNC_PLUGIN_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_MANAGER, GncPluginManagerClass)) |
#define | GNC_IS_PLUGIN_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_MANAGER)) |
#define | GNC_IS_PLUGIN_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_MANAGER)) |
#define | GNC_PLUGIN_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_MANAGER, GncPluginManagerClass)) |
Management Functions | |
GncPluginManager * | gnc_plugin_manager_get (void) |
void | gnc_plugin_manager_add_plugin (GncPluginManager *manager, GncPlugin *plugin) |
void | gnc_plugin_manager_remove_plugin (GncPluginManager *manager, GncPlugin *plugin) |
GList * | gnc_plugin_manager_get_plugins (GncPluginManager *manager) |
GncPlugin * | gnc_plugin_manager_get_plugin (GncPluginManager *manager, const gchar *name) |
void gnc_plugin_manager_add_plugin | ( | GncPluginManager * | manager, |
GncPlugin * | plugin | ||
) |
Add a plugin to the list maintained by the plugin manager.
manager | A pointer to the plugin manager. Retrieve this by calling gnc_plugin_manager_get(). |
plugin | A pointer to the plugin to add. |
Definition at line 105 of file gnc-plugin-manager.c.
GncPluginManager* gnc_plugin_manager_get | ( | void | ) |
Retrieve a pointer to the plugin manager. This object is a singleton, that can only be retrieved via this function. Once you have a pointer to the manager, you can call it to add/remove plugins, etc.
Definition at line 91 of file gnc-plugin-manager.c.
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.
manager | A pointer to the plugin manager. Retrieve this by calling gnc_plugin_manager_get(). |
name | The name of the plugin to find. |
Definition at line 170 of file gnc-plugin-manager.c.
GList* gnc_plugin_manager_get_plugins | ( | GncPluginManager * | manager | ) |
Get a list of all plugins being held by the plugin manager. This function is used by the main gnucash window code to get the list of plugins that need to be added to a new top level window.
manager | A pointer to the plugin manager. Retrieve this by calling gnc_plugin_manager_get(). |
Definition at line 159 of file gnc-plugin-manager.c.
GType gnc_plugin_manager_get_type | ( | void | ) |
Retrieve the GType value for the gnucash plugin manager.
Definition at line 63 of file gnc-plugin-manager.c.
void gnc_plugin_manager_remove_plugin | ( | GncPluginManager * | manager, |
GncPlugin * | plugin | ||
) |
Remove a plugin from the list maintained by the plugin manager.
manager | A pointer to the plugin manager. Retrieve this by calling gnc_plugin_manager_get(). |
plugin | A pointer to the plugin to add. |
Definition at line 131 of file gnc-plugin-manager.c.