GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures
gnc-plugin-manager.h File Reference

Plugin management functions for the GnuCash UI. More...

#include "gnc-plugin.h"

Go to the source code of this file.

Data Structures

struct  GncPluginManager
 
struct  GncPluginManagerClass
 

Functions

Management Functions
GncPluginManagergnc_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)
 
GncPlugingnc_plugin_manager_get_plugin (GncPluginManager *manager, const gchar *name)
 

Basic Object Implementation

#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))
 
GType gnc_plugin_manager_get_type (void)
 

Detailed Description

Plugin management functions for the GnuCash UI.

Author
Copyright (C) 2003 Jan Arne Petersen jpete.nosp@m.rsen.nosp@m.@uni-.nosp@m.bonn.nosp@m..de

The plugin manager maintains a list of all non-content plugins that have been instantiated by various parts of Gnucash. The manager will provide this list upon request, it will also look up individual plugins on request. The main client of this manager is the main gnucash window code. All plugins registered here will automatically be installed in each top level gnucash window that is created.

This code installs a hook to be called when the gnucash user interface shuts down, and at that time it will unref any plugins that are still in its plugin list.

Note: This code maintains a list of plugins (which provide user interface items), not a list of plugin-pages (which provide window content).

Definition in file gnc-plugin-manager.h.