GnuCash c935c2f+
Loading...
Searching...
No Matches
gncmod-aqbanking.c
1/*
2 * gncmod-aqbanking.c --
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, contact:
16 *
17 * Free Software Foundation Voice: +1-617-542-5942
18 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
19 * Boston, MA 02110-1301, USA gnu@gnu.org
20 */
21
30#include <config.h>
31#include <glib/gi18n.h>
32
33#include "gnc-ab-utils.h"
34#include "gnc-module.h"
35#include "gnc-module-api.h"
37#include "dialog-preferences.h"
38
39GNC_MODULE_API_DECL(libgncmod_aqbanking)
40
41/* version of the gnc module system interface we require */
42gint libgncmod_aqbanking_gnc_module_system_interface = 0;
43
44/* module versioning uses libtool semantics. */
45gint libgncmod_aqbanking_gnc_module_current = 0;
46gint libgncmod_aqbanking_gnc_module_revision = 0;
47gint libgncmod_aqbanking_gnc_module_age = 0;
48
49gchar *
50libgncmod_aqbanking_gnc_module_path(void)
51{
52 return g_strdup("gnucash/import-export/aqbanking");
53}
54
55gchar *
56libgncmod_aqbanking_gnc_module_description(void)
57{
58 return g_strdup("Support for Online Banking protocols");
59}
60
61gint
62libgncmod_aqbanking_gnc_module_init(gint refcount)
63{
64 /* Add menu items with C callbacks */
66
67
68 /* Add AqBanking preferences to the preferences dialog */
69 gnc_preferences_add_to_page("dialog-ab-pref.glade", "aqbanking_prefs",
70 _("Online Banking"));
71
72 /* Initialize gwen library */
74
75 return 1;
76}
77
78gint
79libgncmod_aqbanking_gnc_module_end(gint refcount)
80{
81 /* Delete the shared AB_BANKING object */
83
84 /* Finalize gwen library */
86
87 return 1;
88}
Dialog for handling user preferences.
AqBanking utility functions.
Plugin registration of the AqBanking module.
void gnc_plugin_aqbanking_create_plugin(void)
Create a new GncPluginAqBanking object and register it.
void gnc_AB_BANKING_delete(AB_BANKING *api)
Delete the AB_BANKING api.
void gnc_GWEN_Fini(void)
Finalize the gwenhywfar library.
void gnc_GWEN_Init(void)
Initialize the gwenhywfar library by calling GWEN_Init() and setting up gwenhywfar logging.
void gnc_preferences_add_to_page(const gchar *filename, const gchar *widgetname, const gchar *tabname)
This function adds a partial page of preferences to the preferences dialog.