30 #ifndef GNC_PLUGIN_customer_import_customer_import_H 31 #define GNC_PLUGIN_customer_import_customer_import_H 39 enum customer_import_model_columns
42 CI_NAME, CI_ADDR1, CI_ADDR2, CI_ADDR3, CI_ADDR4, CI_PHONE, CI_FAX, CI_EMAIL,
44 CI_SHIPNAME, CI_SHIPADDR1, CI_SHIPADDR2, CI_SHIPADDR3, CI_SHIPADDR4, CI_SHIPPHONE,
45 CI_SHIPFAX, CI_SHIPEMAIL, CI_N_COLUMNS
48 enum _customer_import_result
51 CI_RESULT_OPEN_FAILED,
52 CI_RESULT_ERROR_IN_REGEXP,
54 typedef enum _customer_import_result customer_import_result;
58 int n_imported, n_ignored;
59 GString *ignored_lines;
64 customer_import_result
65 gnc_customer_import_read_file (
const gchar *filename,
const gchar *parser_regexp, GtkListStore *store, guint max_rows, customer_import_stats *stats);
68 gnc_customer_import_fix_customers (GtkListStore *store, guint *fixed, guint *deleted, gchar * type);
71 gnc_customer_import_create_customers (GtkListStore *store, QofBook *book, guint *n_customers_created, guint *n_customers_updated, gchar * type);