AccountPluginManager

AccountPluginManager — manage account plugins.

Synopsis

                    AccountPluginManager;
GList*              account_plugin_manager_list         (AccountPluginManager *plugin_manager);
AccountPluginManager* account_plugin_manager_new        (GList *plugin_paths,
                                                         AccountsList *accounts_list);

Object Hierarchy

  GObject
   +----AccountPluginManager

Properties

  "accounts-list"            AccountsList*         : Read / Write / Construct Only
  "plugin-paths"             gpointer              : Read / Write / Construct Only
  "plugins-initialized"      gboolean              : Read

Description

The AccountPluginManager is a convenience object for managing account plugins. When it is first created with account_plugin_manager_new() it scans through the given list of paths, looking for loadable plugins. For each module it finds it creates an AccountPlugin object and binds it to the given AccountsList (by calling account_plugin_setup()).

The account_plugin_manager_list() method can be used to retrieve the list of the known AccountPlugin objects.

Details

AccountPluginManager

typedef struct _AccountPluginManager AccountPluginManager;


account_plugin_manager_list ()

GList*              account_plugin_manager_list         (AccountPluginManager *plugin_manager);

Returns a list of all the available account plugins.

plugin_manager :
Returns : a GList of AccountPlugin objects. The objects are not referenced. To free it, call g_list_free():

account_plugin_manager_new ()

AccountPluginManager* account_plugin_manager_new        (GList *plugin_paths,
                                                         AccountsList *accounts_list);

Create an AccountPluginManager for handling the plugins located in any of the directories specified by plugin_paths, and binds accounts_list to it.

plugin_paths : GList of plugin paths.
accounts_list : the AccountsList.
Returns : an AccountPluginManager.

Property Details

The "accounts-list" property

  "accounts-list"            AccountsList*         : Read / Write / Construct Only

AccountsList to be notified of account creations/deletions.


The "plugin-paths" property

  "plugin-paths"             gpointer              : Read / Write / Construct Only

Plugin installation paths.


The "plugins-initialized" property

  "plugins-initialized"      gboolean              : Read

Whether plugins have been initialized.

Default value: FALSE