GnuCash
2.6.99
|
Files | |
file | assistant-ab-initial.h |
AqBanking setup functionality. | |
file | dialog-ab-trans.h |
Dialog for AqBanking transaction data. | |
file | gnc-ab-getbalance.h |
AqBanking getbalance functions. | |
file | gnc-ab-getbalance.h |
AqBanking getbalance functions. | |
file | gnc-ab-kvp.h |
AqBanking KVP handling. | |
file | gnc-ab-trans-templ.h |
Templates for AqBanking transactions. | |
file | gnc-ab-transfer.h |
Dialog for AqBanking transaction data. | |
file | gnc-ab-utils.h |
AqBanking utility functions. | |
file | gnc-gwen-gui.h |
GUI callbacks for AqBanking. | |
file | gnc-plugin-aqbanking.h |
Plugin registration of the AqBanking module. | |
Data Structures | |
struct | GncPluginAqBanking |
struct | GncPluginAqBankingClass |
Macros | |
#define | GNC_RESPONSE_NOW GTK_RESPONSE_YES |
#define | GNC_RESPONSE_LATER GTK_RESPONSE_NO |
#define | AQBANKING_VERSION_INT (10000 * AQBANKING_VERSION_MAJOR + 100 * AQBANKING_VERSION_MINOR + AQBANKING_VERSION_PATCHLEVEL) |
#define | GWENHYWFAR_VERSION_INT (10000 * GWENHYWFAR_VERSION_MAJOR + 100 * GWENHYWFAR_VERSION_MINOR + GWENHYWFAR_VERSION_PATCHLEVEL) |
#define | GNC_PREFS_GROUP_AQBANKING "dialogs.import.hbci" |
#define | GNC_PREF_FORMAT_SWIFT940 "format-swift-mt940" |
#define | GNC_PREF_FORMAT_SWIFT942 "format-swift-mt942" |
#define | GNC_PREF_FORMAT_DTAUS "format-dtaus" |
#define | GNC_PREF_VERBOSE_DEBUG "verbose-debug" |
#define | AWAIT_BALANCES 1 << 1 |
#define | FOUND_BALANCES 1 << 2 |
#define | IGNORE_BALANCES 1 << 3 |
#define | AWAIT_TRANSACTIONS 1 << 4 |
#define | FOUND_TRANSACTIONS 1 << 5 |
#define | IGNORE_TRANSACTIONS 1 << 6 |
#define | GNC_TYPE_PLUGIN_AQBANKING (gnc_plugin_aqbanking_get_type()) |
#define | GNC_PLUGIN_AQBANKING(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNC_TYPE_PLUGIN_AQBANKING, GncPluginAqBanking)) |
#define | GNC_PLUGIN_AQBANKING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNC_TYPE_PLUGIN_AQBANKING, GncPluginAqBankingClass)) |
#define | GNC_IS_PLUGIN_AQBANKING(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNC_TYPE_PLUGIN_AQBANKING)) |
#define | GNC_IS_PLUGIN_AQBANKING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNC_TYPE_PLUGIN_AQBANKING)) |
#define | GNC_PLUGIN_AQBANKING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNC_TYPE_PLUGIN_AQBANKING, GncPluginAqBankingClass)) |
#define | GNC_PLUGIN_AQBANKING_NAME "gnc-plugin-aqbanking" |
Typedefs | |
typedef struct _GncABTransDialog | GncABTransDialog |
typedef enum _GncABTransType | GncABTransType |
typedef typedefG_BEGIN_DECLS struct _GncABTransTempl | GncABTransTempl |
typedef struct _GncABImExContextImport | GncABImExContextImport |
typedef typedefG_BEGIN_DECLS struct _GncGWENGui | GncGWENGui |
Enumerations | |
enum | _GncABTransType { SINGLE_TRANSFER = 0, SINGLE_DEBITNOTE, SINGLE_INTERNAL_TRANSFER, SEPA_TRANSFER, SEPA_DEBITNOTE } |
Functions | |
G_BEGIN_DECLS void | gnc_ab_initial_assistant (void) |
G_BEGIN_DECLS gboolean | gnc_ab_enter_daterange (GtkWidget *parent, const char *heading, Timespec *from_date, gboolean *last_retv_date, gboolean *first_possible_date, Timespec *to_date, gboolean *to_now) |
gboolean | gnc_ab_trans_isSEPA (GncABTransType t) |
GncABTransDialog * | gnc_ab_trans_dialog_new (GtkWidget *parent, AB_ACCOUNT *ab_acc, gint commodity_scu, GncABTransType trans_type, GList *templates) |
gint | gnc_ab_trans_dialog_run_until_ok (GncABTransDialog *td) |
void | gnc_ab_trans_dialog_free (GncABTransDialog *td) |
GList * | gnc_ab_trans_dialog_get_templ (const GncABTransDialog *td, gboolean *changed) |
GtkWidget * | gnc_ab_trans_dialog_get_parent (const GncABTransDialog *td) |
const AB_TRANSACTION * | gnc_ab_trans_dialog_get_ab_trans (const GncABTransDialog *td) |
AB_JOB * | gnc_ab_trans_dialog_get_job (const GncABTransDialog *td) |
AB_JOB * | gnc_ab_get_trans_job (AB_ACCOUNT *ab_acc, const AB_TRANSACTION *ab_trans, GncABTransType trans_type) |
G_BEGIN_DECLS void | gnc_ab_getbalance (GtkWidget *parent, Account *gnc_acc) |
G_BEGIN_DECLS void | gnc_ab_gettrans (GtkWidget *parent, Account *gnc_acc) |
GncABTransTempl * | gnc_ab_trans_templ_new (void) |
GncABTransTempl * | gnc_ab_trans_templ_new_full (const gchar *name, const gchar *recp_name, const gchar *recp_account, const gchar *recp_bankcode, gnc_numeric amount, const gchar *purpose, const gchar *purpose_cont) |
GncABTransTempl * | gnc_ab_trans_templ_new_from_kvp (const KvpFrame *k) |
GList * | gnc_ab_trans_templ_list_new_from_kvp_list (GList *v) |
void | gnc_ab_trans_templ_free (GncABTransTempl *t) |
void | gnc_ab_trans_templ_list_free (GList *l) |
KvpFrame * | gnc_ab_trans_templ_to_kvp (const GncABTransTempl *t) |
GList * | gnc_ab_trans_templ_list_to_kvp_list (GList *k) |
const gchar * | gnc_ab_trans_templ_get_name (const GncABTransTempl *t) |
const gchar * | gnc_ab_trans_templ_get_recp_name (const GncABTransTempl *t) |
const gchar * | gnc_ab_trans_templ_get_recp_account (const GncABTransTempl *t) |
const gchar * | gnc_ab_trans_templ_get_recp_bankcode (const GncABTransTempl *t) |
gnc_numeric | gnc_ab_trans_templ_get_amount (const GncABTransTempl *t) |
const gchar * | gnc_ab_trans_templ_get_purpose (const GncABTransTempl *t) |
const gchar * | gnc_ab_trans_templ_get_purpose_cont (const GncABTransTempl *t) |
void | gnc_ab_trans_templ_set_name (GncABTransTempl *t, const gchar *name) |
void | gnc_ab_trans_templ_set_recp_name (GncABTransTempl *t, const gchar *recp_name) |
void | gnc_ab_trans_templ_set_recp_account (GncABTransTempl *t, const gchar *recp_account) |
void | gnc_ab_trans_templ_set_recp_bankcode (GncABTransTempl *t, const gchar *recp_bankcode) |
void | gnc_ab_trans_templ_set_amount (GncABTransTempl *t, gnc_numeric amount) |
void | gnc_ab_trans_templ_set_purpose (GncABTransTempl *t, const gchar *purpose) |
void | gnc_ab_trans_templ_set_purpose_cont (GncABTransTempl *t, const gchar *purpose_cont) |
G_BEGIN_DECLS void | gnc_ab_maketrans (GtkWidget *parent, Account *gnc_acc, GncABTransType trans_type) |
void | gnc_GWEN_Init (void) |
void | gnc_GWEN_Fini (void) |
AB_BANKING * | gnc_AB_BANKING_new (void) |
void | gnc_AB_BANKING_delete (AB_BANKING *api) |
gint | gnc_AB_BANKING_fini (AB_BANKING *api) |
AB_ACCOUNT * | gnc_ab_get_ab_account (const AB_BANKING *api, Account *gnc_acc) |
gchar * | gnc_AB_VALUE_to_readable_string (const AB_VALUE *value) |
gchar * | gnc_AB_JOB_to_readable_string (const AB_JOB *job) |
gchar * | gnc_AB_JOB_ID_to_string (gulong job_id) |
gchar * | gnc_ab_get_remote_name (const AB_TRANSACTION *ab_trans) |
gchar * | gnc_ab_get_purpose (const AB_TRANSACTION *ab_trans) |
gchar * | gnc_ab_description_to_gnc (const AB_TRANSACTION *ab_trans) |
gchar * | gnc_ab_memo_to_gnc (const AB_TRANSACTION *ab_trans) |
Transaction * | gnc_ab_trans_to_gnc (const AB_TRANSACTION *ab_trans, Account *gnc_acc) |
GncABImExContextImport * | gnc_ab_import_context (AB_IMEXPORTER_CONTEXT *context, guint awaiting, gboolean execute_txns, AB_BANKING *api, GtkWidget *parent) |
guint | gnc_ab_ieci_get_found (GncABImExContextImport *ieci) |
AB_JOB_LIST2 * | gnc_ab_ieci_get_job_list (GncABImExContextImport *ieci) |
gboolean | gnc_ab_ieci_run_matcher (GncABImExContextImport *ieci) |
GWEN_DB_NODE * | gnc_ab_get_permanent_certs (void) |
G_BEGIN_DECLS void | gnc_file_aqbanking_import (const gchar *aqbanking_importername, const gchar *aqbanking_formatname, gboolean exec_as_aqbanking_jobs) |
void | gnc_GWEN_Gui_log_init (void) |
GncGWENGui * | gnc_GWEN_Gui_get (GtkWidget *parent) |
void | gnc_GWEN_Gui_release (GncGWENGui *gui) |
void | gnc_GWEN_Gui_shutdown (void) |
void | gnc_GWEN_Gui_set_close_flag (gboolean close_when_finished) |
gboolean | gnc_GWEN_Gui_get_close_flag (void) |
gboolean | gnc_GWEN_Gui_show_dialog (void) |
void | gnc_GWEN_Gui_hide_dialog (void) |
GType | gnc_plugin_aqbanking_get_type (void) |
GncPlugin * | gnc_plugin_aqbanking_new (void) |
void | gnc_plugin_aqbanking_create_plugin (void) |
void | gnc_plugin_aqbanking_set_logwindow_visible (gboolean logwindow_visible) |
Account | |
const gchar * | gnc_ab_get_account_accountid (const Account *a) |
void | gnc_ab_set_account_accountid (Account *a, const gchar *id) |
const gchar * | gnc_ab_get_account_bankcode (const Account *a) |
void | gnc_ab_set_account_bankcode (Account *a, const gchar *code) |
guint32 | gnc_ab_get_account_uid (const Account *a) |
void | gnc_ab_set_account_uid (Account *a, guint32 uid) |
Timespec | gnc_ab_get_account_trans_retrieval (const Account *a) |
void | gnc_ab_set_account_trans_retrieval (Account *a, Timespec time) |
Book | |
GList * | gnc_ab_get_book_template_list (QofBook *b) |
void | gnc_ab_set_book_template_list (QofBook *b, GList *template_list) |
#define AQBANKING_VERSION_INT (10000 * AQBANKING_VERSION_MAJOR + 100 * AQBANKING_VERSION_MINOR + AQBANKING_VERSION_PATCHLEVEL) |
A define that combines the aqbanking version number into one single integer number. Assumption: Both MINOR and PATCHLEVEL numbers are in the interval [0..99].
Definition at line 48 of file gnc-ab-utils.h.
#define GWENHYWFAR_VERSION_INT (10000 * GWENHYWFAR_VERSION_MAJOR + 100 * GWENHYWFAR_VERSION_MINOR + GWENHYWFAR_VERSION_PATCHLEVEL) |
A define that combines the gwenhywfar version number into one single integer number. Assumption: Both MINOR and PATCHLEVEL numbers are in the interval [0..99].
Definition at line 53 of file gnc-ab-utils.h.
typedef typedefG_BEGIN_DECLS struct _GncABTransTempl GncABTransTempl |
A template for an AqBanking transaction
Definition at line 43 of file gnc-ab-trans-templ.h.
void gnc_AB_BANKING_delete | ( | AB_BANKING * | api | ) |
Delete the AB_BANKING api. If this is also the one that was cached by gnc_AB_BANKING_new(), then all references are deleted, too.
api | AB_BANKING or NULL for the cached AB_BANKING object |
Definition at line 218 of file gnc-ab-utils.c.
gint gnc_AB_BANKING_fini | ( | AB_BANKING * | api | ) |
Finish the AB_BANKING api. If this is also the one that was cached by gnc_AB_BANKING_new(), then finish only if the decremented reference count reaches zero. After this call, you may only call gnc_AB_BANKING_new() to get the api again in a properly initialized state.
api | AB_BANKING object |
Definition at line 237 of file gnc-ab-utils.c.
AB_BANKING* gnc_AB_BANKING_new | ( | void | ) |
If there is a cached AB_BANKING object, return it initialized. Otherwise, create a new AB_BANKING, let it load its environment from its default configuration and cache it.
Definition at line 137 of file gnc-ab-utils.c.
gchar* gnc_ab_description_to_gnc | ( | const AB_TRANSACTION * | ab_trans | ) |
Create the appropriate description field for a GnuCash Transaction by the information given in the AB_TRANSACTION ab_trans. The returned string must be g_free'd by the caller.
ab_trans | AqBanking transaction |
Definition at line 383 of file gnc-ab-utils.c.
G_BEGIN_DECLS gboolean gnc_ab_enter_daterange | ( | GtkWidget * | parent, |
const char * | heading, | ||
Timespec * | from_date, | ||
gboolean * | last_retv_date, | ||
gboolean * | first_possible_date, | ||
Timespec * | to_date, | ||
gboolean * | to_now | ||
) |
Show a dialog to pick a time frame using a sensible set of default options.
parent | Widget to use as parent, may be NULL |
heading | Descriptive text showed at the top, may be NULL |
from_date | Location to read from the initial and write to the final value of the from date entry |
last_retv_date | Location to read from whether the caller knows the last retrieval date and write to whether the corresponding button has been chosen |
first_possible_date | Location to write to whether the earliest possible date button has been chosen |
to_date | Location to read from the initial and write to the final value of the to date entry |
to_now | Location to write to whether the to now button has been chosen |
Definition at line 52 of file dialog-ab-daterange.c.
AB_ACCOUNT* gnc_ab_get_ab_account | ( | const AB_BANKING * | api, |
Account * | gnc_acc | ||
) |
Get the corresponding AqBanking account to the GnuCash account gnc_acc. Of course this only works after the GnuCash account has been set up for AqBanking use, i.e. the kvp_frame "hbci/..." has been filled with information.
api | The AB_BANKING to get the AB_ACCOUNT from |
gnc_acc | The GnuCash account to query for AB_ACCOUNT reference data |
Definition at line 264 of file gnc-ab-utils.c.
const gchar* gnc_ab_get_account_accountid | ( | const Account * | a | ) |
Return a non-copied pointer to the accountid string in the Account a. The gchar* is still owned by the kvp_frame, so don't free it until you want to delete the whole kvp_frame.
a | Account |
Definition at line 39 of file gnc-ab-kvp.c.
const gchar* gnc_ab_get_account_bankcode | ( | const Account * | a | ) |
Return a non-copied pointer to the bankcode string in the Account a. The gchar* is still owned by the kvp_frame, so don't free it until you want to delete the whole kvp_frame.
a | Account |
Definition at line 59 of file gnc-ab-kvp.c.
Return the time of last online transaction retrieval for Account a.
a | Account |
Definition at line 99 of file gnc-ab-kvp.c.
guint32 gnc_ab_get_account_uid | ( | const Account * | a | ) |
Return the unique id for the AB_BANKING account in the Account a.
a | Account |
Definition at line 79 of file gnc-ab-kvp.c.
GList* gnc_ab_get_book_template_list | ( | QofBook * | b | ) |
Return a non-copied pointer to the GList of kvp_frames which eventually are the template transactions, stored in the given book.
b | Book |
Definition at line 130 of file gnc-ab-kvp.c.
GWEN_DB_NODE* gnc_ab_get_permanent_certs | ( | void | ) |
get the GWEN_DB_NODE from AqBanking configuration files
Definition at line 1077 of file gnc-ab-utils.c.
gchar* gnc_ab_get_purpose | ( | const AB_TRANSACTION * | ab_trans | ) |
Retrieve the merged purpose fields from a transaction. The returned string must be g_free'd by the caller. If there was no purpose, an empty (but allocated) string is returned.
ab_trans | AqBanking transaction |
Definition at line 364 of file gnc-ab-utils.c.
gchar* gnc_ab_get_remote_name | ( | const AB_TRANSACTION * | ab_trans | ) |
Retrieve the merged "remote name" fields from a transaction. The returned string must be g_free'd by the caller. If there was no "remote name" field, NULL (!) is returned.
ab_trans | AqBanking transaction |
Definition at line 342 of file gnc-ab-utils.c.
AB_JOB* gnc_ab_get_trans_job | ( | AB_ACCOUNT * | ab_acc, |
const AB_TRANSACTION * | ab_trans, | ||
GncABTransType | trans_type | ||
) |
FIXME
td | Transaction dialog |
Definition at line 940 of file dialog-ab-trans.c.
G_BEGIN_DECLS void gnc_ab_getbalance | ( | GtkWidget * | parent, |
Account * | gnc_acc | ||
) |
Execute a GetBalance job, show the resulting balance and offer to reconcile the GnuCash account.
parent | Widget to use as parent, may be NULL |
gnc_acc | GnuCash account to fetch balance for |
Definition at line 46 of file gnc-ab-getbalance.c.
G_BEGIN_DECLS void gnc_ab_gettrans | ( | GtkWidget * | parent, |
Account * | gnc_acc | ||
) |
Execute a GetTransactions job.
parent | Widget to use as parent, may be NULL |
gnc_acc | GnuCash account to fetch transactions for |
Definition at line 98 of file gnc-ab-gettrans.c.
guint gnc_ab_ieci_get_found | ( | GncABImExContextImport * | ieci | ) |
Extract awaiting from data.
ieci | The return value of gnc_ab_import_context() |
Definition at line 1053 of file gnc-ab-utils.c.
AB_JOB_LIST2* gnc_ab_ieci_get_job_list | ( | GncABImExContextImport * | ieci | ) |
Extract the job list from data.
ieci | The return value of gnc_ab_import_context() |
Definition at line 1061 of file gnc-ab-utils.c.
gboolean gnc_ab_ieci_run_matcher | ( | GncABImExContextImport * | ieci | ) |
Run the generic transaction matcher dialog.
ieci | The return value of gnc_ab_import_context() |
Definition at line 1069 of file gnc-ab-utils.c.
GncABImExContextImport* gnc_ab_import_context | ( | AB_IMEXPORTER_CONTEXT * | context, |
guint | awaiting, | ||
gboolean | execute_txns, | ||
AB_BANKING * | api, | ||
GtkWidget * | parent | ||
) |
Import balances and transactions found in a AB_IMEXPORTER_CONTEXT into GnuCash. By using awaiting the caller can specify what the user will expect to receive. By using execute_txns, transactions in context can be used to generate corresponding AqBanking jobs, e.g. after a file import.
context | AB_IMEXPORTER_CONTEXT to import |
awaiting | Information the caller expects to receive or wants to ignore, bitmask of AWAIT_* or IGNORE_* values |
execute_txns | If awaiting contains AWAIT_TRANSACTIONS, whether to create an aqbanking job for each of the transactions found |
api | If execute_txns is TRUE, the AB_BANKING to get AB_ACCOUNTs from |
parent | Widget to set new dialogs transient for, may be NULL |
Definition at line 1009 of file gnc-ab-utils.c.
G_BEGIN_DECLS void gnc_ab_initial_assistant | ( | void | ) |
Create and show an assistant for the aqbanking setup.
Definition at line 844 of file assistant-ab-initial.c.
gchar* gnc_AB_JOB_ID_to_string | ( | gulong | job_id | ) |
Return the job_id as string.
job_id |
Definition at line 726 of file gnc-ab-utils.c.
gchar* gnc_AB_JOB_to_readable_string | ( | const AB_JOB * | job | ) |
Return the job as string.
value | AB_JOB or NULL |
Definition at line 714 of file gnc-ab-utils.c.
G_BEGIN_DECLS void gnc_ab_maketrans | ( | GtkWidget * | parent, |
Account * | gnc_acc, | ||
GncABTransType | trans_type | ||
) |
FIXME
parent | Widget to use as parent, may be NULL |
gnc_acc | GnuCash account to fetch balance for |
trans_type | Type of transaction |
Definition at line 81 of file gnc-ab-transfer.c.
gchar* gnc_ab_memo_to_gnc | ( | const AB_TRANSACTION * | ab_trans | ) |
Create the appropriate memo field for a GnuCash Split by the information given in the AB_TRANSACTION ab_trans. The returned string must be g_free'd by the caller.
ab_trans | AqBanking transaction |
Definition at line 419 of file gnc-ab-utils.c.
void gnc_ab_set_account_accountid | ( | Account * | a, |
const gchar * | id | ||
) |
Set the accountid string in the Account a to id. A copy of the string will be stored. The Account will be marked as "dirty".
Definition at line 49 of file gnc-ab-kvp.c.
void gnc_ab_set_account_bankcode | ( | Account * | a, |
const gchar * | code | ||
) |
Set the bankcode string in the Account a to code. A copy of the string will be stored. The Account will be marked as "dirty".
a | Account |
code | Bank code |
Definition at line 69 of file gnc-ab-kvp.c.
Set the time of last online transaction retrieval for Account a. The account will be marked as "dirty".
a | Account |
time | Retrieval time |
Definition at line 109 of file gnc-ab-kvp.c.
void gnc_ab_set_account_uid | ( | Account * | a, |
guint32 | uid | ||
) |
Set the unique id for the AB_BANKING account in the Account a to uid. The Account will be marked as "dirty".
a | Account |
uid | Unique ID |
Definition at line 89 of file gnc-ab-kvp.c.
void gnc_ab_set_book_template_list | ( | QofBook * | b, |
GList * | template_list | ||
) |
Set the GList of kvp_frames of template transactions in the Book b to template_list. No copy of the GList will be stored, the callee becomes the owner and the caller must not free it. The book will be marked "dirty".
b | Book |
template_list | Template list |
Definition at line 138 of file gnc-ab-kvp.c.
void gnc_ab_trans_dialog_free | ( | GncABTransDialog * | td | ) |
Free a Aqbanking transfer dialog
td | Transaction dialog |
Definition at line 826 of file dialog-ab-trans.c.
const AB_TRANSACTION* gnc_ab_trans_dialog_get_ab_trans | ( | const GncABTransDialog * | td | ) |
Receive the Aqbanking Transaction filled by the dialog
td | Transaction dialog |
Definition at line 889 of file dialog-ab-trans.c.
AB_JOB* gnc_ab_trans_dialog_get_job | ( | const GncABTransDialog * | td | ) |
Receive the Aqbanking job associated with the transaction
td | Transaction dialog |
Definition at line 933 of file dialog-ab-trans.c.
GtkWidget* gnc_ab_trans_dialog_get_parent | ( | const GncABTransDialog * | td | ) |
Retrieve the widget used as parent.
td | Transaction dialog |
Definition at line 882 of file dialog-ab-trans.c.
GList* gnc_ab_trans_dialog_get_templ | ( | const GncABTransDialog * | td, |
gboolean * | changed | ||
) |
Retrieve the current list of transaction templates from the dialog td, unless changed is a specified location and the templates have not been touched by the user.
td | Transaction dialog |
changed | Location to store whether the templates have been changed, may be NULL |
Definition at line 862 of file dialog-ab-trans.c.
GncABTransDialog* gnc_ab_trans_dialog_new | ( | GtkWidget * | parent, |
AB_ACCOUNT * | ab_acc, | ||
gint | commodity_scu, | ||
GncABTransType | trans_type, | ||
GList * | templates | ||
) |
Create a new AqBanking transfer dialog
parent | Widget to use as parent, may be NULL |
ab_acc | Aqbanking account |
commodity_scu | commodity used for the amount |
trans_type | Type of transaction |
templates | A GList of template transactions which will become fully managed by the dialog, so do not free it and retrieve snapshots via gnc_ab_trans_dialog_get_templ() |
Definition at line 259 of file dialog-ab-trans.c.
gint gnc_ab_trans_dialog_run_until_ok | ( | GncABTransDialog * | td | ) |
Run the Aqbanking transfer dialog until correct values where entered or the user cancelled the dialog.
td | Transaction dialog |
ab_acc | AqBanking account |
Definition at line 734 of file dialog-ab-trans.c.
gboolean gnc_ab_trans_isSEPA | ( | GncABTransType | t | ) |
Returns true if the given GncABTransType is an European (SEPA) transaction (transfer or debit note), otherwise false.
Definition at line 161 of file dialog-ab-trans.c.
void gnc_ab_trans_templ_free | ( | GncABTransTempl * | t | ) |
Free the memory used by a template.
t | GncABTransTempl to be freed |
Definition at line 124 of file gnc-ab-trans-templ.c.
gnc_numeric gnc_ab_trans_templ_get_amount | ( | const GncABTransTempl * | t | ) |
const gchar* gnc_ab_trans_templ_get_name | ( | const GncABTransTempl * | t | ) |
t | Template |
Definition at line 183 of file gnc-ab-trans-templ.c.
const gchar* gnc_ab_trans_templ_get_purpose | ( | const GncABTransTempl * | t | ) |
t | Template |
Definition at line 218 of file gnc-ab-trans-templ.c.
const gchar* gnc_ab_trans_templ_get_purpose_cont | ( | const GncABTransTempl * | t | ) |
t | Template |
Definition at line 225 of file gnc-ab-trans-templ.c.
const gchar* gnc_ab_trans_templ_get_recp_account | ( | const GncABTransTempl * | t | ) |
t | Template |
Definition at line 197 of file gnc-ab-trans-templ.c.
const gchar* gnc_ab_trans_templ_get_recp_bankcode | ( | const GncABTransTempl * | t | ) |
t | Template |
Definition at line 204 of file gnc-ab-trans-templ.c.
const gchar* gnc_ab_trans_templ_get_recp_name | ( | const GncABTransTempl * | t | ) |
t | Template |
Definition at line 190 of file gnc-ab-trans-templ.c.
void gnc_ab_trans_templ_list_free | ( | GList * | l | ) |
Free the memory used by a list of templates, including the list itself.
l | GList of GncABTransTempl |
Definition at line 138 of file gnc-ab-trans-templ.c.
GList* gnc_ab_trans_templ_list_new_from_kvp_list | ( | GList * | v | ) |
Create a list of templates from a list of kvp_values which in turn contain a KvpFrame.
v | GList of kvp_values |
Definition at line 108 of file gnc-ab-trans-templ.c.
GList* gnc_ab_trans_templ_list_to_kvp_list | ( | GList * | k | ) |
Create a list of kvp_values, which in turn contain a KvpFrame, from a list of templates.
k | GList of GncABTransTempls |
Definition at line 166 of file gnc-ab-trans-templ.c.
GncABTransTempl* gnc_ab_trans_templ_new | ( | void | ) |
Create a template with unset contents.
Definition at line 67 of file gnc-ab-trans-templ.c.
GncABTransTempl* gnc_ab_trans_templ_new_from_kvp | ( | const KvpFrame * | k | ) |
Create a template, taking the values from a KvpFrame.
k | KvpFrame |
Definition at line 93 of file gnc-ab-trans-templ.c.
GncABTransTempl* gnc_ab_trans_templ_new_full | ( | const gchar * | name, |
const gchar * | recp_name, | ||
const gchar * | recp_account, | ||
const gchar * | recp_bankcode, | ||
gnc_numeric | amount, | ||
const gchar * | purpose, | ||
const gchar * | purpose_cont | ||
) |
Create a template with given contents.
name | Name of the template |
recp_name | Name of the recipient |
recp_account | Account Number of the recipient |
recp_bankcode | Bank Code of the recipient |
amount | Amount |
purpose | First purpose line |
purpose_cont | Second purpose line |
void gnc_ab_trans_templ_set_amount | ( | GncABTransTempl * | t, |
gnc_numeric | amount | ||
) |
Replace the amount stored in a template.
t | Template |
amount | Amount |
Definition at line 266 of file gnc-ab-trans-templ.c.
void gnc_ab_trans_templ_set_name | ( | GncABTransTempl * | t, |
const gchar * | name | ||
) |
Set the name of a template.
t | Template |
name | Name |
Definition at line 232 of file gnc-ab-trans-templ.c.
void gnc_ab_trans_templ_set_purpose | ( | GncABTransTempl * | t, |
const gchar * | purpose | ||
) |
Replace the first purpose line stored in a template.
t | Template |
purpose | First purpose line |
Definition at line 273 of file gnc-ab-trans-templ.c.
void gnc_ab_trans_templ_set_purpose_cont | ( | GncABTransTempl * | t, |
const gchar * | purpose_cont | ||
) |
Replace the second purpose line stored in a template.
t | Template |
purpose_cont | Second purpose line |
Definition at line 281 of file gnc-ab-trans-templ.c.
void gnc_ab_trans_templ_set_recp_account | ( | GncABTransTempl * | t, |
const gchar * | recp_account | ||
) |
Replace the Account Number of the recipient stored in a template.
t | Template |
recp_account | Account Number of the recipient |
Definition at line 248 of file gnc-ab-trans-templ.c.
void gnc_ab_trans_templ_set_recp_bankcode | ( | GncABTransTempl * | t, |
const gchar * | recp_bankcode | ||
) |
Replace the Bank Code of the recipient stored in a template.
t | Template |
recp_bankcode | Bank Code of the recipient |
Definition at line 257 of file gnc-ab-trans-templ.c.
void gnc_ab_trans_templ_set_recp_name | ( | GncABTransTempl * | t, |
const gchar * | recp_name | ||
) |
Replace the Account Number of the recipient stored in a template.
t | Template |
recp_name | Account Number of the recipient |
Definition at line 240 of file gnc-ab-trans-templ.c.
KvpFrame* gnc_ab_trans_templ_to_kvp | ( | const GncABTransTempl * | t | ) |
Create a KvpFrame a given template.
t | Template |
Definition at line 147 of file gnc-ab-trans-templ.c.
Transaction* gnc_ab_trans_to_gnc | ( | const AB_TRANSACTION * | ab_trans, |
Account * | gnc_acc | ||
) |
Create an unbalanced and dirty GnuCash transaction with a split to gnc_acc from the information available in the AqBanking transaction ab_trans.
ab_trans | AqBanking transaction |
gnc_acc | Account of to use for the split |
Definition at line 477 of file gnc-ab-utils.c.
gchar* gnc_AB_VALUE_to_readable_string | ( | const AB_VALUE * | value | ) |
Print the value of value with two decimal places and value's currency appended, or 0.0 otherwise
value | AB_VALUE or NULL |
Definition at line 300 of file gnc-ab-utils.c.
G_BEGIN_DECLS void gnc_file_aqbanking_import | ( | const gchar * | aqbanking_importername, |
const gchar * | aqbanking_formatname, | ||
gboolean | exec_as_aqbanking_jobs | ||
) |
This routine will pop up a standard file selection dialog asking the user to pick a file to import. This file will be opened and read. Its contents will be imported into the current book, using the import matcher from import-main-matcher.h.
aqbanking_importername | The aqbanking importer module that should be used. Possible values: "dtaus", "csv", "swift", or more. |
aqbanking_formatname | In aqbanking, each importer has one or more data formats available which define the actual data fields that should be used. In aqbanking, such a different format is called a "profile". Possible values for swift: "swift-mt940" or "swift-mt942", but for all others: "default", or more precisely: Look into $datadir/aqbanking/imexporters and look into the "name" field of the foo.conf files. |
exec_as_aqbanking_jobs | If TRUE, additionally queue the imported transactions as online jobs over aqbanking/HBCI. If FALSE, just import the transactions and that's it. |
Definition at line 66 of file gnc-file-aqb-import.c.
void gnc_GWEN_Fini | ( | void | ) |
GncGWENGui* gnc_GWEN_Gui_get | ( | GtkWidget * | parent | ) |
When called for the first time, create a unique GncGWENGui object featuring a GWEN_GUI with all necessary callbacks, which can serve as a user interface for AqBanking jobs. On later calls, return the object only when it is not active and save to use. Typically, you only need to call gnc_GWEN_Gui_release() once your job has finished.
parent | Widget to set new dialogs transient for, may be NULL |
Definition at line 311 of file gnc-gwen-gui.c.
gboolean gnc_GWEN_Gui_get_close_flag | ( | void | ) |
Get "Close when finished" flag
Definition at line 410 of file gnc-gwen-gui.c.
void gnc_GWEN_Gui_hide_dialog | ( | void | ) |
Hides Online Banking Connection Window (Close log window)
Definition at line 444 of file gnc-gwen-gui.c.
void gnc_GWEN_Gui_log_init | ( | void | ) |
Hook our logging into the gwenhywfar logging framework by creating a minimalistic GWEN_GUI with only a callback for Gwen_Gui_LogHook(). This function can be called more than once, it will unref and replace the currently set GWEN_GUI though.
Definition at line 289 of file gnc-gwen-gui.c.
void gnc_GWEN_Gui_release | ( | GncGWENGui * | gui | ) |
Currently a no-op. The GncGWENGui will not be freed and it is considered finished once the first tracked progress has ended.
gui | The GncGwenGUI returned by gnc_GWEN_Gui_get() |
Definition at line 346 of file gnc-gwen-gui.c.
void gnc_GWEN_Gui_set_close_flag | ( | gboolean | close_when_finished | ) |
Set "Close when finished" flag
gboolean | close_when_finished |
Definition at line 391 of file gnc-gwen-gui.c.
gboolean gnc_GWEN_Gui_show_dialog | ( | void | ) |
Unhides Online Banking Connection Window (Make log visible)
Definition at line 416 of file gnc-gwen-gui.c.
void gnc_GWEN_Gui_shutdown | ( | void | ) |
Free all memory related to both the full-blown and minimalistic GUI objects.
Definition at line 356 of file gnc-gwen-gui.c.
void gnc_GWEN_Init | ( | void | ) |
Initialize the gwenhywfar library by calling GWEN_Init() and setting up gwenhywfar logging.
Definition at line 87 of file gnc-ab-utils.c.
void gnc_plugin_aqbanking_create_plugin | ( | void | ) |
Create a new GncPluginAqBanking object and register it.
Definition at line 707 of file gnc-plugin-aqbanking.c.
GType gnc_plugin_aqbanking_get_type | ( | void | ) |
GncPlugin* gnc_plugin_aqbanking_new | ( | void | ) |
Definition at line 209 of file gnc-plugin-aqbanking.c.
void gnc_plugin_aqbanking_set_logwindow_visible | ( | gboolean | logwindow_visible | ) |
Set MENU_TOGGLE_ACTION_AB_VIEW_LOGWINDOW
Definition at line 470 of file gnc-plugin-aqbanking.c.