31#include <glib/gi18n.h>
33#include "dialog-utils.h"
40static QofLogModule log_module = G_LOG_DOMAIN;
42static void gnc_plugin_customer_import_finalize (GObject *
object);
45static void gnc_plugin_customer_import_cmd_test (GSimpleAction *simple, GVariant *parameter, gpointer user_data);
47#define PLUGIN_ACTIONS_NAME "gnc-plugin-customer-import-actions"
48#define PLUGIN_UI_FILENAME "gnc-plugin-customer-import.ui"
50static GActionEntry gnc_plugin_actions [] =
54 {
"customer_importAction", gnc_plugin_customer_import_cmd_test, NULL, NULL, NULL },
57static guint gnc_plugin_n_actions = G_N_ELEMENTS(gnc_plugin_actions);
60static const gchar *gnc_plugin_load_ui_items [] =
75G_DEFINE_TYPE(GncPluginCustomerImport, gnc_plugin_customer_import, GNC_TYPE_PLUGIN)
80 return GNC_PLUGIN (g_object_new (GNC_TYPE_PLUGIN_CUSTOMER_IMPORT, (gchar*) NULL));
84gnc_plugin_customer_import_class_init (GncPluginCustomerImportClass *klass)
86 GObjectClass *object_class = G_OBJECT_CLASS (klass);
87 GncPluginClass *plugin_class = GNC_PLUGIN_CLASS(klass);
89 object_class->finalize = gnc_plugin_customer_import_finalize;
92 plugin_class->plugin_name = GNC_PLUGIN_CUSTOMER_IMPORT_NAME;
95 plugin_class->actions_name = PLUGIN_ACTIONS_NAME;
96 plugin_class->actions = gnc_plugin_actions;
97 plugin_class->n_actions = gnc_plugin_n_actions;
98 plugin_class->ui_filename = PLUGIN_UI_FILENAME;
99 plugin_class->ui_updates = gnc_plugin_load_ui_items;
103gnc_plugin_customer_import_init (GncPluginCustomerImport *plugin)
108gnc_plugin_customer_import_finalize (GObject *
object)
110 G_OBJECT_CLASS (gnc_plugin_customer_import_parent_class)->finalize (
object);
130gnc_plugin_customer_import_cmd_test (GSimpleAction *simple,
136 ENTER (
"action %p, main window data %p", simple, data);
137 PINFO (
"customer_import");
GUI handling for customer import plugin.
Plugin registration of the customer_import module.
Plugin management functions for the GnuCash UI.
#define PINFO(format, args...)
Print an informational note.
#define LEAVE(format, args...)
Print a function exit debugging message.
#define ENTER(format, args...)
Print a function entry debugging message.
void gnc_plugin_manager_add_plugin(GncPluginManager *manager, GncPlugin *plugin)
Add a plugin to the list maintained by the plugin manager.
GncPluginManager * gnc_plugin_manager_get(void)
Retrieve a pointer to the plugin manager.