aqbanking-6.7.7beta/ 0000755 0001750 0001750 00000000000 15075177326 011340 5 0000000 0000000 aqbanking-6.7.7beta/i18nsources 0000644 0001750 0001750 00000077746 15075177053 013410 0000000 0000000 src/libs/aqbanking/account_type.c
src/libs/aqbanking/banking.c
src/libs/aqbanking/banking_account.c
src/libs/aqbanking/banking_accspec.c
src/libs/aqbanking/banking_bankinfo.c
src/libs/aqbanking/banking_cfg.c
src/libs/aqbanking/banking_dialogs.c
src/libs/aqbanking/banking_imex.c
src/libs/aqbanking/banking_init.c
src/libs/aqbanking/banking_online.c
src/libs/aqbanking/banking_transaction.c
src/libs/aqbanking/banking_update.c
src/libs/aqbanking/banking_user.c
src/libs/aqbanking/banking_compat.c
src/libs/aqbanking/system.h.in
src/libs/aqbanking/version.h.in
src/libs/aqbanking/types/transaction.c
src/libs/aqbanking/types/transactionlimits.c
src/libs/aqbanking/types/refaccount.c
src/libs/aqbanking/types/bankinfoservice.c
src/libs/aqbanking/types/bankinfo.c
src/libs/aqbanking/types/document.c
src/libs/aqbanking/types/message.c
src/libs/aqbanking/types/security.c
src/libs/aqbanking/types/balance.c
src/libs/aqbanking/types/imexporter_accountinfo.c
src/libs/aqbanking/types/imexporter_context.c
src/libs/aqbanking/types/account_spec.c
src/libs/aqbanking/types/value.c
src/libs/aqbanking/types/transaction.xml
src/libs/aqbanking/types/transactionlimits.xml
src/libs/aqbanking/types/refaccount.xml
src/libs/aqbanking/types/security.xml
src/libs/aqbanking/types/bankinfoservice.xml
src/libs/aqbanking/types/bankinfo.xml
src/libs/aqbanking/types/document.xml
src/libs/aqbanking/types/message.xml
src/libs/aqbanking/types/balance.xml
src/libs/aqbanking/types/imexporter_accountinfo.xml
src/libs/aqbanking/types/imexporter_context.xml
src/libs/aqbanking/types/account_spec.xml
src/libs/aqbanking/types/transaction.c
src/libs/aqbanking/types/transactionlimits.c
src/libs/aqbanking/types/refaccount.c
src/libs/aqbanking/types/bankinfoservice.c
src/libs/aqbanking/types/bankinfo.c
src/libs/aqbanking/types/document.c
src/libs/aqbanking/types/message.c
src/libs/aqbanking/types/security.c
src/libs/aqbanking/types/balance.c
src/libs/aqbanking/types/imexporter_accountinfo.c
src/libs/aqbanking/types/imexporter_context.c
src/libs/aqbanking/types/account_spec.c
src/libs/aqbanking/types/transaction_p.h
src/libs/aqbanking/types/transactionlimits_p.h
src/libs/aqbanking/types/refaccount_p.h
src/libs/aqbanking/types/bankinfoservice_p.h
src/libs/aqbanking/types/bankinfo_p.h
src/libs/aqbanking/types/document_p.h
src/libs/aqbanking/types/message_p.h
src/libs/aqbanking/types/security_p.h
src/libs/aqbanking/types/balance_p.h
src/libs/aqbanking/types/imexporter_accountinfo_p.h
src/libs/aqbanking/types/imexporter_context_p.h
src/libs/aqbanking/types/account_spec_p.h
src/libs/aqbanking/types/transaction.h
src/libs/aqbanking/types/transactionlimits.h
src/libs/aqbanking/types/refaccount.h
src/libs/aqbanking/types/bankinfoservice.h
src/libs/aqbanking/types/bankinfo.h
src/libs/aqbanking/types/document.h
src/libs/aqbanking/types/message.h
src/libs/aqbanking/types/security.h
src/libs/aqbanking/types/balance.h
src/libs/aqbanking/types/imexporter_accountinfo.h
src/libs/aqbanking/types/imexporter_context.h
src/libs/aqbanking/types/account_spec.h
src/libs/aqbanking/gui/abgui.c
src/libs/aqbanking/backendsupport/jobqueue.c
src/libs/aqbanking/backendsupport/accountqueue.c
src/libs/aqbanking/backendsupport/userqueue.c
src/libs/aqbanking/backendsupport/providerqueue.c
src/libs/aqbanking/backendsupport/queue.c
src/libs/aqbanking/backendsupport/account.c
src/libs/aqbanking/backendsupport/user.c
src/libs/aqbanking/backendsupport/swiftdescr.c
src/libs/aqbanking/backendsupport/siotlsext.c
src/libs/aqbanking/backendsupport/httpsession.c
src/libs/aqbanking/backendsupport/msgengine.c
src/libs/aqbanking/backendsupport/provider.c
src/libs/aqbanking/backendsupport/bankinfoplugin.c
src/libs/aqbanking/backendsupport/imexporter.c
src/libs/aqbanking/backendsupport/provider_account.c
src/libs/aqbanking/backendsupport/provider_accspec.c
src/libs/aqbanking/backendsupport/provider_user.c
src/libs/aqbanking/backendsupport/provider_queues.c
src/libs/aqbanking/backendsupport/provider_utils.c
src/libs/aqbanking/dialogs/dlg_importer.c
src/libs/aqbanking/dialogs/dlg_selectbankinfo.c
src/libs/aqbanking/dialogs/dlg_setup.c
src/libs/aqbanking/dialogs/dlg_selectbackend.c
src/libs/aqbanking/dialogs/dlg_editaccount.c
src/libs/aqbanking/dialogs/dlg_edituser.c
src/libs/aqbanking/dialogs/dlg_usertype_page.c
src/libs/aqbanking/dialogs/dlg_setup_newuser.c
src/libs/aqbanking/dialogs/dlg_usertype_pagedefault.c
src/libs/aqbanking/dialogs/dlg_newaccount.c
src/libs/aqbanking/dialogs/dlg_newuser.c
src/libs/aqbanking/dialogs/w_profilelist.c
src/libs/aqbanking/dialogs/w_importerlist.c
src/libs/plugins/parsers/swift/swift.c
src/libs/plugins/parsers/swift/swift_tag.c
src/libs/plugins/parsers/swift/swift940.c
src/libs/plugins/parsers/swift/swift940_25.c
src/libs/plugins/parsers/swift/swift940_60.c
src/libs/plugins/parsers/swift/swift940_61.c
src/libs/plugins/parsers/swift/swift940_86.c
src/libs/plugins/parsers/swift/swift940_ns.c
src/libs/plugins/parsers/swift/swift535.c
src/libs/plugins/imexporters/csv/csv.c
src/libs/plugins/imexporters/csv/csv_editprofile.c
src/libs/plugins/imexporters/eri2/eri2.c
src/libs/plugins/imexporters/ofx/parser/ofxxmlctx.c
src/libs/plugins/imexporters/ofx/parser/ofxgroup.c
src/libs/plugins/imexporters/ofx/parser/g_acctinfo.c
src/libs/plugins/imexporters/ofx/parser/g_acctinfors.c
src/libs/plugins/imexporters/ofx/parser/g_acctinfotrnrs.c
src/libs/plugins/imexporters/ofx/parser/g_bal.c
src/libs/plugins/imexporters/ofx/parser/g_bankacc.c
src/libs/plugins/imexporters/ofx/parser/g_bankacctinfo.c
src/libs/plugins/imexporters/ofx/parser/g_bankmsgsrsv1.c
src/libs/plugins/imexporters/ofx/parser/g_banktran.c
src/libs/plugins/imexporters/ofx/parser/g_banktranlist.c
src/libs/plugins/imexporters/ofx/parser/g_buymf.c
src/libs/plugins/imexporters/ofx/parser/g_buystock.c
src/libs/plugins/imexporters/ofx/parser/g_creditcardmsgsrsv1.c
src/libs/plugins/imexporters/ofx/parser/g_document.c
src/libs/plugins/imexporters/ofx/parser/g_generic.c
src/libs/plugins/imexporters/ofx/parser/g_ignore.c
src/libs/plugins/imexporters/ofx/parser/g_income.c
src/libs/plugins/imexporters/ofx/parser/g_invacc.c
src/libs/plugins/imexporters/ofx/parser/g_invbuy.c
src/libs/plugins/imexporters/ofx/parser/g_invpos.c
src/libs/plugins/imexporters/ofx/parser/g_invposlist.c
src/libs/plugins/imexporters/ofx/parser/g_invstmtmsgsrsv1.c
src/libs/plugins/imexporters/ofx/parser/g_invstmtrs.c
src/libs/plugins/imexporters/ofx/parser/g_invstmttrnrs.c
src/libs/plugins/imexporters/ofx/parser/g_invtran.c
src/libs/plugins/imexporters/ofx/parser/g_invtranlist.c
src/libs/plugins/imexporters/ofx/parser/g_mfinfo.c
src/libs/plugins/imexporters/ofx/parser/g_ofx.c
src/libs/plugins/imexporters/ofx/parser/g_posmf.c
src/libs/plugins/imexporters/ofx/parser/g_posstock.c
src/libs/plugins/imexporters/ofx/parser/g_reinvest.c
src/libs/plugins/imexporters/ofx/parser/g_secid.c
src/libs/plugins/imexporters/ofx/parser/g_secinfo.c
src/libs/plugins/imexporters/ofx/parser/g_seclist.c
src/libs/plugins/imexporters/ofx/parser/g_seclistmsgsrsv1.c
src/libs/plugins/imexporters/ofx/parser/g_signonmsgsrsv1.c
src/libs/plugins/imexporters/ofx/parser/g_signupmsgsrsv1.c
src/libs/plugins/imexporters/ofx/parser/g_sonrs.c
src/libs/plugins/imexporters/ofx/parser/g_status.c
src/libs/plugins/imexporters/ofx/parser/g_stmtrn.c
src/libs/plugins/imexporters/ofx/parser/g_stmtrs.c
src/libs/plugins/imexporters/ofx/parser/g_stmttrnrs.c
src/libs/plugins/imexporters/ofx/parser/g_stockinfo.c
src/libs/plugins/imexporters/ofx/ofx.c
src/libs/plugins/imexporters/openhbci1/openhbci1.c
src/libs/plugins/imexporters/swift/swift.c
src/libs/plugins/imexporters/xmldb/xmldb.c
src/libs/plugins/imexporters/yellownet/yellownet.c
src/libs/plugins/imexporters/sepa/sepa.c
src/libs/plugins/imexporters/ctxfile/ctxfile.c
src/libs/plugins/imexporters/q43/q43.c
src/libs/plugins/imexporters/camt/camt.c
src/libs/plugins/imexporters/xml/paymentgroup.c
src/libs/plugins/imexporters/xml/xml.c
src/libs/plugins/imexporters/xml/xml_sepa_exp.c
src/libs/plugins/imexporters/xml/xml_sepa_imp.c
src/libs/plugins/imexporters/xml/paymentgroup.c
src/libs/plugins/imexporters/xml/paymentgroup_p.h
src/libs/plugins/imexporters/xml/paymentgroup.h
src/libs/plugins/bankinfo/generic/generic.c
src/libs/plugins/bankinfo/de/de.c
src/libs/plugins/backends/aqfints/dummy.c
src/libs/plugins/backends/aqfints/libaqfints/aqfints.c
src/libs/plugins/backends/aqfints/libaqfints/parser/element.c
src/libs/plugins/backends/aqfints/libaqfints/parser/segment.c
src/libs/plugins/backends/aqfints/libaqfints/parser/jobdef.c
src/libs/plugins/backends/aqfints/libaqfints/parser/parser.c
src/libs/plugins/backends/aqfints/libaqfints/parser/parser_xml.c
src/libs/plugins/backends/aqfints/libaqfints/parser/parser_normalize.c
src/libs/plugins/backends/aqfints/libaqfints/parser/parser_dump.c
src/libs/plugins/backends/aqfints/libaqfints/parser/parser_hbci.c
src/libs/plugins/backends/aqfints/libaqfints/parser/parser_dbread.c
src/libs/plugins/backends/aqfints/libaqfints/parser/parser_dbwrite.c
src/libs/plugins/backends/aqfints/libaqfints/parser/parser_internal.c
src/libs/plugins/backends/aqfints/libaqfints/parser/element.xml
src/libs/plugins/backends/aqfints/libaqfints/parser/segment.xml
src/libs/plugins/backends/aqfints/libaqfints/parser/jobdef.xml
src/libs/plugins/backends/aqfints/libaqfints/parser/element.c
src/libs/plugins/backends/aqfints/libaqfints/parser/segment.c
src/libs/plugins/backends/aqfints/libaqfints/parser/jobdef.c
src/libs/plugins/backends/aqfints/libaqfints/parser/element_p.h
src/libs/plugins/backends/aqfints/libaqfints/parser/segment_p.h
src/libs/plugins/backends/aqfints/libaqfints/parser/element.h
src/libs/plugins/backends/aqfints/libaqfints/parser/segment.h
src/libs/plugins/backends/aqfints/libaqfints/parser/jobdef.h
src/libs/plugins/backends/aqfints/libaqfints/msg/keydescr.c
src/libs/plugins/backends/aqfints/libaqfints/msg/message.c
src/libs/plugins/backends/aqfints/libaqfints/msg/keydescr.xml
src/libs/plugins/backends/aqfints/libaqfints/msg/keydescr.c
src/libs/plugins/backends/aqfints/libaqfints/msg/keydescr_p.h
src/libs/plugins/backends/aqfints/libaqfints/msg/keydescr.h
src/libs/plugins/backends/aqfints/libaqfints/service/dummy.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bankdata.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdjob.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpd.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddrservice.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddr.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdsecprofile.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanjobinfo.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/taninfo.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanmethod.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpd_read.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpd_write.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanjobinfo.xml
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/taninfo.xml
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanmethod.xml
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bankdata.xml
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdjob.xml
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddrservice.xml
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddr.xml
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpd.xml
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdsecprofile.xml
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bankdata.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdjob.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpd.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddrservice.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddr.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdsecprofile.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanjobinfo.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/taninfo.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanmethod.c
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bankdata_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdjob_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpd_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddrservice_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddr_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdsecprofile_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanjobinfo_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/taninfo_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanmethod_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bankdata.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdjob.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpd.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddrservice.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdaddr.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpdsecprofile.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanjobinfo.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/taninfo.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/tanmethod.h
src/libs/plugins/backends/aqfints/libaqfints/service/bpd/bpd.fints
src/libs/plugins/backends/aqfints/libaqfints/service/upd/updjob.c
src/libs/plugins/backends/aqfints/libaqfints/service/upd/accountdata.c
src/libs/plugins/backends/aqfints/libaqfints/service/upd/userdata.c
src/libs/plugins/backends/aqfints/libaqfints/service/upd/upd_read.c
src/libs/plugins/backends/aqfints/libaqfints/service/upd/upd_write.c
src/libs/plugins/backends/aqfints/libaqfints/service/upd/updjob.xml
src/libs/plugins/backends/aqfints/libaqfints/service/upd/accountdata.xml
src/libs/plugins/backends/aqfints/libaqfints/service/upd/userdata.xml
src/libs/plugins/backends/aqfints/libaqfints/service/upd/updjob.c
src/libs/plugins/backends/aqfints/libaqfints/service/upd/accountdata.c
src/libs/plugins/backends/aqfints/libaqfints/service/upd/userdata.c
src/libs/plugins/backends/aqfints/libaqfints/service/upd/updjob_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/upd/accountdata_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/upd/userdata_p.h
src/libs/plugins/backends/aqfints/libaqfints/service/upd/updjob.h
src/libs/plugins/backends/aqfints/libaqfints/service/upd/accountdata.h
src/libs/plugins/backends/aqfints/libaqfints/service/upd/userdata.h
src/libs/plugins/backends/aqfints/libaqfints/service/upd/upd.fints
src/libs/plugins/backends/aqfints/libaqfints/transport/transport.c
src/libs/plugins/backends/aqfints/libaqfints/transport/transportssl.c
src/libs/plugins/backends/aqfints/libaqfints/transport/transporthbci.c
src/libs/plugins/backends/aqfints/libaqfints/transport/transport.xml
src/libs/plugins/backends/aqfints/libaqfints/transport/transport.c
src/libs/plugins/backends/aqfints/libaqfints/transport/transport_p.h
src/libs/plugins/backends/aqfints/libaqfints/transport/transport.h
src/libs/plugins/backends/aqfints/libaqfints/session/cryptparams.c
src/libs/plugins/backends/aqfints/libaqfints/session/session.c
src/libs/plugins/backends/aqfints/libaqfints/session/s_getanonbpd.c
src/libs/plugins/backends/aqfints/libaqfints/session/s_message.c
src/libs/plugins/backends/aqfints/libaqfints/session/s_log.c
src/libs/plugins/backends/aqfints/libaqfints/session/s_decode.c
src/libs/plugins/backends/aqfints/libaqfints/session/s_decrypt.c
src/libs/plugins/backends/aqfints/libaqfints/session/s_verify.c
src/libs/plugins/backends/aqfints/libaqfints/session/s_sign.c
src/libs/plugins/backends/aqfints/libaqfints/session/s_encrypt.c
src/libs/plugins/backends/aqfints/libaqfints/session/s_encode.c
src/libs/plugins/backends/aqfints/libaqfints/session/cryptparams.xml
src/libs/plugins/backends/aqfints/libaqfints/session/cryptparams.c
src/libs/plugins/backends/aqfints/libaqfints/session/cryptparams_p.h
src/libs/plugins/backends/aqfints/libaqfints/session/cryptparams.h
src/libs/plugins/backends/aqfints/libaqfints/session/pintan/s_pintan.c
src/libs/plugins/backends/aqfints/libaqfints/session/pintan/s_decrypt_pintan.c
src/libs/plugins/backends/aqfints/libaqfints/session/pintan/s_verify_pintan.c
src/libs/plugins/backends/aqfints/libaqfints/session/pintan/s_sign_pintan.c
src/libs/plugins/backends/aqfints/libaqfints/session/pintan/s_encrypt_pintan.c
src/libs/plugins/backends/aqfints/libaqfints/session/hbci/s_hbci.c
src/libs/plugins/backends/aqfints/libaqfints/session/hbci/s_sign_hbci.c
src/libs/plugins/backends/aqfints/libaqfints/session/hbci/s_decrypt_hbci.c
src/libs/plugins/backends/aqfints/libaqfints/session/hbci/s_encrypt_hbci.c
src/libs/plugins/backends/aqfints/libaqfints/session/hbci/s_verify_hbci.c
src/libs/plugins/backends/aqfints/banking/provider.c
src/libs/plugins/backends/aqfints/banking/control/control.c
src/libs/plugins/backends/aqfints/banking/control/logfile.c
src/libs/plugins/backends/aqhbci/aqhbci.c
src/libs/plugins/backends/aqhbci/msglayer/bpd.c
src/libs/plugins/backends/aqhbci/msglayer/dialog.c
src/libs/plugins/backends/aqhbci/msglayer/hbci.c
src/libs/plugins/backends/aqhbci/msglayer/hbci-updates.c
src/libs/plugins/backends/aqhbci/msglayer/message.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt_rxh_common.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt_rxh_encrypt.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt_rxh_decrypt.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt_rxh_verify.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt_pintan.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt_pintan_verify.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt_pintan_sign.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt_pintan_encrypt.c
src/libs/plugins/backends/aqhbci/msglayer/msgengine.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt.c
src/libs/plugins/backends/aqhbci/msglayer/msgcrypt_ddv.c
src/libs/plugins/backends/aqhbci/msglayer/dialog_hbci.c
src/libs/plugins/backends/aqhbci/msglayer/dialog_https.c
src/libs/plugins/backends/aqhbci/joblayer/job.c
src/libs/plugins/backends/aqhbci/joblayer/job_commit.c
src/libs/plugins/backends/aqhbci/joblayer/job_commit_key.c
src/libs/plugins/backends/aqhbci/joblayer/job_crypt.c
src/libs/plugins/backends/aqhbci/joblayer/job_swift.c
src/libs/plugins/backends/aqhbci/joblayer/jobqueue.c
src/libs/plugins/backends/aqhbci/joblayer/jobqueue_dispatch.c
src/libs/plugins/backends/aqhbci/joblayer/jobqueue_tomsg.c
src/libs/plugins/backends/aqhbci/joblayer/jobqueue_addjob.c
src/libs/plugins/backends/aqhbci/joblayer/jobqueue_bpd.c
src/libs/plugins/backends/aqhbci/joblayer/jobqueue_account.c
src/libs/plugins/backends/aqhbci/joblayer/result.c
src/libs/plugins/backends/aqhbci/ajobs/accountjob.c
src/libs/plugins/backends/aqhbci/ajobs/accountjob_ntl.c
src/libs/plugins/backends/aqhbci/ajobs/jobgetbalance.c
src/libs/plugins/backends/aqhbci/ajobs/jobgettransactions.c
src/libs/plugins/backends/aqhbci/ajobs/jobgettrans_camt.c
src/libs/plugins/backends/aqhbci/ajobs/jobforeignxferwh.c
src/libs/plugins/backends/aqhbci/ajobs/jobloadcellphone.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepadebitdatedsinglecreate.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepadebitdatedmulticreate.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepacor1datedmulticreate.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepaxfermulti.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepaxfersingle.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepadebitsingle.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepacor1datedsinglecreate.c
src/libs/plugins/backends/aqhbci/ajobs/jobtransferbase.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepastandingordercreate.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepastandingorderget.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepastandingordermodify.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepastandingorderdelete.c
src/libs/plugins/backends/aqhbci/ajobs/jobgetestatements.c
src/libs/plugins/backends/aqhbci/ajobs/jobgetdepot.c
src/libs/plugins/backends/aqhbci/ajobs/jobsepainternalxfer.c
src/libs/plugins/backends/aqhbci/admjobs/jobgetkeys.c
src/libs/plugins/backends/aqhbci/admjobs/jobsendkeys.c
src/libs/plugins/backends/aqhbci/admjobs/jobchangekeys.c
src/libs/plugins/backends/aqhbci/admjobs/jobtan.c
src/libs/plugins/backends/aqhbci/admjobs/jobgetsepainfo.c
src/libs/plugins/backends/aqhbci/admjobs/jobgetsysid.c
src/libs/plugins/backends/aqhbci/admjobs/jobgetbankinfo.c
src/libs/plugins/backends/aqhbci/admjobs/jobunblockpin.c
src/libs/plugins/backends/aqhbci/admjobs/jobacknowledge.c
src/libs/plugins/backends/aqhbci/admjobs/jobgettargetacc.c
src/libs/plugins/backends/aqhbci/admjobs/jobvpa.c
src/libs/plugins/backends/aqhbci/admjobs/jobvpp.c
src/libs/plugins/backends/aqhbci/admjobs/vop_result.c
src/libs/plugins/backends/aqhbci/applayer/adminjobs.c
src/libs/plugins/backends/aqhbci/applayer/hhd.c
src/libs/plugins/backends/aqhbci/applayer/outbox.c
src/libs/plugins/backends/aqhbci/applayer/cbox.c
src/libs/plugins/backends/aqhbci/applayer/cbox_recv.c
src/libs/plugins/backends/aqhbci/applayer/cbox_send.c
src/libs/plugins/backends/aqhbci/applayer/cbox_psd2.c
src/libs/plugins/backends/aqhbci/applayer/cbox_hbci.c
src/libs/plugins/backends/aqhbci/applayer/cbox_dialog.c
src/libs/plugins/backends/aqhbci/applayer/cbox_itan.c
src/libs/plugins/backends/aqhbci/applayer/cbox_queue.c
src/libs/plugins/backends/aqhbci/applayer/cbox_voptan.c
src/libs/plugins/backends/aqhbci/applayer/cbox_vophbci.c
src/libs/plugins/backends/aqhbci/applayer/cbox_vopmsg.c
src/libs/plugins/backends/aqhbci/banking/provider.c
src/libs/plugins/backends/aqhbci/banking/provider_accspec.c
src/libs/plugins/backends/aqhbci/banking/provider_dialogs.c
src/libs/plugins/backends/aqhbci/banking/provider_iniletter.c
src/libs/plugins/backends/aqhbci/banking/provider_job.c
src/libs/plugins/backends/aqhbci/banking/provider_keys.c
src/libs/plugins/backends/aqhbci/banking/provider_online.c
src/libs/plugins/backends/aqhbci/banking/provider_sendcmd.c
src/libs/plugins/backends/aqhbci/banking/provider_tan.c
src/libs/plugins/backends/aqhbci/banking/provider_update.c
src/libs/plugins/backends/aqhbci/banking/account.c
src/libs/plugins/backends/aqhbci/banking/user.c
src/libs/plugins/backends/aqhbci/tan/tanmethod.c
src/libs/plugins/backends/aqhbci/tan/tanmechanism.c
src/libs/plugins/backends/aqhbci/tan/tan_chiptan_opt.c
src/libs/plugins/backends/aqhbci/tan/tan_image.c
src/libs/plugins/backends/aqhbci/tan/tan_text.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_edituserddv.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_ddvcard_special.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_edituserpintan.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_edituserrdh.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_pintan.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_pintan_special.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_ddvcard.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_zkacard.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_newkeyfile.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_rdh_special.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_importkeyfile.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_newuser.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_choose_usertype.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_editaccount.c
src/libs/plugins/backends/aqhbci/dialogs/dlg_pintan_tanmode.c
src/libs/plugins/backends/aqhbci/dialogs/w_hbciversioncombo.c
src/libs/plugins/backends/aqhbci/dialogs/w_accounttypecombo.c
src/libs/plugins/backends/aqhbci/dialogs/w_usercombo.c
src/libs/plugins/backends/aqhbci/dialogs/w_tanmethodcombo.c
src/libs/plugins/backends/aqhbci/dialogs/w_rdhversioncombo.c
src/libs/plugins/backends/aqhbci/dialogs/w_userstatuscombo.c
src/libs/plugins/backends/aqhbci/dialogs/w_utils.c
src/libs/plugins/backends/aqhbci/control/main.c
src/libs/plugins/backends/aqhbci/control/addaccount.c
src/libs/plugins/backends/aqhbci/control/addsubaccountflags.c
src/libs/plugins/backends/aqhbci/control/addsubuserflags.c
src/libs/plugins/backends/aqhbci/control/adduser.c
src/libs/plugins/backends/aqhbci/control/changepin.c
src/libs/plugins/backends/aqhbci/control/unblockpin.c
src/libs/plugins/backends/aqhbci/control/createkeys.c
src/libs/plugins/backends/aqhbci/control/delaccount.c
src/libs/plugins/backends/aqhbci/control/deluser.c
src/libs/plugins/backends/aqhbci/control/getaccounts.c
src/libs/plugins/backends/aqhbci/control/getaccsepa.c
src/libs/plugins/backends/aqhbci/control/getcert.c
src/libs/plugins/backends/aqhbci/control/getitanmodes.c
src/libs/plugins/backends/aqhbci/control/getkeys.c
src/libs/plugins/backends/aqhbci/control/getsysid.c
src/libs/plugins/backends/aqhbci/control/iniletter.c
src/libs/plugins/backends/aqhbci/control/listaccounts.c
src/libs/plugins/backends/aqhbci/control/listitanmodes.c
src/libs/plugins/backends/aqhbci/control/listusers.c
src/libs/plugins/backends/aqhbci/control/mkpinlist.c
src/libs/plugins/backends/aqhbci/control/logfile.c
src/libs/plugins/backends/aqhbci/control/sendkeys.c
src/libs/plugins/backends/aqhbci/control/changekeys.c
src/libs/plugins/backends/aqhbci/control/sethbciversion.c
src/libs/plugins/backends/aqhbci/control/setitanmode.c
src/libs/plugins/backends/aqhbci/control/setmaxtransfers.c
src/libs/plugins/backends/aqhbci/control/setsepaprofile.c
src/libs/plugins/backends/aqhbci/control/settanmediumid.c
src/libs/plugins/backends/aqhbci/control/getbankinfo.c
src/libs/plugins/backends/aqhbci/control/settanmechanism.c
src/libs/plugins/backends/aqhbci/control/gettargetacc.c
src/libs/plugins/backends/aqhbci/control/test.c
src/libs/plugins/backends/aqofxconnect/account.c
src/libs/plugins/backends/aqofxconnect/user.c
src/libs/plugins/backends/aqofxconnect/provider.c
src/libs/plugins/backends/aqofxconnect/provider_accspec.c
src/libs/plugins/backends/aqofxconnect/provider_sendcmd.c
src/libs/plugins/backends/aqofxconnect/provider_update.c
src/libs/plugins/backends/aqofxconnect/libofxhome/oh_institute_data.c
src/libs/plugins/backends/aqofxconnect/libofxhome/oh_institute_spec.c
src/libs/plugins/backends/aqofxconnect/libofxhome/ofxhome.c
src/libs/plugins/backends/aqofxconnect/libofxhome/dlg_getinst.c
src/libs/plugins/backends/aqofxconnect/common/io_network.c
src/libs/plugins/backends/aqofxconnect/common/n_acctinfo.c
src/libs/plugins/backends/aqofxconnect/common/n_signon.c
src/libs/plugins/backends/aqofxconnect/common/n_statement.c
src/libs/plugins/backends/aqofxconnect/common/n_utils.c
src/libs/plugins/backends/aqofxconnect/v1/n_header.c
src/libs/plugins/backends/aqofxconnect/v1/n_toofx.c
src/libs/plugins/backends/aqofxconnect/v1/r_accounts.c
src/libs/plugins/backends/aqofxconnect/v1/r_statements.c
src/libs/plugins/backends/aqofxconnect/v2/n_header.c
src/libs/plugins/backends/aqofxconnect/v2/r_accounts.c
src/libs/plugins/backends/aqofxconnect/v2/r_statements.c
src/libs/plugins/backends/aqofxconnect/control/control.c
src/libs/plugins/backends/aqofxconnect/control/adduser.c
src/libs/plugins/backends/aqofxconnect/control/getaccounts.c
src/libs/plugins/backends/aqofxconnect/control/listusers.c
src/libs/plugins/backends/aqofxconnect/dialogs/dlg_edituser.c
src/libs/plugins/backends/aqofxconnect/dialogs/dlg_newuser.c
src/libs/plugins/backends/aqofxconnect/dialogs/dlg_ofx_special.c
src/libs/plugins/backends/aqnone/provider.c
src/libs/plugins/backends/aqebics/msg/keys.c
src/libs/plugins/backends/aqebics/msg/msg.c
src/libs/plugins/backends/aqebics/msg/xml.c
src/libs/plugins/backends/aqebics/msg/zip.c
src/libs/plugins/backends/aqebics/msg/eu.c
src/libs/plugins/backends/aqebics/client/account.c
src/libs/plugins/backends/aqebics/client/user.c
src/libs/plugins/backends/aqebics/client/dialog.c
src/libs/plugins/backends/aqebics/client/provider.c
src/libs/plugins/backends/aqebics/client/provider_sendcmd.c
src/libs/plugins/backends/aqebics/client/provider_accspec.c
src/libs/plugins/backends/aqebics/client/p_encipher.c
src/libs/plugins/backends/aqebics/client/p_encipher_e001.c
src/libs/plugins/backends/aqebics/client/p_encipher_e002.c
src/libs/plugins/backends/aqebics/client/p_decipher.c
src/libs/plugins/backends/aqebics/client/p_eu.c
src/libs/plugins/backends/aqebics/client/p_eu_a004.c
src/libs/plugins/backends/aqebics/client/p_eu_a005.c
src/libs/plugins/backends/aqebics/client/p_sign.c
src/libs/plugins/backends/aqebics/client/p_sign_x001.c
src/libs/plugins/backends/aqebics/client/p_sign_x002.c
src/libs/plugins/backends/aqebics/client/p_tools.c
src/libs/plugins/backends/aqebics/dialogs/dlg_edituser.c
src/libs/plugins/backends/aqebics/dialogs/dlg_newkeyfile.c
src/libs/plugins/backends/aqebics/dialogs/dlg_user_special.c
src/libs/plugins/backends/aqebics/control/main.c
src/libs/plugins/backends/aqebics/control/addaccount.c
src/libs/plugins/backends/aqebics/control/addsubuserflags.c
src/libs/plugins/backends/aqebics/control/adduser.c
src/libs/plugins/backends/aqebics/control/createkeys.c
src/libs/plugins/backends/aqebics/control/createtempkey.c
src/libs/plugins/backends/aqebics/control/download.c
src/libs/plugins/backends/aqebics/control/sendkeys.c
src/libs/plugins/backends/aqebics/control/sendsignkey.c
src/libs/plugins/backends/aqebics/control/getaccounts.c
src/libs/plugins/backends/aqebics/control/getkeys.c
src/libs/plugins/backends/aqebics/control/iniletter.c
src/libs/plugins/backends/aqebics/control/hialetter.c
src/libs/plugins/backends/aqebics/control/sendhpd.c
src/libs/plugins/backends/aqebics/control/sendhkd.c
src/libs/plugins/backends/aqebics/control/upload.c
src/libs/plugins/backends/aqebics/control/utils.c
src/libs/plugins/backends/aqebics/control/mkpinlist.c
src/libs/plugins/backends/aqebics/control/resetuser.c
src/libs/plugins/backends/aqebics/control/getcert.c
src/libs/plugins/backends/aqebics/control/listusers.c
src/libs/plugins/backends/aqebics/control/listaccounts.c
src/libs/plugins/backends/aqebics/control/setebicsversion.c
src/libs/plugins/backends/aqebics/requests/r_download.c
src/libs/plugins/backends/aqebics/requests/r_download_h002.c
src/libs/plugins/backends/aqebics/requests/r_download_h003.c
src/libs/plugins/backends/aqebics/requests/r_hia.c
src/libs/plugins/backends/aqebics/requests/r_hia_h002.c
src/libs/plugins/backends/aqebics/requests/r_hia_h003.c
src/libs/plugins/backends/aqebics/requests/r_hia_h004.c
src/libs/plugins/backends/aqebics/requests/r_hkd_htd.c
src/libs/plugins/backends/aqebics/requests/r_hpb.c
src/libs/plugins/backends/aqebics/requests/r_hpb_h002.c
src/libs/plugins/backends/aqebics/requests/r_hpb_h003.c
src/libs/plugins/backends/aqebics/requests/r_hpb_h004.c
src/libs/plugins/backends/aqebics/requests/r_hpd.c
src/libs/plugins/backends/aqebics/requests/r_ini.c
src/libs/plugins/backends/aqebics/requests/r_ini_h002.c
src/libs/plugins/backends/aqebics/requests/r_ini_h003.c
src/libs/plugins/backends/aqebics/requests/r_ini_h004.c
src/libs/plugins/backends/aqebics/requests/r_pub.c
src/libs/plugins/backends/aqebics/requests/r_pub_h002.c
src/libs/plugins/backends/aqebics/requests/r_pub_h003.c
src/libs/plugins/backends/aqebics/requests/r_unsecured.c
src/libs/plugins/backends/aqebics/requests/r_unsecured_h004.c
src/libs/plugins/backends/aqebics/requests/r_upload.c
src/libs/plugins/backends/aqebics/requests/r_upload_h002.c
src/libs/plugins/backends/aqebics/requests/r_upload_h003.c
src/libs/plugins/backends/aqebics/dummy.c
src/libs/plugins/backends/aqpaypal/control/main.c
src/libs/plugins/backends/aqpaypal/control/adduser.c
src/libs/plugins/backends/aqpaypal/control/listaccounts.c
src/libs/plugins/backends/aqpaypal/control/listusers.c
src/libs/plugins/backends/aqpaypal/control/setsecrets.c
src/libs/plugins/backends/aqpaypal/user.c
src/libs/plugins/backends/aqpaypal/provider.c
src/libs/plugins/backends/aqpaypal/provider_accspec.c
src/libs/plugins/backends/aqpaypal/provider_credentials.c
src/libs/plugins/backends/aqpaypal/provider_request.c
src/libs/plugins/backends/aqpaypal/provider_getstm.c
src/libs/plugins/backends/aqpaypal/provider_getbalance.c
src/libs/plugins/backends/aqpaypal/provider_sendcmd.c
src/libs/plugins/backends/aqpaypal/provider_update.c
src/libs/plugins/backends/aqpaypal/dlg_newuser.c
src/libs/plugins/backends/aqpaypal/dlg_edituser.c
src/libs/plugins/backends/aqpaypal/dlg_editsecret.c
src/libs/plugins/backends/aqgivve/cardsdialog.c
src/libs/plugins/backends/aqgivve/merchant.c
src/libs/plugins/backends/aqgivve/meta.c
src/libs/plugins/backends/aqgivve/provider.c
src/libs/plugins/backends/aqgivve/provider_request.c
src/libs/plugins/backends/aqgivve/userdialog.c
src/libs/plugins/backends/aqgivve/voucher.c
src/libs/plugins/backends/aqgivve/voucherlist.c
src/libs/plugins/backends/aqgivve/voucherowner.c
aqbanking-6.7.7beta/COPYING 0000664 0001750 0001750 00000147051 14576127360 012323 0000000 0000000
Licenses
1. AqBanking
============
AqBanking is licensed under the GPLv2 or GPLv3 (see below).
All contributions from the following authors are licensed under
the "Modified BSD-License" (see at the end of this document):
- Christian Stimming
- Patrick Prasse
- Stephen R. Besch
- G. Paul Ziemba
- Tomas Pospisek
- Paul Conrady
- Matthias Gehre
- Holger Magnussen
- Stefan Bayer
- Thomas Bethge
- Tobias Deiminger
- Rico Rommel
All contributions from Micha Lenk are licensed either under the terms
of the GPL in the version AqBanking is released with, or under the terms
of the "Modified BSD-License" (see at the end of this document), at your
choice.
All contributions from Martin Preuss are licensed under the GPL.
Hence, the full package is licensed under GPL.
3. GNU GPL v2
=============
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
----------------------------------------------------------------
4. GNU GPL v3
=============
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Copyright (C)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Copyright (C)
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
5. Modified BSD-License
=======================
Modified BSD-License
(Source: E.g. http://en.wikipedia.org/wiki/BSD_licenses)
Copyright (c) 2004-2008 Christian Stimming
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Christian Stimming nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY Christian Stimming ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Christian Stimming BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
aqbanking-6.7.7beta/Makefile.cvs 0000664 0001750 0001750 00000015740 14546575647 013535 0000000 0000000
MY_CFLAGS=-ggdb -Wall -O
#MP_CONF_FLAGS=--enable-maintainer-mode --disable-static
MP_CONF_FLAGS=INSTALL="/usr/bin/install -p" --enable-maintainer-mode --disable-static --enable-local
WIN32_OPTIONS=\
--host=i586-mingw32msvc \
--target=i586-mingw32msvc \
--enable-version-specific-runtime-libs \
--with-gcc \
--with-gnu-ld \
--without-x \
--enable-threads=win32 \
--disable-win32-registry
MINGW32_PREFIX=/usr/i586-mingw32msvc
WIN32_INSTALL_DIR=/home/martin/install/win32
default: all
dist:
@echo "This file is to make it easier for you to create all you need"
aclocal -I ./m4
autoheader
# use --include-deps, if you want to release the stuff. Don't use it for
# yourself
if test ! -f i18nsources; then echo > i18nsources; fi
automake --include-deps
autoconf
touch stamp-h.in
rm -f `find . -name \*~`
rm -Rf `find . -type d -name CVS`
rm -f `find . -type f -name .cvsignore`
rm -Rf apidoc
rm -Rf gwenipc
rm -f Makefile.cvs
rm -Rf autom4te.cache
cvsclean::
if test ! -f i18nsources; then echo > i18nsources; fi
automake --include-deps
autoconf
touch stamp-h.in
rm -Rf gwenipc
rm -f `find . -name \*~`
rm -Rf apidoc
rm -Rf autom4te.cache
all:
libtoolize -f --automake
@if test -r config.status; then \
prefix=`grep '@prefix@' config.status |cut -d , -f 3`; \
gwen_prefix=`grep '@GWEN_PREFIX@' config.status |cut -d , -f 3`; \
fi; \
if test -z "$${gwen_prefix}" -a -z "$${ACLOCAL_FLAGS}"; then \
gwen_bin_dir=`gwenhywfar-config --bindir`; \
gwen_prefix=`dirname $${gwen_bin_dir}`; \
fi; \
for A in "$${gwen_prefix}/share/aclocal" "$${prefix}/share/aclocal" m4; do \
if test -d "$${A}"; then \
ACLOCAL_FLAGS="$${ACLOCAL_FLAGS} -I $${A}"; \
fi; \
done; \
echo "aclocal $${ACLOCAL_FLAGS}"; \
aclocal $${ACLOCAL_FLAGS} || (echo -e '***\n*** If the line above shows the error message "macro AC_GWENHYWFAR not \n*** found", you need to specify the environment variable ACLOCAL_FLAGS \n*** to be "-I GWENHYWFAR_PREFIX/share/aclocal". For example, do the following:\n***\n*** export ACLOCAL_FLAGS="-I ${HOME}/usr/share/aclocal"\n*** make -f Makefile.cvs\n***'; exit 1)
@if ! grep -q AC_GWENHYWFAR aclocal.m4 ; then echo -e "***\n*** Error: The configure macro of the gwenhywfar package could not be found. \n*** Please specify the environment variable ACLOCAL_FLAGS \n*** to be \"-I GWENHYWFAR_PREFIX/share/aclocal\". \n"; exit 1 ; fi
@if ! grep -q PKG_CHECK_MODULES aclocal.m4 ; then echo -e "***\n*** Error: The configure macro of the pkg-config package \n*** (usually included in gnome) could not be found. \n*** Please specify the environment variable ACLOCAL_FLAGS \n*** to be \"-I GNOME_PREFIX/share/aclocal\". \n"; exit 1 ; fi
autoheader
if test ! -f i18nsources; then echo > i18nsources; fi
if test ! -f qtsources; then echo > qtsources; fi
automake --add-missing
@echo "autoconf"; \
autoconf || (echo -e '***\n*** If the line above shows the error message "possibly undefined macro: \n*** AC_GWENHYWFAR", you need to specify the environment variable ACLOCAL_FLAGS \n*** to be "-I GWENHYWFAR_PREFIX/share/aclocal". For example, do the following:\n***\n*** export ACLOCAL_FLAGS="-I ${HOME}/usr/share/aclocal"\n*** make -f Makefile.cvs\n***'; exit 1)
@echo "Now you can run ./configure"
mp:
libtoolize -f --automake
aclocal -I ./m4
autoheader
if test ! -f i18nsources; then echo > i18nsources; fi
automake --add-missing
autoconf
PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):./m4" \
CXXFLAGS="-ggdb -Wall" \
CFLAGS="-ggdb -Wall" \
./configure $(MP_CONF_FLAGS) \
--with-backends="aqfints aqhbci aqofxconnect aqnone aqpaypal aqebics aqgivve" \
--prefix=/usr/local --enable-full-doc=yes
make sources
clang:
libtoolize -f --automake
aclocal -I ./m4
autoheader
if test ! -f i18nsources; then echo > i18nsources; fi
automake --add-missing
autoconf
PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):./m4" \
CC=clang \
CXX=clang \
CXXFLAGS="-ggdb -Wall" \
CFLAGS="-ggdb -Wall" \
./configure $(MP_CONF_FLAGS) \
--with-backends="aqhbci aqofxconnect aqebics"
make sources
mp-priv:
libtoolize -f --automake
aclocal -I ./m4
autoheader
if test ! -f i18nsources; then echo > i18nsources; fi
automake --add-missing
autoconf
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:./m4" \
CXXFLAGS="-ggdb -Wall" \
CFLAGS="-ggdb -Wall" \
LIBOFX_CFLAGS="-I/opt/devel/4/include" \
LIBOFX_LIBS="-L/opt/devel/4/lib -lofx" \
./configure $(MP_CONF_FLAGS) \
--with-backends="aqhbci aqofxconnect" \
--with-frontends="" \
--with-gwen-dir=/opt/devel/4 \
--with-chipcard-client-dir=/opt/devel/4 \
--prefix=/opt/devel/4
make sources
mp-orig:
libtoolize -f --automake
aclocal -I ./m4
autoheader
if test ! -f i18nsources; then echo > i18nsources; fi
automake --add-missing
autoconf
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:./m4" CXXFLAGS="-ggdb -Wall" CFLAGS="$(MP_CFLAGS)" ./configure $(MP_CONF_FLAGS) --with-backends="aqhbci aqofxconnect aqdtaus aqyellownet aqgeldkarte" --with-frontends="" --with-gwen-dir=/opt/devel --with-chipcard-client-dir=/opt/devel
make sources
mp2:
libtoolize -f --automake
aclocal -I ./m4
autoheader
if test ! -f i18nsources; then echo > i18nsources; fi
automake --add-missing
autoconf
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:./m4" CXXFLAGS="-ggdb -Wall" CFLAGS="$(MP_CFLAGS)" ./configure $(MP_CONF_FLAGS) --with-backends="aqhbci aqofxconnect aqdtaus" --with-frontends=""
make sources
mp-win:
PKG_CONFIG_PATH="$PKG_CONFIG_PATH:./m4" CXXFLAGS="-Wall" CFLAGS="-Wall" ./configure --prefix=/c/posix --with-gwen-dir=/c/posix --enable-local
mp-w32:
libtoolize -f --automake
aclocal -I ./m4
autoheader
automake --add-missing
autoconf
PATH="$(MINGW32_PREFIX)/bin:$(PATH)" \
PKG_CONFIG_PATH=$(WIN32_INSTALL_DIR)/lib/pkgconfig \
CFLAGS="$(MY_CFLAGS) -I$(WIN32_INSTALL_DIR)/include -L$(WIN32_INSTALL_DIR)/lib" CXXFLAGS="-ggdb -Wall -I$(WIN32_INSTALL_DIR)/include -L$(WIN32_INSTALL_DIR)/lib" \
DLLTOOL=i586-mingw32msvc-dlltool \
OBJDUMP=i586-mingw32msvc-objdump \
LD=i586-mingw32msvc-ld \
AR=i586-mingw32msvc-ar \
NM=i586-mingw32msvc-nm \
RANLIB=i586-mingw32msvc-ranlib \
STRIP=i586-mingw32msvc-strip \
STRIPPROG=i586-mingw32msvc-strip \
AS=i586-mingw32msvc-as \
RC=i586-mingw32msvc-windres \
./configure \
--prefix=$(WIN32_INSTALL_DIR) $(WIN32_OPTIONS) \
--enable-release \
--with-gwen-dir=$(WIN32_INSTALL_DIR) \
--with-frontends="" \
--with-backends="aqhbci aqofxconnect" \
--disable-tutorials \
--with-xmlmerge=/usr/bin/xmlmerge
git-log:
git-log --pretty="format:%ad %an%n%s%n%b" --since="2008-08-26" >git.log
sanitize:
libtoolize -f --automake
aclocal -I ./m4
autoheader
if test ! -f i18nsources; then echo > i18nsources; fi
automake --add-missing
autoconf
PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):./m4" \
CC=clang \
CXX=clang \
CXXFLAGS="-ggdb -Wall" \
CFLAGS="-ggdb -Wall -fsanitize=undefined -fsanitize=address" \
./configure $(MP_CONF_FLAGS) \
--with-backends="aqfints aqhbci aqofxconnect aqnone aqpaypal aqebics" \
--prefix=/usr/local --enable-full-doc=yes
make sources
aqbanking-6.7.7beta/aqbanking.iss.in 0000664 0001750 0001750 00000030365 14043610744 014337 0000000 0000000 ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Input configuration for the Inno Setup Compiler
; Copyright (c) 2005 Christian Stimming
;
; Inno Setup Compiler: See http://www.jrsoftware.org/isdl.php
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Setup]
; Using the name here directly because we want it capitalized
AppName=AqBanking
AppVerName=AqBanking @VERSION@
AppPublisher=AqBanking Development Team
AppPublisherURL=http://sourceforge.net/projects/aqbanking
AppSupportURL=http://sourceforge.net/support/getsupport.php?group_id=115695
AppUpdatesURL=http://sourceforge.net/project/showfiles.php?group_id=115695
Compression=lzma
DefaultDirName={pf}\@PACKAGE@
DirExistsWarning=no
InfoAfterFile=README
LicenseFile=COPYING
OutputBaseFilename=@PACKAGE@-@VERSION@-setup
OutputDir=.
UninstallFilesDir={app}\uninstall\@PACKAGE@
[Types]
Name: "full"; Description: "{cm:FullInstall}"
Name: "binary"; Description: "{cm:BinaryInstall}"
Name: "custom"; Description: "{cm:CustomInstall}"; Flags: iscustom
[Components]
Name: "main"; Description: "{cm:MainFiles}"; Types: full binary custom; Flags: fixed
Name: "devel"; Description: "{cm:DevelFiles}"; Types: full
Name: "doc"; Description: "{cm:DocFiles}"; Types: full
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Here we configure the included files and the place of their
; installation
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Files]
; All main DLLs
Source: "win32-tmp\usr\bin\*.dll"; DestDir: "{app}\bin"; Flags: sharedfile promptifolder replacesameversion; Components: main
; Everything from the lib directory, including all plugins
Source: "win32-tmp\usr\lib\lib*.la"; DestDir: "{app}\lib"; Components: main
Source: "win32-tmp\usr\lib\aqbanking\*"; DestDir: "{app}\lib\aqbanking"; Flags: recursesubdirs; Components: main
; The plugins that belong to gwenhywfar.
Source: "win32-tmp\gwen\dbio\*"; DestDir: "{reg:HKLM\Software\Gwenhywfar\Paths,dbio-plugins|{app}\lib\@PACKAGE@\plugins\@AQBANKING_SO_EFFECTIVE@}"; Flags: ignoreversion recursesubdirs; Components: main
Source: "win32-tmp\gwen\crypttoken\*"; DestDir: "{reg:HKLM\Software\Gwenhywfar\Paths,plugindir|{app}\lib\@PACKAGE@\plugins\@AQBANKING_SO_EFFECTIVE@}\crypttoken"; Flags: ignoreversion recursesubdirs; Components: main
; The commandline tools
Source: "win32-tmp\usr\bin\*.exe"; DestDir: "{app}\bin"; Components: main
; The config-scripts. They are post-processed by the Pascal script below.
Source: "@PACKAGE@-config.in.in"; DestDir: "{app}\bin"; Components: devel; AfterInstall: MyAfterInstallConfig(ExpandConstant('{app}\bin\@PACKAGE@-config'))
Source: "src\plugins\backends\aqhbci\aqhbci-config.in.in"; DestDir: "{app}\bin"; Components: devel; AfterInstall: MyAfterInstallConfig(ExpandConstant('{app}\bin\aqhbci-config'))
Source: "src\frontends\qbanking\lib\qbanking-config.in.in"; DestDir: "{app}\bin"; Components: devel; AfterInstall: MyAfterInstallConfig(ExpandConstant('{app}\bin\qbanking-config'))
; The headers, and the aclocal macro.
Source: "win32-tmp\usr\include\*"; DestDir: "{app}\include"; Flags: ignoreversion recursesubdirs; Components: devel
Source: "win32-tmp\usr\share\*"; DestDir: "{app}\share"; Flags: ignoreversion recursesubdirs; Components: devel
Source: "win32-tmp\share\*"; DestDir: "{app}\share"; Flags: ignoreversion recursesubdirs; Components: devel
; And all the documentation
Source: "README"; DestDir: "{app}\doc\@PACKAGE@"; Components: doc
Source: "NEWS"; DestDir: "{app}\doc\@PACKAGE@"; Components: doc
Source: "COPYING"; DestDir: "{app}\doc\@PACKAGE@"; Components: doc
Source: "AUTHORS"; DestDir: "{app}\doc\@PACKAGE@"; Components: doc
Source: "ChangeLog"; DestDir: "{app}\doc\@PACKAGE@"; Components: doc
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Delete automatically created files on uninstall
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[UninstallDelete]
Type: files; Name: "{app}\bin\*-config"
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Define the registry keys Setup should create (HKLM = HKEY_LOCAL_MACHINE)
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Registry]
Root: HKLM; Subkey: "Software\Aqbanking"; ValueType: none; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: none; Flags: uninsdeletekeyifempty
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "prefix"; ValueData: "{app}"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "libdir"; ValueData: "{app}\lib"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "pkglibdir"; ValueData: "{app}\lib\@PACKAGE@"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "plugindir"; ValueData: "{app}\lib\@PACKAGE@\plugins\@AQBANKING_SO_EFFECTIVE@"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "providerdir"; ValueData: "{app}\lib\@PACKAGE@\plugins\@AQBANKING_SO_EFFECTIVE@\providers"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "bankinfodir"; ValueData: "{app}\lib\@PACKAGE@\plugins\@AQBANKING_SO_EFFECTIVE@\bankinfo"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "imexporterdir"; ValueData: "{app}\lib\@PACKAGE@\plugins\@AQBANKING_SO_EFFECTIVE@\imexporters"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "importerdir"; ValueData: "{app}\lib\@PACKAGE@\plugins\@AQBANKING_SO_EFFECTIVE@\imexporters"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "pkgdatadir"; ValueData: "{app}\share\@PACKAGE@"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "sysconfdir"; ValueData: "{app}\etc"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "wizarddir"; ValueData: "{app}\lib\@PACKAGE@\plugins\@AQBANKING_SO_EFFECTIVE@\wizards"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\Aqbanking\Paths"; ValueType: string; ValueName: "localedir"; ValueData: "{app}\share\locale"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\AqBanking\Paths"; ValueType: string; ValueName: "xmldatadir"; ValueData: "{app}\share\aqhbci\xml"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "Software\AqBanking\Paths"; ValueType: string; ValueName: "cfgmoduledir"; ValueData: "{app}\lib\@PACKAGE@\plugins\@AQBANKING_SO_EFFECTIVE@\frontends\qbanking\cfgmodules"; Flags: uninsdeletevalue
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; This large section is a Pascal scripting program that will modify
; the aqbanking-config shell script so that it then includes the
; correct values according to our local installation. See
; http://www.remobjects.com/?ps for a syntax reference.
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Code]
function MingwBacksl(const S: String): String;
begin
{ Modify the path name S so that it can be used by MinGW }
if Length(ExtractFileDrive(S)) = 0 then
Result := S
else begin
Result := '/'+S;
StringChange(Result, ':\', '\');
end;
StringChange(Result, '\', '/');
end;
procedure MyAfterInstallConfig(FileName: String);
var
FileString, appdir, windir, bindir, includedir, plugindir, datadir, pkgdatadir: String;
Res: Boolean;
begin
{ Load the unchanged original file }
Res := LoadStringFromFile(Format('%s.in.in',[FileName]), FileString);
if Res = False then
MsgBox('Error on loading '+FileName+'.in.in for final adaptation', mbInformation, MB_OK);
{ Insert the custom file header; #10 is the linefeed character }
Insert('#!/bin/sh '#10'dir="@prefix'+'@"'#10, FileString, 0);
{ Get the installation-specific paths }
windir := MingwBacksl(ExpandConstant('{win}'));
appdir := MingwBacksl(ExpandConstant('{app}'));
includedir := appdir + '/include';
bindir := appdir + '/bin';
plugindir := appdir + '/lib/@PACKAGE@/plugins/@AQBANKING_SO_EFFECTIVE@';
datadir := appdir + '/share';
pkgdatadir := datadir + '/@PACKAGE@';
{ Now make all the replacements }
{ Explanation: StringChange(S,FromStr,ToStr): Change all occurances in S of FromStr to ToStr. }
StringChange(FileString, '@'+'prefix@', appdir);
StringChange(FileString, '@'+'libdir@', windir);
StringChange(FileString, '@'+'all_includes@', '@all_includes@');
StringChange(FileString, '@'+'aqbanking_includes@', '-I'+includedir);
StringChange(FileString, '@'+'aqbanking_ldflags@', '-L'+bindir);
StringChange(FileString, '@'+'aqbanking_libs@', '@aqbanking_libs@');
StringChange(FileString, '@'+'aqbanking_plugindir@', plugindir);
StringChange(FileString, '@'+'aqbanking_pkgdatadir@', pkgdatadir);
StringChange(FileString, '@'+'AQBANKING_VERSION_MAJOR@', '@AQBANKING_VERSION_MAJOR@');
StringChange(FileString, '@'+'AQBANKING_VERSION_MINOR@', '@AQBANKING_VERSION_MINOR@');
StringChange(FileString, '@'+'AQBANKING_VERSION_PATCHLEVEL@', '@AQBANKING_VERSION_PATCHLEVEL@');
StringChange(FileString, '@'+'AQBANKING_VERSION_BUILD@', '@AQBANKING_VERSION_BUILD@');
StringChange(FileString, '@'+'AQBANKING_VERSION_TAG@', '@AQBANKING_VERSION_TAG@');
StringChange(FileString, '@'+'cbanking_libs@', '-L' + bindir + ' @cbanking_libs@');
StringChange(FileString, '@'+'cbanking_includes@', '-I'+includedir);
StringChange(FileString, '@'+'qbanking_libs@', '-L' + bindir + ' @qbanking_libs@');
StringChange(FileString, '@'+'qbanking_includes@', '-I'+includedir);
StringChange(FileString, '@'+'qbanking_data@', datadir + '/qbanking');
StringChange(FileString, '@'+'QBANKING_VERSION_MAJOR@', '@QBANKING_VERSION_MAJOR@');
StringChange(FileString, '@'+'QBANKING_VERSION_MINOR@', '@QBANKING_VERSION_MINOR@');
StringChange(FileString, '@'+'QBANKING_VERSION_PATCHLEVEL@', '@QBANKING_VERSION_PATCHLEVEL@');
StringChange(FileString, '@'+'QBANKING_VERSION_BUILD@', '@QBANKING_VERSION_BUILD@');
StringChange(FileString, '@'+'kbanking_libs@', '-L' + bindir + ' @kbanking_libs@');
StringChange(FileString, '@'+'kbanking_includes@', '-I'+includedir);
{ Save the final file }
Res := SaveStringToFile(FileName, FileString, False);
if Res = False then
MsgBox('Error on saving '+FileName+' for final adaptation', mbInformation, MB_OK);
end;
function InitializeSetup(): Boolean;
begin
Result := Length(ExpandConstant('{reg:HKLM\Software\Gwenhywfar\Paths,prefix|a}')) > 1;
if Result = False then
MsgBox(ExpandConstant('{cm:PrereqNotFound}'), mbInformation, MB_OK);
end;
[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "de"; MessagesFile: "compiler:Languages\German.isl"
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; These are only for improved text messages
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;[Messages]
;; *** "Select Destination" wizard page
;SelectDirLabel3=Setup will install [name] into the following folder. If you have MinGW installed on your system, you can safely choose MinGW's root folder here as well (e.g. c:\msys\1.0).
;
;de.SelectDirLabel3=Das Setup wird [name] in den folgenden Ordner installieren. Wenn Sie MinGW auf Ihrem Computer installiert haben, knnen Sie hier problemlos das Root-Verzeichnis von MinGW angeben (z.B. c:\msys\1.0).
; The customized messages with their translations here.
[CustomMessages]
; *** Prerequisite message
PrereqNotFound=The setup program did not find the DLL of the Gwenhywfar package and/or the registry keys of the Gwenhywfar installation. You need to install Gwenhywfar from the setup executable, and then start this setup again.
de.PrereqNotFound=Das Setup-Programm hat die DLL des Gwenhywfar-Pakets und/oder dessen Registry-Keys nicht gefunden. Sie mssen zuerst Gwenhywfar ber dessen Setup-Programm installieren und dann dieses Setup-Programm erneut starten.
; *** "Select Components" wizard page
FullInstall=Full installation
BinaryInstall=Install only libraries
CustomInstall=Custom installation
MainFiles=Aqbanking DLL Library
DevelFiles=Development files
DocFiles=Documentation files
de.FullInstall=Komplett-Installation
de.BinaryInstall=Nur Bibliotheken installieren
de.CustomInstall=Benutzerdefiniert
de.MainFiles=Aqbanking DLL Bibliothek
de.DevelFiles=Entwickler-Dateien
de.DocFiles=Dokumentations-Dateien
aqbanking-6.7.7beta/Doxyfile.in 0000664 0001750 0001750 00000320725 14043610744 013374 0000000 0000000 # Doxyfile 1.8.11
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
#
# All text after a double hash (##) is considered a comment and is placed in
# front of the TAG it is preceding.
#
# All text after a single hash (#) is considered a comment and will be ignored.
# The format is:
# TAG = value [value, ...]
# For lists, items can also be appended using:
# TAG += value [value, ...]
# Values that contain spaces should be placed between quotes (\" \").
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
# This tag specifies the encoding used for all characters in the config file
# that follow. The default is UTF-8 which is also the encoding used for all text
# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv
# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv
# for the list of possible encodings.
# The default value is: UTF-8.
DOXYFILE_ENCODING = UTF-8
# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by
# double-quotes, unless you are using Doxywizard) that should identify the
# project for which the documentation is generated. This name is used in the
# title of most generated pages and in a few other places.
# The default value is: My Project.
PROJECT_NAME = aqbanking
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
# could be handy for archiving the generated documentation or if some version
# control system is used.
PROJECT_NUMBER = @AQBANKING_VERSION_RELEASE_STRING@
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
# quick idea about the purpose of the project. Keep the description short.
PROJECT_BRIEF =
# With the PROJECT_LOGO tag one can specify a logo or an icon that is included
# in the documentation. The maximum height of the logo should not exceed 55
# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy
# the logo to the output directory.
PROJECT_LOGO =
# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path
# into which the generated documentation will be written. If a relative path is
# entered, it will be relative to the location where doxygen was started. If
# left blank the current directory will be used.
OUTPUT_DIRECTORY = apidoc
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
# directories (in 2 levels) under the output directory of each output format and
# will distribute the generated files over these directories. Enabling this
# option can be useful when feeding doxygen a huge amount of source files, where
# putting all generated files in the same directory would otherwise causes
# performance problems for the file system.
# The default value is: NO.
CREATE_SUBDIRS = no
# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
# characters to appear in the names of generated files. If set to NO, non-ASCII
# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode
# U+3044.
# The default value is: NO.
ALLOW_UNICODE_NAMES = NO
# The OUTPUT_LANGUAGE tag is used to specify the language in which all
# documentation generated by doxygen is written. Doxygen will use this
# information to generate all constant output in the proper language.
# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,
# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,
# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),
# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,
# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,
# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,
# Ukrainian and Vietnamese.
# The default value is: English.
OUTPUT_LANGUAGE = English
# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member
# descriptions after the members that are listed in the file and class
# documentation (similar to Javadoc). Set to NO to disable this.
# The default value is: YES.
BRIEF_MEMBER_DESC = YES
# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief
# description of a member or function before the detailed description
#
# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
# brief descriptions will be completely suppressed.
# The default value is: YES.
REPEAT_BRIEF = YES
# This tag implements a quasi-intelligent brief description abbreviator that is
# used to form the text in various listings. Each string in this list, if found
# as the leading text of the brief description, will be stripped from the text
# and the result, after processing the whole list, is used as the annotated
# text. Otherwise, the brief description is used as-is. If left blank, the
# following values are used ($name is automatically replaced with the name of
# the entity):The $name class, The $name widget, The $name file, is, provides,
# specifies, contains, represents, a, an and the.
ABBREVIATE_BRIEF =
# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
# doxygen will generate a detailed section even if there is only a brief
# description.
# The default value is: NO.
ALWAYS_DETAILED_SEC = YES
# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
# inherited members of a class in the documentation of that class as if those
# members were ordinary class members. Constructors, destructors and assignment
# operators of the base classes will not be shown.
# The default value is: NO.
INLINE_INHERITED_MEMB = NO
# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path
# before files name in the file list and in the header files. If set to NO the
# shortest path that makes the file name unique will be used
# The default value is: YES.
FULL_PATH_NAMES = NO
# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
# Stripping is only done if one of the specified strings matches the left-hand
# part of the path. The tag can be used to show relative paths in the file list.
# If left blank the directory from which doxygen is run is used as the path to
# strip.
#
# Note that you can specify absolute paths here, but also relative paths, which
# will be relative from the directory where doxygen is started.
# This tag requires that the tag FULL_PATH_NAMES is set to YES.
STRIP_FROM_PATH =
# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
# path mentioned in the documentation of a class, which tells the reader which
# header file to include in order to use a class. If left blank only the name of
# the header file containing the class definition is used. Otherwise one should
# specify the list of include paths that are normally passed to the compiler
# using the -I flag.
STRIP_FROM_INC_PATH =
# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
# less readable) file names. This can be useful is your file systems doesn't
# support long names like on DOS, Mac, or CD-ROM.
# The default value is: NO.
SHORT_NAMES = no
# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
# first line (until the first dot) of a Javadoc-style comment as the brief
# description. If set to NO, the Javadoc-style will behave just like regular Qt-
# style comments (thus requiring an explicit @brief command for a brief
# description.)
# The default value is: NO.
JAVADOC_AUTOBRIEF = NO
# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
# line (until the first dot) of a Qt-style comment as the brief description. If
# set to NO, the Qt-style will behave just like regular Qt-style comments (thus
# requiring an explicit \brief command for a brief description.)
# The default value is: NO.
QT_AUTOBRIEF = NO
# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
# a brief description. This used to be the default behavior. The new default is
# to treat a multi-line C++ comment block as a detailed description. Set this
# tag to YES if you prefer the old behavior instead.
#
# Note that setting this tag to YES also means that rational rose comments are
# not recognized any more.
# The default value is: NO.
MULTILINE_CPP_IS_BRIEF = NO
# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the
# documentation from any documented member that it re-implements.
# The default value is: YES.
INHERIT_DOCS = YES
# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new
# page for each member. If set to NO, the documentation of a member will be part
# of the file/class/namespace that contains it.
# The default value is: NO.
SEPARATE_MEMBER_PAGES = NO
# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen
# uses this value to replace tabs by spaces in code fragments.
# Minimum value: 1, maximum value: 16, default value: 4.
TAB_SIZE = 8
# This tag can be used to specify a number of aliases that act as commands in
# the documentation. An alias has the form:
# name=value
# For example adding
# "sideeffect=@par Side Effects:\n"
# will allow you to put the command \sideeffect (or @sideeffect) in the
# documentation, which will result in a user-defined paragraph with heading
# "Side Effects:". You can put \n's in the value part of an alias to insert
# newlines.
ALIASES =
# This tag can be used to specify a number of word-keyword mappings (TCL only).
# A mapping has the form "name=value". For example adding "class=itcl::class"
# will allow you to use the command class in the itcl::class meaning.
TCL_SUBST =
# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources
# only. Doxygen will then generate output that is more tailored for C. For
# instance, some of the names that are used will be different. The list of all
# members will be omitted, etc.
# The default value is: NO.
OPTIMIZE_OUTPUT_FOR_C = YES
# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or
# Python sources only. Doxygen will then generate output that is more tailored
# for that language. For instance, namespaces will be presented as packages,
# qualified scopes will look different, etc.
# The default value is: NO.
OPTIMIZE_OUTPUT_JAVA = NO
# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
# sources. Doxygen will then generate output that is tailored for Fortran.
# The default value is: NO.
OPTIMIZE_FOR_FORTRAN = NO
# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
# sources. Doxygen will then generate output that is tailored for VHDL.
# The default value is: NO.
OPTIMIZE_OUTPUT_VHDL = NO
# Doxygen selects the parser to use depending on the extension of the files it
# parses. With this tag you can assign which parser to use for a given
# extension. Doxygen has a built-in mapping, but you can override or extend it
# using this tag. The format is ext=language, where ext is a file extension, and
# language is one of the parsers supported by doxygen: IDL, Java, Javascript,
# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran:
# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran:
# Fortran. In the later case the parser tries to guess whether the code is fixed
# or free formatted code, this is the default for Fortran type files), VHDL. For
# instance to make doxygen treat .inc files as Fortran files (default is PHP),
# and .f files as C (default is Fortran), use: inc=Fortran f=C.
#
# Note: For files without extension you can use no_extension as a placeholder.
#
# Note that for custom extensions you also need to set FILE_PATTERNS otherwise
# the files are not read by doxygen.
EXTENSION_MAPPING =
# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments
# according to the Markdown format, which allows for more readable
# documentation. See http://daringfireball.net/projects/markdown/ for details.
# The output of markdown processing is further processed by doxygen, so you can
# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in
# case of backward compatibilities issues.
# The default value is: YES.
MARKDOWN_SUPPORT = YES
# When enabled doxygen tries to link words that correspond to documented
# classes, or namespaces to their corresponding documentation. Such a link can
# be prevented in individual cases by putting a % sign in front of the word or
# globally by setting AUTOLINK_SUPPORT to NO.
# The default value is: YES.
AUTOLINK_SUPPORT = YES
# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
# to include (a tag file for) the STL sources as input, then you should set this
# tag to YES in order to let doxygen match functions declarations and
# definitions whose arguments contain STL classes (e.g. func(std::string);
# versus func(std::string) {}). This also make the inheritance and collaboration
# diagrams that involve STL classes more complete and accurate.
# The default value is: NO.
BUILTIN_STL_SUPPORT = NO
# If you use Microsoft's C++/CLI language, you should set this option to YES to
# enable parsing support.
# The default value is: NO.
CPP_CLI_SUPPORT = NO
# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:
# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen
# will parse them like normal C++ but will assume all classes use public instead
# of private inheritance when no explicit protection keyword is present.
# The default value is: NO.
SIP_SUPPORT = NO
# For Microsoft's IDL there are propget and propput attributes to indicate
# getter and setter methods for a property. Setting this option to YES will make
# doxygen to replace the get and set methods by a property in the documentation.
# This will only work if the methods are indeed getting or setting a simple
# type. If this is not the case, or you want to show the methods anyway, you
# should set this option to NO.
# The default value is: YES.
IDL_PROPERTY_SUPPORT = YES
# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
# tag is set to YES then doxygen will reuse the documentation of the first
# member in the group (if any) for the other members of the group. By default
# all members of a group must be documented explicitly.
# The default value is: NO.
DISTRIBUTE_GROUP_DOC = NO
# If one adds a struct or class to a group and this option is enabled, then also
# any nested class or struct is added to the same group. By default this option
# is disabled and one has to add nested compounds explicitly via \ingroup.
# The default value is: NO.
GROUP_NESTED_COMPOUNDS = NO
# Set the SUBGROUPING tag to YES to allow class member groups of the same type
# (for instance a group of public functions) to be put as a subgroup of that
# type (e.g. under the Public Functions section). Set it to NO to prevent
# subgrouping. Alternatively, this can be done per class using the
# \nosubgrouping command.
# The default value is: YES.
SUBGROUPING = YES
# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions
# are shown inside the group in which they are included (e.g. using \ingroup)
# instead of on a separate page (for HTML and Man pages) or section (for LaTeX
# and RTF).
#
# Note that this feature does not work in combination with
# SEPARATE_MEMBER_PAGES.
# The default value is: NO.
INLINE_GROUPED_CLASSES = NO
# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions
# with only public data fields or simple typedef fields will be shown inline in
# the documentation of the scope in which they are defined (i.e. file,
# namespace, or group documentation), provided this scope is documented. If set
# to NO, structs, classes, and unions are shown on a separate page (for HTML and
# Man pages) or section (for LaTeX and RTF).
# The default value is: NO.
INLINE_SIMPLE_STRUCTS = YES
# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or
# enum is documented as struct, union, or enum with the name of the typedef. So
# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
# with name TypeT. When disabled the typedef will appear as a member of a file,
# namespace, or class. And the struct will be named TypeS. This can typically be
# useful for C code in case the coding convention dictates that all compound
# types are typedef'ed and only the typedef is referenced, never the tag name.
# The default value is: NO.
TYPEDEF_HIDES_STRUCT = NO
# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
# cache is used to resolve symbols given their name and scope. Since this can be
# an expensive process and often the same symbol appears multiple times in the
# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small
# doxygen will become slower. If the cache is too large, memory is wasted. The
# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range
# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536
# symbols. At the end of a run doxygen will report the cache usage and suggest
# the optimal cache size from a speed point of view.
# Minimum value: 0, maximum value: 9, default value: 0.
LOOKUP_CACHE_SIZE = 0
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in
# documentation are documented, even if no documentation was available. Private
# class members and static file members will be hidden unless the
# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.
# Note: This will also disable the warnings about undocumented members that are
# normally produced when WARNINGS is set to YES.
# The default value is: NO.
EXTRACT_ALL = YES
# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will
# be included in the documentation.
# The default value is: NO.
EXTRACT_PRIVATE = YES
# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal
# scope will be included in the documentation.
# The default value is: NO.
EXTRACT_PACKAGE = YES
# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be
# included in the documentation.
# The default value is: NO.
EXTRACT_STATIC = YES
# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined
# locally in source files will be included in the documentation. If set to NO,
# only classes defined in header files are included. Does not have any effect
# for Java sources.
# The default value is: YES.
EXTRACT_LOCAL_CLASSES = YES
# This flag is only useful for Objective-C code. If set to YES, local methods,
# which are defined in the implementation section but not in the interface are
# included in the documentation. If set to NO, only methods in the interface are
# included.
# The default value is: NO.
EXTRACT_LOCAL_METHODS = NO
# If this flag is set to YES, the members of anonymous namespaces will be
# extracted and appear in the documentation as a namespace called
# 'anonymous_namespace{file}', where file will be replaced with the base name of
# the file that contains the anonymous namespace. By default anonymous namespace
# are hidden.
# The default value is: NO.
EXTRACT_ANON_NSPACES = YES
# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all
# undocumented members inside documented classes or files. If set to NO these
# members will be included in the various overviews, but no documentation
# section is generated. This option has no effect if EXTRACT_ALL is enabled.
# The default value is: NO.
HIDE_UNDOC_MEMBERS = NO
# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all
# undocumented classes that are normally visible in the class hierarchy. If set
# to NO, these classes will be included in the various overviews. This option
# has no effect if EXTRACT_ALL is enabled.
# The default value is: NO.
HIDE_UNDOC_CLASSES = NO
# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend
# (class|struct|union) declarations. If set to NO, these declarations will be
# included in the documentation.
# The default value is: NO.
HIDE_FRIEND_COMPOUNDS = NO
# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
# documentation blocks found inside the body of a function. If set to NO, these
# blocks will be appended to the function's detailed documentation block.
# The default value is: NO.
HIDE_IN_BODY_DOCS = NO
# The INTERNAL_DOCS tag determines if documentation that is typed after a
# \internal command is included. If the tag is set to NO then the documentation
# will be excluded. Set it to YES to include the internal documentation.
# The default value is: NO.
INTERNAL_DOCS = YES
# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file
# names in lower-case letters. If set to YES, upper-case letters are also
# allowed. This is useful if you have classes or files whose names only differ
# in case and if your file system supports case sensitive file names. Windows
# and Mac users are advised to set this option to NO.
# The default value is: system dependent.
CASE_SENSE_NAMES = YES
# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with
# their full class and namespace scopes in the documentation. If set to YES, the
# scope will be hidden.
# The default value is: NO.
HIDE_SCOPE_NAMES = NO
# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will
# append additional text to a page's title, such as Class Reference. If set to
# YES the compound reference will be hidden.
# The default value is: NO.
HIDE_COMPOUND_REFERENCE= NO
# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of
# the files that are included by a file in the documentation of that file.
# The default value is: YES.
SHOW_INCLUDE_FILES = YES
# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each
# grouped member an include statement to the documentation, telling the reader
# which file to include in order to use the member.
# The default value is: NO.
SHOW_GROUPED_MEMB_INC = NO
# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include
# files with double quotes in the documentation rather than with sharp brackets.
# The default value is: NO.
FORCE_LOCAL_INCLUDES = NO
# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the
# documentation for inline members.
# The default value is: YES.
INLINE_INFO = YES
# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the
# (detailed) documentation of file and class members alphabetically by member
# name. If set to NO, the members will appear in declaration order.
# The default value is: YES.
SORT_MEMBER_DOCS = YES
# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief
# descriptions of file, namespace and class members alphabetically by member
# name. If set to NO, the members will appear in declaration order. Note that
# this will also influence the order of the classes in the class list.
# The default value is: NO.
SORT_BRIEF_DOCS = NO
# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
# (brief and detailed) documentation of class members so that constructors and
# destructors are listed first. If set to NO the constructors will appear in the
# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.
# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief
# member documentation.
# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting
# detailed member documentation.
# The default value is: NO.
SORT_MEMBERS_CTORS_1ST = NO
# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy
# of group names into alphabetical order. If set to NO the group names will
# appear in their defined order.
# The default value is: NO.
SORT_GROUP_NAMES = NO
# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
# fully-qualified names, including namespaces. If set to NO, the class list will
# be sorted only by class name, not including the namespace part.
# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
# Note: This option applies only to the class list, not to the alphabetical
# list.
# The default value is: NO.
SORT_BY_SCOPE_NAME = NO
# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper
# type resolution of all parameters of a function it will reject a match between
# the prototype and the implementation of a member function even if there is
# only one candidate or it is obvious which candidate to choose by doing a
# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still
# accept a match between prototype and implementation in such cases.
# The default value is: NO.
STRICT_PROTO_MATCHING = NO
# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo
# list. This list is created by putting \todo commands in the documentation.
# The default value is: YES.
GENERATE_TODOLIST = YES
# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test
# list. This list is created by putting \test commands in the documentation.
# The default value is: YES.
GENERATE_TESTLIST = YES
# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug
# list. This list is created by putting \bug commands in the documentation.
# The default value is: YES.
GENERATE_BUGLIST = YES
# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)
# the deprecated list. This list is created by putting \deprecated commands in
# the documentation.
# The default value is: YES.
GENERATE_DEPRECATEDLIST= YES
# The ENABLED_SECTIONS tag can be used to enable conditional documentation
# sections, marked by \if ... \endif and \cond
# ... \endcond blocks.
ENABLED_SECTIONS =
# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
# initial value of a variable or macro / define can have for it to appear in the
# documentation. If the initializer consists of more lines than specified here
# it will be hidden. Use a value of 0 to hide initializers completely. The
# appearance of the value of individual variables and macros / defines can be
# controlled using \showinitializer or \hideinitializer command in the
# documentation regardless of this setting.
# Minimum value: 0, maximum value: 10000, default value: 30.
MAX_INITIALIZER_LINES = 30
# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at
# the bottom of the documentation of classes and structs. If set to YES, the
# list will mention the files that were used to generate the documentation.
# The default value is: YES.
SHOW_USED_FILES = YES
# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This
# will remove the Files entry from the Quick Index and from the Folder Tree View
# (if specified).
# The default value is: YES.
SHOW_FILES = YES
# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces
# page. This will remove the Namespaces entry from the Quick Index and from the
# Folder Tree View (if specified).
# The default value is: YES.
SHOW_NAMESPACES = YES
# The FILE_VERSION_FILTER tag can be used to specify a program or script that
# doxygen should invoke to get the current version for each file (typically from
# the version control system). Doxygen will invoke the program by executing (via
# popen()) the command command input-file, where command is the value of the
# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided
# by doxygen. Whatever the program writes to standard output is used as the file
# version. For an example see the documentation.
FILE_VERSION_FILTER =
# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
# by doxygen. The layout file controls the global structure of the generated
# output files in an output format independent way. To create the layout file
# that represents doxygen's defaults, run doxygen with the -l option. You can
# optionally specify a file name after the option, if omitted DoxygenLayout.xml
# will be used as the name of the layout file.
#
# Note that if you run doxygen from a directory containing a file called
# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE
# tag is left empty.
LAYOUT_FILE =
# The CITE_BIB_FILES tag can be used to specify one or more bib files containing
# the reference definitions. This must be a list of .bib files. The .bib
# extension is automatically appended if omitted. This requires the bibtex tool
# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.
# For LaTeX the style of the bibliography can be controlled using
# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the
# search path. See also \cite for info how to create references.
CITE_BIB_FILES =
#---------------------------------------------------------------------------
# Configuration options related to warning and progress messages
#---------------------------------------------------------------------------
# The QUIET tag can be used to turn on/off the messages that are generated to
# standard output by doxygen. If QUIET is set to YES this implies that the
# messages are off.
# The default value is: NO.
QUIET = YES
# The WARNINGS tag can be used to turn on/off the warning messages that are
# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
# this implies that the warnings are on.
#
# Tip: Turn warnings on while writing the documentation.
# The default value is: YES.
WARNINGS = YES
# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate
# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag
# will automatically be disabled.
# The default value is: YES.
WARN_IF_UNDOCUMENTED = YES
# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for
# potential errors in the documentation, such as not documenting some parameters
# in a documented function, or documenting parameters that don't exist or using
# markup commands wrongly.
# The default value is: YES.
WARN_IF_DOC_ERROR = YES
# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that
# are documented, but have no documentation for their parameters or return
# value. If set to NO, doxygen will only warn about wrong or incomplete
# parameter documentation, but not about the absence of documentation.
# The default value is: NO.
WARN_NO_PARAMDOC = NO
# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when
# a warning is encountered.
# The default value is: NO.
WARN_AS_ERROR = NO
# The WARN_FORMAT tag determines the format of the warning messages that doxygen
# can produce. The string should contain the $file, $line, and $text tags, which
# will be replaced by the file and line number from which the warning originated
# and the warning text. Optionally the format may contain $version, which will
# be replaced by the version of the file (if it could be obtained via
# FILE_VERSION_FILTER)
# The default value is: $file:$line: $text.
WARN_FORMAT =
# The WARN_LOGFILE tag can be used to specify a file to which warning and error
# messages should be written. If left blank the output is written to standard
# error (stderr).
WARN_LOGFILE =
#---------------------------------------------------------------------------
# Configuration options related to the input files
#---------------------------------------------------------------------------
# The INPUT tag is used to specify the files and/or directories that contain
# documented source files. You may enter file names like myfile.cpp or
# directories like /usr/src/myproject. Separate the files or directories with
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
# Note: If this tag is empty the current directory is searched.
INPUT = doc/apidoc.h \
tutorials/tutorials.h \
@DOXYGEN_INPUT@
# This tag can be used to specify the character encoding of the source files
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
# libiconv (or the iconv built into libc) for the transcoding. See the libiconv
# documentation (see: http://www.gnu.org/software/libiconv) for the list of
# possible encodings.
# The default value is: UTF-8.
INPUT_ENCODING = UTF-8
# If the value of the INPUT tag contains directories, you can use the
# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and
# *.h) to filter out the source-files in the directories.
#
# Note that for custom extensions or not directly supported extensions you also
# need to set EXTENSION_MAPPING for the extension otherwise the files are not
# read by doxygen.
#
# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,
# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,
# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,
# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f, *.for, *.tcl,
# *.vhd, *.vhdl, *.ucf, *.qsf, *.as and *.js.
FILE_PATTERNS = @DOXYGEN_FILE_PATTERNS@
# The RECURSIVE tag can be used to specify whether or not subdirectories should
# be searched for input files as well.
# The default value is: NO.
RECURSIVE = YES
# The EXCLUDE tag can be used to specify files and/or directories that should be
# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.
#
# Note that relative paths are relative to the directory from which doxygen is
# run.
EXCLUDE =
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded
# from the input.
# The default value is: NO.
EXCLUDE_SYMLINKS = NO
# If the value of the INPUT tag contains directories, you can use the
# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
# certain files from those directories.
#
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories for example use the pattern */test/*
EXCLUDE_PATTERNS = @DOXYGEN_EXCLUDE_PATTERNS@
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
# (namespaces, classes, functions, etc.) that should be excluded from the
# output. The symbol name can be a fully qualified name, a word, or if the
# wildcard * is used, a substring. Examples: ANamespace, AClass,
# AClass::ANamespace, ANamespace::*Test
#
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories use the pattern */test/*
EXCLUDE_SYMBOLS =
# The EXAMPLE_PATH tag can be used to specify one or more files or directories
# that contain example code fragments that are included (see the \include
# command).
EXAMPLE_PATH = doc \
tutorials
# If the value of the EXAMPLE_PATH tag contains directories, you can use the
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and
# *.h) to filter out the source-files in the directories. If left blank all
# files are included.
EXAMPLE_PATTERNS =
# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
# searched for input files to be used with the \include or \dontinclude commands
# irrespective of the value of the RECURSIVE tag.
# The default value is: NO.
EXAMPLE_RECURSIVE = NO
# The IMAGE_PATH tag can be used to specify one or more files or directories
# that contain images that are to be included in the documentation (see the
# \image command).
IMAGE_PATH = doc
# The INPUT_FILTER tag can be used to specify a program that doxygen should
# invoke to filter for each input file. Doxygen will invoke the filter program
# by executing (via popen()) the command:
#
#
#
# where is the value of the INPUT_FILTER tag, and is the
# name of an input file. Doxygen will then use the output that the filter
# program writes to standard output. If FILTER_PATTERNS is specified, this tag
# will be ignored.
#
# Note that the filter must not add or remove lines; it is applied before the
# code is scanned, but not when the output code is generated. If lines are added
# or removed, the anchors will not be placed correctly.
#
# Note that for custom extensions or not directly supported extensions you also
# need to set EXTENSION_MAPPING for the extension otherwise the files are not
# properly processed by doxygen.
INPUT_FILTER =
# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
# basis. Doxygen will compare the file name with each pattern and apply the
# filter if there is a match. The filters are a list of the form: pattern=filter
# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
# filters are used. If the FILTER_PATTERNS tag is empty or if none of the
# patterns match the file name, INPUT_FILTER is applied.
#
# Note that for custom extensions or not directly supported extensions you also
# need to set EXTENSION_MAPPING for the extension otherwise the files are not
# properly processed by doxygen.
FILTER_PATTERNS =
# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
# INPUT_FILTER) will also be used to filter the input files that are used for
# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).
# The default value is: NO.
FILTER_SOURCE_FILES = NO
# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and
# it is also possible to disable source filtering for a specific pattern using
# *.ext= (so without naming a filter).
# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.
FILTER_SOURCE_PATTERNS =
# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that
# is part of the input, its contents will be placed on the main page
# (index.html). This can be useful if you have a project on for instance GitHub
# and want to reuse the introduction page also for the doxygen output.
USE_MDFILE_AS_MAINPAGE =
#---------------------------------------------------------------------------
# Configuration options related to source browsing
#---------------------------------------------------------------------------
# If the SOURCE_BROWSER tag is set to YES then a list of source files will be
# generated. Documented entities will be cross-referenced with these sources.
#
# Note: To get rid of all source code in the generated output, make sure that
# also VERBATIM_HEADERS is set to NO.
# The default value is: NO.
SOURCE_BROWSER = YES
# Setting the INLINE_SOURCES tag to YES will include the body of functions,
# classes and enums directly into the documentation.
# The default value is: NO.
INLINE_SOURCES = NO
# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any
# special comment blocks from generated source code fragments. Normal C, C++ and
# Fortran comments will always remain visible.
# The default value is: YES.
STRIP_CODE_COMMENTS = YES
# If the REFERENCED_BY_RELATION tag is set to YES then for each documented
# function all documented functions referencing it will be listed.
# The default value is: NO.
REFERENCED_BY_RELATION = YES
# If the REFERENCES_RELATION tag is set to YES then for each documented function
# all documented entities called/used by that function will be listed.
# The default value is: NO.
REFERENCES_RELATION = YES
# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set
# to YES then the hyperlinks from functions in REFERENCES_RELATION and
# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will
# link to the documentation.
# The default value is: YES.
REFERENCES_LINK_SOURCE = YES
# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the
# source code will show a tooltip with additional information such as prototype,
# brief description and links to the definition and documentation. Since this
# will make the HTML file larger and loading of large files a bit slower, you
# can opt to disable this feature.
# The default value is: YES.
# This tag requires that the tag SOURCE_BROWSER is set to YES.
SOURCE_TOOLTIPS = YES
# If the USE_HTAGS tag is set to YES then the references to source code will
# point to the HTML generated by the htags(1) tool instead of doxygen built-in
# source browser. The htags tool is part of GNU's global source tagging system
# (see http://www.gnu.org/software/global/global.html). You will need version
# 4.8.6 or higher.
#
# To use it do the following:
# - Install the latest version of global
# - Enable SOURCE_BROWSER and USE_HTAGS in the config file
# - Make sure the INPUT points to the root of the source tree
# - Run doxygen as normal
#
# Doxygen will invoke htags (and that will in turn invoke gtags), so these
# tools must be available from the command line (i.e. in the search path).
#
# The result: instead of the source browser generated by doxygen, the links to
# source code will now point to the output of htags.
# The default value is: NO.
# This tag requires that the tag SOURCE_BROWSER is set to YES.
USE_HTAGS = NO
# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a
# verbatim copy of the header file for each class for which an include is
# specified. Set to NO to disable this.
# See also: Section \class.
# The default value is: YES.
VERBATIM_HEADERS = YES
# If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the
# clang parser (see: http://clang.llvm.org/) for more accurate parsing at the
# cost of reduced performance. This can be particularly helpful with template
# rich C++ code for which doxygen's built-in parser lacks the necessary type
# information.
# Note: The availability of this option depends on whether or not doxygen was
# generated with the -Duse-libclang=ON option for CMake.
# The default value is: NO.
CLANG_ASSISTED_PARSING = no
# If clang assisted parsing is enabled you can provide the compiler with command
# line options that you would normally use when invoking the compiler. Note that
# the include paths will already be set by doxygen for the files and directories
# specified with INPUT and INCLUDE_PATH.
# This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES.
CLANG_OPTIONS = -Isrc/libs/aqbanking/
-Isrc/libs/plugins/backends/aqhbci
#---------------------------------------------------------------------------
# Configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all
# compounds will be generated. Enable this if the project contains a lot of
# classes, structs, unions or interfaces.
# The default value is: YES.
ALPHABETICAL_INDEX = YES
# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
# which the alphabetical index list will be split.
# Minimum value: 1, maximum value: 20, default value: 5.
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
COLS_IN_ALPHA_INDEX = 4
# In case all classes in a project start with a common prefix, all classes will
# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
# can be used to specify a prefix (or a list of prefixes) that should be ignored
# while generating the index headers.
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
IGNORE_PREFIX = AB_
#---------------------------------------------------------------------------
# Configuration options related to the HTML output
#---------------------------------------------------------------------------
# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output
# The default value is: YES.
GENERATE_HTML = YES
# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: html.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_OUTPUT = html/aqbanking-@AQBANKING_VERSION_RELEASE_STRING@
# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
# generated HTML page (for example: .htm, .php, .asp).
# The default value is: .html.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_FILE_EXTENSION = .html
# The HTML_HEADER tag can be used to specify a user-defined HTML header file for
# each generated HTML page. If the tag is left blank doxygen will generate a
# standard header.
#
# To get valid HTML the header file that includes any scripts and style sheets
# that doxygen needs, which is dependent on the configuration options used (e.g.
# the setting GENERATE_TREEVIEW). It is highly recommended to start with a
# default header using
# doxygen -w html new_header.html new_footer.html new_stylesheet.css
# YourConfigFile
# and then modify the file new_header.html. See also section "Doxygen usage"
# for information on how to generate the default header that doxygen normally
# uses.
# Note: The header is subject to change so you typically have to regenerate the
# default header when upgrading to a newer version of doxygen. For a description
# of the possible markers and block names see the documentation.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_HEADER =
# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each
# generated HTML page. If the tag is left blank doxygen will generate a standard
# footer. See HTML_HEADER for more information on how to generate a default
# footer and what special commands can be used inside the footer. See also
# section "Doxygen usage" for information on how to generate the default footer
# that doxygen normally uses.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_FOOTER =
# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
# sheet that is used by each HTML page. It can be used to fine-tune the look of
# the HTML output. If left blank doxygen will generate a default style sheet.
# See also section "Doxygen usage" for information on how to generate the style
# sheet that doxygen normally uses.
# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as
# it is more robust and this tag (HTML_STYLESHEET) will in the future become
# obsolete.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_STYLESHEET =
# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined
# cascading style sheets that are included after the standard style sheets
# created by doxygen. Using this option one can overrule certain style aspects.
# This is preferred over using HTML_STYLESHEET since it does not replace the
# standard style sheet and is therefore more robust against future updates.
# Doxygen will copy the style sheet files to the output directory.
# Note: The order of the extra style sheet files is of importance (e.g. the last
# style sheet in the list overrules the setting of the previous ones in the
# list). For an example see the documentation.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_EXTRA_STYLESHEET =
# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
# other source files which should be copied to the HTML output directory. Note
# that these files will be copied to the base HTML output directory. Use the
# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
# files. In the HTML_STYLESHEET file, use the file name only. Also note that the
# files will be copied as-is; there are no commands or markers available.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_EXTRA_FILES =
# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen
# will adjust the colors in the style sheet and background images according to
# this color. Hue is specified as an angle on a colorwheel, see
# http://en.wikipedia.org/wiki/Hue for more information. For instance the value
# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300
# purple, and 360 is red again.
# Minimum value: 0, maximum value: 359, default value: 220.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_COLORSTYLE_HUE = 220
# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors
# in the HTML output. For a value of 0 the output will use grayscales only. A
# value of 255 will produce the most vivid colors.
# Minimum value: 0, maximum value: 255, default value: 100.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_COLORSTYLE_SAT = 100
# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the
# luminance component of the colors in the HTML output. Values below 100
# gradually make the output lighter, whereas values above 100 make the output
# darker. The value divided by 100 is the actual gamma applied, so 80 represents
# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not
# change the gamma.
# Minimum value: 40, maximum value: 240, default value: 80.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_COLORSTYLE_GAMMA = 80
# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
# page will contain the date and time when the page was generated. Setting this
# to YES can help to show when doxygen was last run and thus if the
# documentation is up to date.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_TIMESTAMP = YES
# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
# documentation will contain sections that can be hidden and shown after the
# page has loaded.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_DYNAMIC_SECTIONS = NO
# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries
# shown in the various tree structured indices initially; the user can expand
# and collapse entries dynamically later on. Doxygen will expand the tree to
# such a level that at most the specified number of entries are visible (unless
# a fully collapsed tree already exceeds this amount). So setting the number of
# entries 1 will produce a full collapsed tree by default. 0 is a special value
# representing an infinite number of entries and will result in a full expanded
# tree by default.
# Minimum value: 0, maximum value: 9999, default value: 100.
# This tag requires that the tag GENERATE_HTML is set to YES.
HTML_INDEX_NUM_ENTRIES = 100
# If the GENERATE_DOCSET tag is set to YES, additional index files will be
# generated that can be used as input for Apple's Xcode 3 integrated development
# environment (see: http://developer.apple.com/tools/xcode/), introduced with
# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a
# Makefile in the HTML output directory. Running make will produce the docset in
# that directory and running make install will install the docset in
# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at
# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
# for more information.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_DOCSET = NO
# This tag determines the name of the docset feed. A documentation feed provides
# an umbrella under which multiple documentation sets from a single provider
# (such as a company or product suite) can be grouped.
# The default value is: Doxygen generated docs.
# This tag requires that the tag GENERATE_DOCSET is set to YES.
DOCSET_FEEDNAME = "Doxygen generated docs"
# This tag specifies a string that should uniquely identify the documentation
# set bundle. This should be a reverse domain-name style string, e.g.
# com.mycompany.MyDocSet. Doxygen will append .docset to the name.
# The default value is: org.doxygen.Project.
# This tag requires that the tag GENERATE_DOCSET is set to YES.
DOCSET_BUNDLE_ID = org.doxygen.Project
# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify
# the documentation publisher. This should be a reverse domain-name style
# string, e.g. com.mycompany.MyDocSet.documentation.
# The default value is: org.doxygen.Publisher.
# This tag requires that the tag GENERATE_DOCSET is set to YES.
DOCSET_PUBLISHER_ID = org.doxygen.Publisher
# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
# The default value is: Publisher.
# This tag requires that the tag GENERATE_DOCSET is set to YES.
DOCSET_PUBLISHER_NAME = Publisher
# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three
# additional HTML index files: index.hhp, index.hhc, and index.hhk. The
# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop
# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on
# Windows.
#
# The HTML Help Workshop contains a compiler that can convert all HTML output
# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML
# files are now used as the Windows 98 help format, and will replace the old
# Windows help format (.hlp) on all Windows platforms in the future. Compressed
# HTML files also contain an index, a table of contents, and you can search for
# words in the documentation. The HTML workshop also contains a viewer for
# compressed HTML files.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_HTMLHELP = NO
# The CHM_FILE tag can be used to specify the file name of the resulting .chm
# file. You can add a path in front of the file if the result should not be
# written to the html output directory.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
CHM_FILE =
# The HHC_LOCATION tag can be used to specify the location (absolute path
# including file name) of the HTML help compiler (hhc.exe). If non-empty,
# doxygen will try to run the HTML help compiler on the generated index.hhp.
# The file has to be specified with full path.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
HHC_LOCATION =
# The GENERATE_CHI flag controls if a separate .chi index file is generated
# (YES) or that it should be included in the master .chm file (NO).
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
GENERATE_CHI = NO
# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)
# and project file content.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
CHM_INDEX_ENCODING =
# The BINARY_TOC flag controls whether a binary table of contents is generated
# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it
# enables the Previous and Next buttons.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
BINARY_TOC = NO
# The TOC_EXPAND flag can be set to YES to add extra items for group members to
# the table of contents of the HTML help documentation and to the tree view.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTMLHELP is set to YES.
TOC_EXPAND = NO
# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that
# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help
# (.qch) of the generated HTML documentation.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_QHP = NO
# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify
# the file name of the resulting .qch file. The path specified is relative to
# the HTML output folder.
# This tag requires that the tag GENERATE_QHP is set to YES.
QCH_FILE =
# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help
# Project output. For more information please see Qt Help Project / Namespace
# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).
# The default value is: org.doxygen.Project.
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_NAMESPACE =
# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt
# Help Project output. For more information please see Qt Help Project / Virtual
# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-
# folders).
# The default value is: doc.
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_VIRTUAL_FOLDER = doc
# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom
# filter to add. For more information please see Qt Help Project / Custom
# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
# filters).
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_CUST_FILTER_NAME =
# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the
# custom filter to add. For more information please see Qt Help Project / Custom
# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-
# filters).
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_CUST_FILTER_ATTRS =
# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
# project's filter section matches. Qt Help Project / Filter Attributes (see:
# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).
# This tag requires that the tag GENERATE_QHP is set to YES.
QHP_SECT_FILTER_ATTRS =
# The QHG_LOCATION tag can be used to specify the location of Qt's
# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the
# generated .qhp file.
# This tag requires that the tag GENERATE_QHP is set to YES.
QHG_LOCATION =
# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be
# generated, together with the HTML files, they form an Eclipse help plugin. To
# install this plugin and make it available under the help contents menu in
# Eclipse, the contents of the directory containing the HTML and XML files needs
# to be copied into the plugins directory of eclipse. The name of the directory
# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.
# After copying Eclipse needs to be restarted before the help appears.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_ECLIPSEHELP = NO
# A unique identifier for the Eclipse help plugin. When installing the plugin
# the directory name containing the HTML and XML files should also have this
# name. Each documentation set should have its own identifier.
# The default value is: org.doxygen.Project.
# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.
ECLIPSE_DOC_ID = org.doxygen.Project
# If you want full control over the layout of the generated HTML pages it might
# be necessary to disable the index and replace it with your own. The
# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top
# of each HTML page. A value of NO enables the index and the value YES disables
# it. Since the tabs in the index contain the same information as the navigation
# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
DISABLE_INDEX = NO
# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
# structure should be generated to display hierarchical information. If the tag
# value is set to YES, a side panel will be generated containing a tree-like
# index structure (just like the one that is generated for HTML Help). For this
# to work a browser that supports JavaScript, DHTML, CSS and frames is required
# (i.e. any modern browser). Windows users are probably better off using the
# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can
# further fine-tune the look of the index. As an example, the default style
# sheet generated by doxygen has an example that shows how to put an image at
# the root of the tree instead of the PROJECT_NAME. Since the tree basically has
# the same information as the tab index, you could consider setting
# DISABLE_INDEX to YES when enabling this option.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
GENERATE_TREEVIEW = NO
# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that
# doxygen will group on one line in the generated HTML documentation.
#
# Note that a value of 0 will completely suppress the enum values from appearing
# in the overview section.
# Minimum value: 0, maximum value: 20, default value: 4.
# This tag requires that the tag GENERATE_HTML is set to YES.
ENUM_VALUES_PER_LINE = 4
# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used
# to set the initial width (in pixels) of the frame in which the tree is shown.
# Minimum value: 0, maximum value: 1500, default value: 250.
# This tag requires that the tag GENERATE_HTML is set to YES.
TREEVIEW_WIDTH = 250
# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to
# external symbols imported via tag files in a separate window.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
EXT_LINKS_IN_WINDOW = NO
# Use this tag to change the font size of LaTeX formulas included as images in
# the HTML documentation. When you change the font size after a successful
# doxygen run you need to manually remove any form_*.png images from the HTML
# output directory to force them to be regenerated.
# Minimum value: 8, maximum value: 50, default value: 10.
# This tag requires that the tag GENERATE_HTML is set to YES.
FORMULA_FONTSIZE = 10
# Use the FORMULA_TRANPARENT tag to determine whether or not the images
# generated for formulas are transparent PNGs. Transparent PNGs are not
# supported properly for IE 6.0, but are supported on all modern browsers.
#
# Note that when changing this option you need to delete any form_*.png files in
# the HTML output directory before the changes have effect.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
FORMULA_TRANSPARENT = YES
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see
# http://www.mathjax.org) which uses client side Javascript for the rendering
# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX
# installed or if you want to formulas look prettier in the HTML output. When
# enabled you may also need to install MathJax separately and configure the path
# to it using the MATHJAX_RELPATH option.
# The default value is: NO.
# This tag requires that the tag GENERATE_HTML is set to YES.
USE_MATHJAX = NO
# When MathJax is enabled you can set the default output format to be used for
# the MathJax output. See the MathJax site (see:
# http://docs.mathjax.org/en/latest/output.html) for more details.
# Possible values are: HTML-CSS (which is slower, but has the best
# compatibility), NativeMML (i.e. MathML) and SVG.
# The default value is: HTML-CSS.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_FORMAT = HTML-CSS
# When MathJax is enabled you need to specify the location relative to the HTML
# output directory using the MATHJAX_RELPATH option. The destination directory
# should contain the MathJax.js script. For instance, if the mathjax directory
# is located at the same level as the HTML output directory, then
# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax
# Content Delivery Network so you can quickly see the result without installing
# MathJax. However, it is strongly recommended to install a local copy of
# MathJax from http://www.mathjax.org before deployment.
# The default value is: http://cdn.mathjax.org/mathjax/latest.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
# extension names that should be enabled during MathJax rendering. For example
# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_EXTENSIONS =
# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces
# of code that will be used on startup of the MathJax code. See the MathJax site
# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an
# example see the documentation.
# This tag requires that the tag USE_MATHJAX is set to YES.
MATHJAX_CODEFILE =
# When the SEARCHENGINE tag is enabled doxygen will generate a search box for
# the HTML output. The underlying search engine uses javascript and DHTML and
# should work on any modern browser. Note that when using HTML help
# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)
# there is already a search function so this one should typically be disabled.
# For large projects the javascript based search engine can be slow, then
# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to
# search using the keyboard; to jump to the search box use + S
# (what the is depends on the OS and browser, but it is typically
# , /, or both). Inside the search box use the to jump into the search results window, the results can be navigated
# using the . Press to select an item or to cancel
# the search. The filter options can be selected when the cursor is inside the
# search box by pressing +. Also here use the
# to select a filter and or to activate or cancel the filter
# option.
# The default value is: YES.
# This tag requires that the tag GENERATE_HTML is set to YES.
SEARCHENGINE = NO
# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
# implemented using a web server instead of a web client using Javascript. There
# are two flavors of web server based searching depending on the EXTERNAL_SEARCH
# setting. When disabled, doxygen will generate a PHP script for searching and
# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing
# and searching needs to be provided by external tools. See the section
# "External Indexing and Searching" for details.
# The default value is: NO.
# This tag requires that the tag SEARCHENGINE is set to YES.
SERVER_BASED_SEARCH = NO
# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP
# script for searching. Instead the search results are written to an XML file
# which needs to be processed by an external indexer. Doxygen will invoke an
# external search engine pointed to by the SEARCHENGINE_URL option to obtain the
# search results.
#
# Doxygen ships with an example indexer (doxyindexer) and search engine
# (doxysearch.cgi) which are based on the open source search engine library
# Xapian (see: http://xapian.org/).
#
# See the section "External Indexing and Searching" for details.
# The default value is: NO.
# This tag requires that the tag SEARCHENGINE is set to YES.
EXTERNAL_SEARCH = NO
# The SEARCHENGINE_URL should point to a search engine hosted by a web server
# which will return the search results when EXTERNAL_SEARCH is enabled.
#
# Doxygen ships with an example indexer (doxyindexer) and search engine
# (doxysearch.cgi) which are based on the open source search engine library
# Xapian (see: http://xapian.org/). See the section "External Indexing and
# Searching" for details.
# This tag requires that the tag SEARCHENGINE is set to YES.
SEARCHENGINE_URL =
# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
# search data is written to a file for indexing by an external tool. With the
# SEARCHDATA_FILE tag the name of this file can be specified.
# The default file is: searchdata.xml.
# This tag requires that the tag SEARCHENGINE is set to YES.
SEARCHDATA_FILE = searchdata.xml
# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the
# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
# projects and redirect the results back to the right project.
# This tag requires that the tag SEARCHENGINE is set to YES.
EXTERNAL_SEARCH_ID =
# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
# projects other than the one defined by this configuration file, but that are
# all added to the same external search index. Each project needs to have a
# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of
# to a relative location where the documentation can be found. The format is:
# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...
# This tag requires that the tag SEARCHENGINE is set to YES.
EXTRA_SEARCH_MAPPINGS =
#---------------------------------------------------------------------------
# Configuration options related to the LaTeX output
#---------------------------------------------------------------------------
# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.
# The default value is: YES.
GENERATE_LATEX = no
# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: latex.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_OUTPUT =
# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
# invoked.
#
# Note that when enabling USE_PDFLATEX this option is only used for generating
# bitmaps for formulas in the HTML output, but not in the Makefile that is
# written to the output directory.
# The default file is: latex.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_CMD_NAME = latex
# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate
# index for LaTeX.
# The default file is: makeindex.
# This tag requires that the tag GENERATE_LATEX is set to YES.
MAKEINDEX_CMD_NAME = makeindex
# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX
# documents. This may be useful for small projects and may help to save some
# trees in general.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
COMPACT_LATEX = NO
# The PAPER_TYPE tag can be used to set the paper type that is used by the
# printer.
# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x
# 14 inches) and executive (7.25 x 10.5 inches).
# The default value is: a4.
# This tag requires that the tag GENERATE_LATEX is set to YES.
PAPER_TYPE = a4wide
# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names
# that should be included in the LaTeX output. The package can be specified just
# by its name or with the correct syntax as to be used with the LaTeX
# \usepackage command. To get the times font for instance you can specify :
# EXTRA_PACKAGES=times or EXTRA_PACKAGES={times}
# To use the option intlimits with the amsmath package you can specify:
# EXTRA_PACKAGES=[intlimits]{amsmath}
# If left blank no extra packages will be included.
# This tag requires that the tag GENERATE_LATEX is set to YES.
EXTRA_PACKAGES =
# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the
# generated LaTeX document. The header should contain everything until the first
# chapter. If it is left blank doxygen will generate a standard header. See
# section "Doxygen usage" for information on how to let doxygen write the
# default header to a separate file.
#
# Note: Only use a user-defined header if you know what you are doing! The
# following commands have a special meaning inside the header: $title,
# $datetime, $date, $doxygenversion, $projectname, $projectnumber,
# $projectbrief, $projectlogo. Doxygen will replace $title with the empty
# string, for the replacement values of the other commands the user is referred
# to HTML_HEADER.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_HEADER =
# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the
# generated LaTeX document. The footer should contain everything after the last
# chapter. If it is left blank doxygen will generate a standard footer. See
# LATEX_HEADER for more information on how to generate a default footer and what
# special commands can be used inside the footer.
#
# Note: Only use a user-defined footer if you know what you are doing!
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_FOOTER =
# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined
# LaTeX style sheets that are included after the standard style sheets created
# by doxygen. Using this option one can overrule certain style aspects. Doxygen
# will copy the style sheet files to the output directory.
# Note: The order of the extra style sheet files is of importance (e.g. the last
# style sheet in the list overrules the setting of the previous ones in the
# list).
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_EXTRA_STYLESHEET =
# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or
# other source files which should be copied to the LATEX_OUTPUT output
# directory. Note that the files will be copied as-is; there are no commands or
# markers available.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_EXTRA_FILES =
# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is
# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will
# contain links (just like the HTML output) instead of page references. This
# makes the output suitable for online browsing using a PDF viewer.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
PDF_HYPERLINKS = NO
# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate
# the PDF file directly from the LaTeX files. Set this option to YES, to get a
# higher quality PDF documentation.
# The default value is: YES.
# This tag requires that the tag GENERATE_LATEX is set to YES.
USE_PDFLATEX = NO
# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \batchmode
# command to the generated LaTeX files. This will instruct LaTeX to keep running
# if errors occur, instead of asking the user for help. This option is also used
# when generating formulas in HTML.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_BATCHMODE = NO
# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the
# index chapters (such as File Index, Compound Index, etc.) in the output.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_HIDE_INDICES = NO
# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source
# code with syntax highlighting in the LaTeX output.
#
# Note that which sources are shown also depends on other settings such as
# SOURCE_BROWSER.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_SOURCE_CODE = NO
# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
# bibliography, e.g. plainnat, or ieeetr. See
# http://en.wikipedia.org/wiki/BibTeX and \cite for more info.
# The default value is: plain.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_BIB_STYLE = plain
# If the LATEX_TIMESTAMP tag is set to YES then the footer of each generated
# page will contain the date and time when the page was generated. Setting this
# to NO can help when comparing the output of multiple runs.
# The default value is: NO.
# This tag requires that the tag GENERATE_LATEX is set to YES.
LATEX_TIMESTAMP = NO
#---------------------------------------------------------------------------
# Configuration options related to the RTF output
#---------------------------------------------------------------------------
# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The
# RTF output is optimized for Word 97 and may not look too pretty with other RTF
# readers/editors.
# The default value is: NO.
GENERATE_RTF = NO
# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: rtf.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_OUTPUT =
# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF
# documents. This may be useful for small projects and may help to save some
# trees in general.
# The default value is: NO.
# This tag requires that the tag GENERATE_RTF is set to YES.
COMPACT_RTF = NO
# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will
# contain hyperlink fields. The RTF file will contain links (just like the HTML
# output) instead of page references. This makes the output suitable for online
# browsing using Word or some other Word compatible readers that support those
# fields.
#
# Note: WordPad (write) and others do not support links.
# The default value is: NO.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_HYPERLINKS = NO
# Load stylesheet definitions from file. Syntax is similar to doxygen's config
# file, i.e. a series of assignments. You only have to provide replacements,
# missing definitions are set to their default value.
#
# See also section "Doxygen usage" for information on how to generate the
# default style sheet that doxygen normally uses.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_STYLESHEET_FILE =
# Set optional variables used in the generation of an RTF document. Syntax is
# similar to doxygen's config file. A template extensions file can be generated
# using doxygen -e rtf extensionFile.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_EXTENSIONS_FILE =
# If the RTF_SOURCE_CODE tag is set to YES then doxygen will include source code
# with syntax highlighting in the RTF output.
#
# Note that which sources are shown also depends on other settings such as
# SOURCE_BROWSER.
# The default value is: NO.
# This tag requires that the tag GENERATE_RTF is set to YES.
RTF_SOURCE_CODE = NO
#---------------------------------------------------------------------------
# Configuration options related to the man page output
#---------------------------------------------------------------------------
# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for
# classes and files.
# The default value is: NO.
GENERATE_MAN = NO
# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it. A directory man3 will be created inside the directory specified by
# MAN_OUTPUT.
# The default directory is: man.
# This tag requires that the tag GENERATE_MAN is set to YES.
MAN_OUTPUT =
# The MAN_EXTENSION tag determines the extension that is added to the generated
# man pages. In case the manual section does not start with a number, the number
# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is
# optional.
# The default value is: .3.
# This tag requires that the tag GENERATE_MAN is set to YES.
MAN_EXTENSION =
# The MAN_SUBDIR tag determines the name of the directory created within
# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by
# MAN_EXTENSION with the initial . removed.
# This tag requires that the tag GENERATE_MAN is set to YES.
MAN_SUBDIR =
# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it
# will generate one additional man file for each entity documented in the real
# man page(s). These additional files only source the real man page, but without
# them the man command would be unable to find the correct page.
# The default value is: NO.
# This tag requires that the tag GENERATE_MAN is set to YES.
MAN_LINKS = NO
#---------------------------------------------------------------------------
# Configuration options related to the XML output
#---------------------------------------------------------------------------
# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that
# captures the structure of the code including all documentation.
# The default value is: NO.
GENERATE_XML = YES
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of
# it.
# The default directory is: xml.
# This tag requires that the tag GENERATE_XML is set to YES.
XML_OUTPUT = xml
# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program
# listings (including syntax highlighting and cross-referencing information) to
# the XML output. Note that enabling this will significantly increase the size
# of the XML output.
# The default value is: YES.
# This tag requires that the tag GENERATE_XML is set to YES.
XML_PROGRAMLISTING = YES
#---------------------------------------------------------------------------
# Configuration options related to the DOCBOOK output
#---------------------------------------------------------------------------
# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files
# that can be used to generate PDF.
# The default value is: NO.
GENERATE_DOCBOOK = NO
# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.
# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in
# front of it.
# The default directory is: docbook.
# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
DOCBOOK_OUTPUT = docbook
# If the DOCBOOK_PROGRAMLISTING tag is set to YES, doxygen will include the
# program listings (including syntax highlighting and cross-referencing
# information) to the DOCBOOK output. Note that enabling this will significantly
# increase the size of the DOCBOOK output.
# The default value is: NO.
# This tag requires that the tag GENERATE_DOCBOOK is set to YES.
DOCBOOK_PROGRAMLISTING = NO
#---------------------------------------------------------------------------
# Configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------
# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an
# AutoGen Definitions (see http://autogen.sf.net) file that captures the
# structure of the code including all documentation. Note that this feature is
# still experimental and incomplete at the moment.
# The default value is: NO.
GENERATE_AUTOGEN_DEF = NO
#---------------------------------------------------------------------------
# Configuration options related to the Perl module output
#---------------------------------------------------------------------------
# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module
# file that captures the structure of the code including all documentation.
#
# Note that this feature is still experimental and incomplete at the moment.
# The default value is: NO.
GENERATE_PERLMOD = NO
# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary
# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI
# output from the Perl module output.
# The default value is: NO.
# This tag requires that the tag GENERATE_PERLMOD is set to YES.
PERLMOD_LATEX = NO
# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely
# formatted so it can be parsed by a human reader. This is useful if you want to
# understand what is going on. On the other hand, if this tag is set to NO, the
# size of the Perl module output will be much smaller and Perl will parse it
# just the same.
# The default value is: YES.
# This tag requires that the tag GENERATE_PERLMOD is set to YES.
PERLMOD_PRETTY = YES
# The names of the make variables in the generated doxyrules.make file are
# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful
# so different doxyrules.make files included by the same Makefile don't
# overwrite each other's variables.
# This tag requires that the tag GENERATE_PERLMOD is set to YES.
PERLMOD_MAKEVAR_PREFIX =
#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all
# C-preprocessor directives found in the sources and include files.
# The default value is: YES.
ENABLE_PREPROCESSING = YES
# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names
# in the source code. If set to NO, only conditional compilation will be
# performed. Macro expansion can be done in a controlled way by setting
# EXPAND_ONLY_PREDEF to YES.
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
MACRO_EXPANSION = YES
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
# the macro expansion is limited to the macros specified with the PREDEFINED and
# EXPAND_AS_DEFINED tags.
# The default value is: NO.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
EXPAND_ONLY_PREDEF = YES
# If the SEARCH_INCLUDES tag is set to YES, the include files in the
# INCLUDE_PATH will be searched if a #include is found.
# The default value is: YES.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
SEARCH_INCLUDES = YES
# The INCLUDE_PATH tag can be used to specify one or more directories that
# contain include files that are not input files but should be processed by the
# preprocessor.
# This tag requires that the tag SEARCH_INCLUDES is set to YES.
INCLUDE_PATH =
# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
# patterns (like *.h and *.hpp) to filter out the header-files in the
# directories. If left blank, the patterns specified with FILE_PATTERNS will be
# used.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
INCLUDE_FILE_PATTERNS =
# The PREDEFINED tag can be used to specify one or more macro names that are
# defined before the preprocessor is started (similar to the -D option of e.g.
# gcc). The argument of the tag is a list of macros of the form: name or
# name=definition (no spaces). If the definition and the "=" are omitted, "=1"
# is assumed. To prevent a macro definition from being undefined via #undef or
# recursively expanded use the := operator instead of the = operator.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
PREDEFINED = @DOXYGEN_DEFINE@ \
__cplusplus \
AQBANKING_API=
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
# tag can be used to specify a list of macro names that should be expanded. The
# macro definition that is found in the sources will be used. Use the PREDEFINED
# tag if you want to use a different macro definition that overrules the
# definition found in the source code.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
EXPAND_AS_DEFINED = AB_CXXWRAP_GET0_CONST \
AB_CXXWRAP_GET0 \
AB_CXXWRAP_GET1_CONST \
AB_CXXWRAP_GET1 \
AB_CXXWRAP_SET0 \
AB_CXXWRAP_SET1 \
AB_CXXWRAP_CONSTRUCTOR0 \
AB_CXXWRAP_CONSTRUCTORS
# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will
# remove all references to function-like macros that are alone on a line, have
# an all uppercase name, and do not end with a semicolon. Such function macros
# are typically used for boiler-plate code, and will confuse the parser if not
# removed.
# The default value is: YES.
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
# Configuration options related to external references
#---------------------------------------------------------------------------
# The TAGFILES tag can be used to specify one or more tag files. For each tag
# file the location of the external documentation should be added. The format of
# a tag file without this location is as follows:
# TAGFILES = file1 file2 ...
# Adding location for the tag files is done as follows:
# TAGFILES = file1=loc1 "file2 = loc2" ...
# where loc1 and loc2 can be relative or absolute paths or URLs. See the
# section "Linking to external documentation" for more information about the use
# of tag files.
# Note: Each tag file must have a unique name (where the name does NOT include
# the path). If a tag file is not located in the directory in which doxygen is
# run, you must also specify the path to the tagfile here.
TAGFILES = @DOXYGEN_TAGFILES@
# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
# tag file that is based on the input files it reads. See section "Linking to
# external documentation" for more information about the usage of tag files.
GENERATE_TAGFILE = apidoc/aqbanking.tag
# If the ALLEXTERNALS tag is set to YES, all external class will be listed in
# the class index. If set to NO, only the inherited external classes will be
# listed.
# The default value is: NO.
ALLEXTERNALS = NO
# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed
# in the modules index. If set to NO, only the current project's groups will be
# listed.
# The default value is: YES.
EXTERNAL_GROUPS = NO
# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in
# the related pages index. If set to NO, only the current project's pages will
# be listed.
# The default value is: YES.
EXTERNAL_PAGES = YES
# The PERL_PATH should be the absolute path and name of the perl script
# interpreter (i.e. the result of 'which perl').
# The default file (with absolute path) is: /usr/bin/perl.
PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
# If the CLASS_DIAGRAMS tag is set to YES, doxygen will generate a class diagram
# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to
# NO turns the diagrams off. Note that this option also works with HAVE_DOT
# disabled, but it is recommended to install and use dot, since it yields more
# powerful graphs.
# The default value is: YES.
CLASS_DIAGRAMS = YES
# You can define message sequence charts within doxygen comments using the \msc
# command. Doxygen will then run the mscgen tool (see:
# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the
# documentation. The MSCGEN_PATH tag allows you to specify the directory where
# the mscgen tool resides. If left empty the tool is assumed to be found in the
# default search path.
MSCGEN_PATH =
# You can include diagrams made with dia in doxygen documentation. Doxygen will
# then run dia to produce the diagram and insert it in the documentation. The
# DIA_PATH tag allows you to specify the directory where the dia binary resides.
# If left empty dia is assumed to be found in the default search path.
DIA_PATH =
# If set to YES the inheritance and collaboration graphs will hide inheritance
# and usage relations if the target is undocumented or is not a class.
# The default value is: YES.
HIDE_UNDOC_RELATIONS = NO
# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
# available from the path. This tool is part of Graphviz (see:
# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent
# Bell Labs. The other options in this section have no effect if this option is
# set to NO
# The default value is: YES.
HAVE_DOT = @USE_DOT@
# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed
# to run in parallel. When set to 0 doxygen will base this on the number of
# processors available in the system. You can set it explicitly to a value
# larger than 0 to get control over the balance between CPU load and processing
# speed.
# Minimum value: 0, maximum value: 32, default value: 0.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_NUM_THREADS = 0
# When you want a differently looking font in the dot files that doxygen
# generates you can specify the font name using DOT_FONTNAME. You need to make
# sure dot is able to find the font, which can be done by putting it in a
# standard location or by setting the DOTFONTPATH environment variable or by
# setting DOT_FONTPATH to the directory containing the font.
# The default value is: Helvetica.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_FONTNAME = Helvetica
# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of
# dot graphs.
# Minimum value: 4, maximum value: 24, default value: 10.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_FONTSIZE = 10
# By default doxygen will tell dot to use the default font as specified with
# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set
# the path where dot can find it using this tag.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_FONTPATH =
# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for
# each documented class showing the direct and indirect inheritance relations.
# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
CLASS_GRAPH = YES
# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a
# graph for each documented class showing the direct and indirect implementation
# dependencies (inheritance, containment, and class references variables) of the
# class with other documented classes.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
COLLABORATION_GRAPH = YES
# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for
# groups, showing the direct groups dependencies.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
GROUP_GRAPHS = YES
# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and
# collaboration diagrams in a style similar to the OMG's Unified Modeling
# Language.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
UML_LOOK = NO
# If the UML_LOOK tag is enabled, the fields and methods are shown inside the
# class node. If there are many fields or methods and many nodes the graph may
# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the
# number of items for each type to make the size more manageable. Set this to 0
# for no limit. Note that the threshold may be exceeded by 50% before the limit
# is enforced. So when you set the threshold to 10, up to 15 fields may appear,
# but if the number exceeds 15, the total amount of fields shown is limited to
# 10.
# Minimum value: 0, maximum value: 100, default value: 10.
# This tag requires that the tag HAVE_DOT is set to YES.
UML_LIMIT_NUM_FIELDS = 10
# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and
# collaboration graphs will show the relations between templates and their
# instances.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
TEMPLATE_RELATIONS = NO
# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to
# YES then doxygen will generate a graph for each documented file showing the
# direct and indirect include dependencies of the file with other documented
# files.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
INCLUDE_GRAPH = YES
# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are
# set to YES then doxygen will generate a graph for each documented file showing
# the direct and indirect include dependencies of the file with other documented
# files.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
INCLUDED_BY_GRAPH = YES
# If the CALL_GRAPH tag is set to YES then doxygen will generate a call
# dependency graph for every global function or class method.
#
# Note that enabling this option will significantly increase the time of a run.
# So in most cases it will be better to enable call graphs for selected
# functions only using the \callgraph command. Disabling a call graph can be
# accomplished by means of the command \hidecallgraph.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
CALL_GRAPH = YES
# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller
# dependency graph for every global function or class method.
#
# Note that enabling this option will significantly increase the time of a run.
# So in most cases it will be better to enable caller graphs for selected
# functions only using the \callergraph command. Disabling a caller graph can be
# accomplished by means of the command \hidecallergraph.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
CALLER_GRAPH = YES
# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical
# hierarchy of all classes instead of a textual one.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
GRAPHICAL_HIERARCHY = YES
# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the
# dependencies a directory has on other directories in a graphical way. The
# dependency relations are determined by the #include relations between the
# files in the directories.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
DIRECTORY_GRAPH = YES
# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
# generated by dot. For an explanation of the image formats see the section
# output formats in the documentation of the dot tool (Graphviz (see:
# http://www.graphviz.org/)).
# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order
# to make the SVG files visible in IE 9+ (other browsers do not have this
# requirement).
# Possible values are: png, png:cairo, png:cairo:cairo, png:cairo:gd, png:gd,
# png:gd:gd, jpg, jpg:cairo, jpg:cairo:gd, jpg:gd, jpg:gd:gd, gif, gif:cairo,
# gif:cairo:gd, gif:gd, gif:gd:gd, svg, png:gd, png:gd:gd, png:cairo,
# png:cairo:gd, png:cairo:cairo, png:cairo:gdiplus, png:gdiplus and
# png:gdiplus:gdiplus.
# The default value is: png.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_IMAGE_FORMAT = png
# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
# enable generation of interactive SVG images that allow zooming and panning.
#
# Note that this requires a modern browser other than Internet Explorer. Tested
# and working are Firefox, Chrome, Safari, and Opera.
# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make
# the SVG files visible. Older versions of IE do not have SVG support.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
INTERACTIVE_SVG = no
# The DOT_PATH tag can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found in the path.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_PATH =
# The DOTFILE_DIRS tag can be used to specify one or more directories that
# contain dot files that are included in the documentation (see the \dotfile
# command).
# This tag requires that the tag HAVE_DOT is set to YES.
DOTFILE_DIRS =
# The MSCFILE_DIRS tag can be used to specify one or more directories that
# contain msc files that are included in the documentation (see the \mscfile
# command).
MSCFILE_DIRS =
# The DIAFILE_DIRS tag can be used to specify one or more directories that
# contain dia files that are included in the documentation (see the \diafile
# command).
DIAFILE_DIRS =
# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the
# path where java can find the plantuml.jar file. If left blank, it is assumed
# PlantUML is not used or called during a preprocessing step. Doxygen will
# generate a warning when it encounters a \startuml command in this case and
# will not generate output for the diagram.
PLANTUML_JAR_PATH =
# When using plantuml, the specified paths are searched for files specified by
# the !include statement in a plantuml block.
PLANTUML_INCLUDE_PATH =
# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes
# that will be shown in the graph. If the number of nodes in a graph becomes
# larger than this value, doxygen will truncate the graph, which is visualized
# by representing a node as a red box. Note that doxygen if the number of direct
# children of the root node in a graph is already larger than
# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that
# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
# Minimum value: 0, maximum value: 10000, default value: 50.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_GRAPH_MAX_NODES = 100
# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
# generated by dot. A depth value of 3 means that only nodes reachable from the
# root by following a path via at most 3 edges will be shown. Nodes that lay
# further from the root node will be omitted. Note that setting this option to 1
# or 2 may greatly reduce the computation time needed for large code bases. Also
# note that the size of a graph can be further restricted by
# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
# Minimum value: 0, maximum value: 1000, default value: 0.
# This tag requires that the tag HAVE_DOT is set to YES.
MAX_DOT_GRAPH_DEPTH = 5
# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
# background. This is disabled by default, because dot on Windows does not seem
# to support this out of the box.
#
# Warning: Depending on the platform used, enabling this option may lead to
# badly anti-aliased labels on the edges of a graph (i.e. they become hard to
# read).
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_TRANSPARENT = NO
# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output
# files in one run (i.e. multiple -o and -T options on the command line). This
# makes dot run faster, but since only newer versions of dot (>1.8.10) support
# this, this feature is disabled by default.
# The default value is: NO.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_MULTI_TARGETS = yes
# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page
# explaining the meaning of the various boxes and arrows in the dot generated
# graphs.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
GENERATE_LEGEND = YES
# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate dot
# files that are used to generate the various graphs.
# The default value is: YES.
# This tag requires that the tag HAVE_DOT is set to YES.
DOT_CLEANUP = YES
aqbanking-6.7.7beta/AUTHORS 0000664 0001750 0001750 00000000045 14043610744 012317 0000000 0000000 Martin Preuss
aqbanking-6.7.7beta/compile 0000755 0001750 0001750 00000016350 14215102164 012622 0000000 0000000 #! /bin/sh
# Wrapper for compilers which do not understand '-c -o'.
scriptversion=2018-03-07.03; # UTC
# Copyright (C) 1999-2021 Free Software Foundation, Inc.
# Written by Tom Tromey .
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report
# bugs to or send patches to
# .
nl='
'
# We need space, tab and new line, in precisely that order. Quoting is
# there to prevent tools from complaining about whitespace usage.
IFS=" "" $nl"
file_conv=
# func_file_conv build_file lazy
# Convert a $build file to $host form and store it in $file
# Currently only supports Windows hosts. If the determined conversion
# type is listed in (the comma separated) LAZY, no conversion will
# take place.
func_file_conv ()
{
file=$1
case $file in
/ | /[!/]*) # absolute file, and not a UNC file
if test -z "$file_conv"; then
# lazily determine how to convert abs files
case `uname -s` in
MINGW*)
file_conv=mingw
;;
CYGWIN* | MSYS*)
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi
case $file_conv/,$2, in
*,$file_conv,*)
;;
mingw/*)
file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
;;
cygwin/* | msys/*)
file=`cygpath -m "$file" || echo "$file"`
;;
wine/*)
file=`winepath -w "$file" || echo "$file"`
;;
esac
;;
esac
}
# func_cl_dashL linkdir
# Make cl look for libraries in LINKDIR
func_cl_dashL ()
{
func_file_conv "$1"
if test -z "$lib_path"; then
lib_path=$file
else
lib_path="$lib_path;$file"
fi
linker_opts="$linker_opts -LIBPATH:$file"
}
# func_cl_dashl library
# Do a library search-path lookup for cl
func_cl_dashl ()
{
lib=$1
found=no
save_IFS=$IFS
IFS=';'
for dir in $lib_path $LIB
do
IFS=$save_IFS
if $shared && test -f "$dir/$lib.dll.lib"; then
found=yes
lib=$dir/$lib.dll.lib
break
fi
if test -f "$dir/$lib.lib"; then
found=yes
lib=$dir/$lib.lib
break
fi
if test -f "$dir/lib$lib.a"; then
found=yes
lib=$dir/lib$lib.a
break
fi
done
IFS=$save_IFS
if test "$found" != yes; then
lib=$lib.lib
fi
}
# func_cl_wrapper cl arg...
# Adjust compile command to suit cl
func_cl_wrapper ()
{
# Assume a capable shell
lib_path=
shared=:
linker_opts=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
eat=1
case $2 in
*.o | *.[oO][bB][jJ])
func_file_conv "$2"
set x "$@" -Fo"$file"
shift
;;
*)
func_file_conv "$2"
set x "$@" -Fe"$file"
shift
;;
esac
;;
-I)
eat=1
func_file_conv "$2" mingw
set x "$@" -I"$file"
shift
;;
-I*)
func_file_conv "${1#-I}" mingw
set x "$@" -I"$file"
shift
;;
-l)
eat=1
func_cl_dashl "$2"
set x "$@" "$lib"
shift
;;
-l*)
func_cl_dashl "${1#-l}"
set x "$@" "$lib"
shift
;;
-L)
eat=1
func_cl_dashL "$2"
;;
-L*)
func_cl_dashL "${1#-L}"
;;
-static)
shared=false
;;
-Wl,*)
arg=${1#-Wl,}
save_ifs="$IFS"; IFS=','
for flag in $arg; do
IFS="$save_ifs"
linker_opts="$linker_opts $flag"
done
IFS="$save_ifs"
;;
-Xlinker)
eat=1
linker_opts="$linker_opts $2"
;;
-*)
set x "$@" "$1"
shift
;;
*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
func_file_conv "$1"
set x "$@" -Tp"$file"
shift
;;
*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
func_file_conv "$1" mingw
set x "$@" "$file"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -n "$linker_opts"; then
linker_opts="-link$linker_opts"
fi
exec "$@" $linker_opts
exit 1
}
eat=
case $1 in
'')
echo "$0: No command. Try '$0 --help' for more information." 1>&2
exit 1;
;;
-h | --h*)
cat <<\EOF
Usage: compile [--help] [--version] PROGRAM [ARGS]
Wrapper for compilers which do not understand '-c -o'.
Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
arguments, and rename the output as expected.
If you are trying to build a whole package this is not the
right script to run: please start by reading the file 'INSTALL'.
Report bugs to .
EOF
exit $?
;;
-v | --v*)
echo "compile $scriptversion"
exit $?
;;
cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
func_cl_wrapper "$@" # Doesn't return...
;;
esac
ofile=
cfile=
for arg
do
if test -n "$eat"; then
eat=
else
case $1 in
-o)
# configure might choose to run compile as 'compile cc -o foo foo.c'.
# So we strip '-o arg' only if arg is an object.
eat=1
case $2 in
*.o | *.obj)
ofile=$2
;;
*)
set x "$@" -o "$2"
shift
;;
esac
;;
*.c)
cfile=$1
set x "$@" "$1"
shift
;;
*)
set x "$@" "$1"
shift
;;
esac
fi
shift
done
if test -z "$ofile" || test -z "$cfile"; then
# If no '-o' option was seen then we might have been invoked from a
# pattern rule where we don't need one. That is ok -- this is a
# normal compilation that the losing compiler can handle. If no
# '.c' file was seen then we are probably linking. That is also
# ok.
exec "$@"
fi
# Name of file we expect compiler to create.
cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
# Create the lock directory.
# Note: use '[/\\:.-]' here to ensure that we don't use the same name
# that we are using for the .o file. Also, base the name on the expected
# object file name, since that is what matters with a parallel build.
lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
while true; do
if mkdir "$lockdir" >/dev/null 2>&1; then
break
fi
sleep 1
done
# FIXME: race condition here if user kills between mkdir and trap.
trap "rmdir '$lockdir'; exit 1" 1 2 15
# Run the compile.
"$@"
ret=$?
if test -f "$cofile"; then
test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
elif test -f "${cofile}bj"; then
test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
fi
rmdir "$lockdir"
exit $ret
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'before-save-hook 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC0"
# time-stamp-end: "; # UTC"
# End:
aqbanking-6.7.7beta/TODO 0000644 0001750 0001750 00000003667 15073466522 011761 0000000 0000000 Next:
=====
- bankinfo:
- build also in gwbuild
- HBCI:
- when TAN is requested on GetAccounts:
- dispatch response to first message, not to TAN request (#244)!
- AqBanking
- check SEPA conformity, show warning!!
- remove AB_Gui_CheckCert()
- remove AB_Banking_MakeGermanIban()
- remove AB_ERROR
- mark following functions as deprecated:
- AB_Banking_LoadSharedConfig()
- AB_Banking_SaveSharedConfig()
- AB_Banking_LockSharedConfig()
- AB_Banking_UnlockSharedConfig()
- AB_Banking_GetAppName()
- AB_Banking_GetEscapedAppName()
- AB_Banking_GetUserDataDir()
- AB_Banking_GetSharedDataDir()
- HBCI:
- show name and number of segment a result segment refers to in log messages
- check BPD "StoreDays" for segment HKKAZ
- AqBanking
- let AB_ImExporterAccountInfo_List_Find() check account type etc as well
- HBCI:
- always look for HIUPA/HIUPD in bank responses, especially 1822 sends account lists
even when there is an error
- XML-Exporter:
- GWEN_XMLNode_SetCharValueByPath(): Add flag to specify whether to escape to XML (e.g. "&"->"&")
- AQHBCI:
- simplify functions:
- AH_JobQueue_DispatchMessage()
- AH_JobQueue_ToMessage()
- AH_JobQueue_AddJob()
- AH_Msg_DecodeMsg()
- AH_Msg_LogMessage()
- TAN entry: Maybe move that completely to AqBanking? GWEN_Gui_GetPasswords
has become a monster...
- AB_BANKING:
- find out why AB_Value_toString doesn't work when importing cma_052
- fix apidoc for provider.h
- create APIDOC for banking jobs
- remove class aqhbci (move to ah_provider)
- sort "#include" directives in backends, make them more specific
- AqHBCI:
- HKEKA
Mid-term
========
- release AqBanking under LGPL
Long-term
=========
- remove message engine stuff, use parser from AqFints instead
Old
===
- loganalyzer: read messages from FASTBUFFER instead from IO
- send a local branch under the same name to server:
"git push -u origin HEAD"
aqbanking-6.7.7beta/aqbanking.pc.in 0000664 0001750 0001750 00000002230 14214726437 014140 0000000 0000000 # pkg-config configuration for aqbanking
# For information about the syntax, see pkg-config(1)
# General installation directories
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
pkgincludedir=@includedir@/aqbanking6/aqbanking
datarootdir=@datarootdir@
datadir=@datadir@
bindir=@bindir@
# Particular variables of aqbanking
plugindir=@aqbanking_plugindir@
pkgdatadir=@aqbanking_pkgdatadir@
all_includes=@all_includes@
vmajor=@AQBANKING_VERSION_MAJOR@
vminor=@AQBANKING_VERSION_MINOR@
vpatchlevel=@AQBANKING_VERSION_PATCHLEVEL@
vbuild=@AQBANKING_VERSION_BUILD@
vtag=@AQBANKING_VERSION_TAG@
vstring=@AQBANKING_VERSION_MAJOR@.@AQBANKING_VERSION_MINOR@.@AQBANKING_VERSION_PATCHLEVEL@
# ... and particular variables of all included subpackages
aqbanking_libs=@aqbanking_ldflags@ @aqbanking_libs@
aqbanking_includes=@aqbanking_includes@
aqbanking_plugindir=@aqbanking_plugindir@
# Human-readable name
Name: AqBanking
# Human-readable description
Description: A library for online banking functions and financial data import/export
Version: @VERSION@
Libs: @aqbanking_ldflags@ @aqbanking_libs@
Cflags: @aqbanking_includes@ @gwenhywfar_includes@
aqbanking-6.7.7beta/README 0000644 0001750 0001750 00000042364 15074010354 012133 0000000 0000000
Content
=======
1. What Is AqBanking ?
1.1. Generic Online Banking Interface
1.2. Generic Financial Data Importer/Exporter Framework
1.3. Bank/Account Information
2. Supported Platforms
3. Supported Backends
3.1. HBCI
3.2. OFX Direct Connect
3.3. EBICS
3.4. Paypal
3.5. None
4. What Do I Need ?
4.1. Required Packages
4.2. Applications
5. Building AqBanking
5.1. Building from the Tar File
5.2. Building from GIT
5.3. Building the API Documentation
5.4. Building using gwbuild
6. Windows Registry Keys Used
6.1. Software\\AqBanking\\Paths\\pkgdatadir
6.2. Software\\AqBanking\\Paths\\sysconfdir
6.3. Software\\AqBanking\\Paths\\bankinfodir
6.4. Software\\AqBanking\\Paths\\providerdir
6.5. Software\\AqBanking\\Paths\\importerdir
7. Environment Variables Used
7.1. AQBANKING_LOGLEVEL
7.2. AQBANKING_STORE_JOBLOGS
7.3. AQHBCI_LOGBOOKED
7.4. AQHBCI_LOGNOTED
7.5. AQHBCI_DEBUG_JOBS
7.6. AQOFX_LOG_COMM
8 . Using Your Own Profiles for Im-/Exporters
9. Thanks
10. Translation
11. Changes from AqBanking 5.x to 6.x
1. What Is AqBanking ?
======================
AqBanking is a library for online banking and financial
applications. It has three major goals which are described in the
following paragraphs.
(Note: Information in German can be found on
https://linuxwiki.de/AqBanking )
The homepage of AqBanking is https://www.aqbanking.de/
1.1. Generic Online Banking Interface
-------------------------------------
The intention of AqBanking is to provide a middle layer between the program
and the various Online Banking libraries (e.g. AqHBCI, OpenHBCI etc).
The real work is done in so-called banking backends. See chapter 3 for a
list of supported backends.
1.2. Generic Financial Data Importer/Exporter Framework
-------------------------------------------------------
AqBanking uses various plugins to simplify import and export of financial
data. It also provides the administration of profiles on a per import/export
plugin basis.
Currently there are plugins for the following formats:
- Importers:
- DTAUS (German financial format)
- SWIFT (MT940 and MT942)
- OFX
- CSV
- OpenHBCI1 transactions
- ERI
- Q43
- XML (various formats like SEPA-PAIN, CAMT, OFX)
- Exporters
- DTAUS (German financial format)
- CSV
- XML (various formats like SEPA-PAIN, CAMT, OFX)
1.3. Bank/Account Information
-----------------------------
AqBanking supports plugins which allow lookup of
bank code/ account id pair validity.
Currently AqBanking provides informations about:
- ca 20,000 German banks
2. Supported Platforms
======================
AqBanking uses the library Gwenhywfar (https://www.aqbanking.de/) for
abstraction of the underlying system. So it should work on any system for
which Gwenhywfar is available.
This includes (but is not limited to):
- Linux (of course ;-)
- Windows
- MacOSX 10.5 and newer
- most POSIX systems (such as the BSDs) should also be supported,
however, this is untested
3. Supported Backends
=====================
AqBanking includes all its currently known banking backends.
3.1. HBCI
---------
The backend AqHBCI provides support for the German online banking protocol
called "Homebanking Computer Interface". It is a national standard provided
by most German credit institutes.
The following security media are supported:
- DDV chipcard (DES-DES-Verfahren)
- RSA chipcard (RSA-DES-Hybrid mode)
- OpenHBCI keyfile (either OpenHBCI 1 or 2, this medium allows continued use
with OpenHBCI in parallel)
- PIN/TAN (PIN/TAN mode using HTTP over SSL)
This backend supports the HBCI versions 2.01, 2.10, 2.20 and 3.00
3.2. OFX Direct Connect
-----------------------
This backend provides support for an online banking protocol used in the
United States, Canada and maybe in the United Kingdom.
3.3. EBICS
----------
EBICS is the successor of the German banking protocol FTAM. It is used in commercial
environments.
3.4. Paypal
-----------
This backend uses Paypal's native API for retrieving transactions.
3.5. None
---------
This is a fallback module which can be used by applications for accounts which
are not managed by any online banking backend.
4. What Do I Need ?
===================
4.1. Required Packages
----------------------
AqBanking has several direct dependencies:
- "Gwenhywfar" >= 3.99.0, available from
https://www.aqbanking.de/, is absolutely required
- "GMP", the GNU MP Bignum Library available from
https://gmplib.org/index.html is required for calculations
4.2. Applications
-----------------
These applications fully or partially support AqBanking:
- AqFinance (https://www2.aquamaniac.de/sites/aqfinance/index.php)
- Gnucash (https://www.gnucash.org/)
- KMyMoney (https://www.kmymoney.org/)
- OrgaMon (https://www.orgamon.org/)
The aqbanking package also includes several command-line tools
(aqbanking-tool, aqhbci-tool).
5. Building AqBanking
=====================
5.1. Building from the Tar File
-------------------------------
#>./configure
#>make
#>make install
(the last step most probably requires you to be root)
In case of an error on "make" you might want to try this after ./configure:
#> make typedefs
#> make typefiles
Compilation hints for specific platforms:
- For FreeBSD and potentially other non-Linux platform, it might be
necessary to use "gmake" instead of the "make" program.
- Also, if your "make" program happens to complain about the variable
definition "I18NFILES = $(shell cat ..." (in Makefile.in around line
230) and related definitions, then you need to look for comments in
the Makefile about "old make programs". Follow the instructions in
these comments, i.e. set some variable definitions to an empty
variable manually. This should remove all potentially incompatible
directives from the Makefile.
- (especially on Mac/Darwin): If your configure run does not
detect the QT libraries and it says "checking for qt3
libraries... not found", then you need to specify the linker
flags for qt3 manually in the env variable qt3_libs. I.e. if
your qt3 library files are in /opt/qt/lib and is called
libqt-mt, then you need to specify
./configure qt3_libs="-L/opt/qt/lib -lqt-mt"
5.2. Building from GIT
----------------------
#> make -fMakefile.cvs
#> ./configure
#> make typedefs
#> make typefiles
and continue as described in "5.1. Building from the Tar File".
5.3. Building the API Documentation
-----------------------------------
#>make srcdoc
If you want to install a linked API documentation (which links against the
API documentations of the projects AqBanking depends on) use this:
#> make install-srcdoc
This installs the linked doc to the path you gave to ./configure
by "--with-docpath=PATH". It defaults to "$HOME/apidoc", which
means it does *not* obey the --prefix argument.
5.4. Building using gwbuild
---------------------------
Download the git version or a tarball of AqBanking. Create a folder "build" somewhere (e.g. completely outside
the source tree or in its main folder), change into that "build" folder and perform the following steps:
#> gwbuild -s PATH_TO_SOURCE_TREE
#> gwbuild -p
#> gwbuild -B tm2builder
#> gwbuild
The last two steps accept the argument "-j XX" which lets you specify the number of parallel build processes
to use.
6. Windows Registry Keys Used
=============================
Some AqBanking versions might use registry keys below HKEY_CURRENT_USER.
These are at the moment only versions shipped with GnuCash (at least that
used to be the case which is why handling of registry keys was introduced
in the first place). Most versions of AqBanking don't use the registry
to determine installation paths because those versions are filesystem
relocatable, so they don't need the registry.
At any rate, those versions that still do use the registry use the
following keys. These keys are created by the setup.exe which
contains the binary package for WIN32 platforms.
6.1. Software\\AqBanking\\Paths\\pkgdatadir
-------------------------------------------
This is the data folder (i.e. $PREFIX/share/aqbanking on POSIX systems).
6.2. Software\\AqBanking\\Paths\\sysconfdir
-------------------------------------------
This is the folder containing system configuration files.
(i.e. $PREFIX/etc on POSIX systems).
6.3. Software\\AqBanking\\Paths\\bankinfodir
-------------------------------------------
This folder is used to store bankinfo plugins.
6.4. Software\\AqBanking\\Paths\\providerdir
-------------------------------------------
This folder is used to store provider (backend) plugins.
6.5. Software\\AqBanking\\Paths\\importerdir
-------------------------------------------
This folder is used to store importer/exporter plugins.
7. Environment Variables Used
=============================
7.1. AQBANKING_LOGLEVEL
-----------------------
This variable stores the loglevel to be used for AqBanking.
Possible values are: emergency, alert, critical, error, warning, notice,
info, debug and verbous. Each following log level includes the previous
one.
7.2. AQBANKING_STORE_JOBLOGS
----------------------------
If this variable is defined then AqBanking will always store job logs with
jobs. Otherwise job logs are only stored for jobs with a status other than
"finished". Job logs can become quite big.
7.3. AQHBCI_LOGBOOKED
---------------------
If this environment variable exists then the file "/tmp/booked.mt" is created
upon reception of transactions via the job GetTransactions. This file then
contains a SWIFT MT940 document which can be very helpfull in case there is
a problem in the SWIFT parser.
7.4. AQHBCI_LOGNOTED
--------------------
Same as AQHBCI_LOGBOOKED but for noted transactions (which are transactions
which are noted but not yet booked)
7.5. AQHBCI_DEBUG_JOBS
----------------------
If this variable exists then additional debugging data is stored with each
job.
7.6. AQOFX_LOG_COMM
-------------------
If this variable exists then all OFX communication is logged to /tmp/ofx.log.
This is only needed when debugging AqOfxConnect.
WARNING: This might expose your user id and password to everyone who can read
that file!
8. Using Your Own Profiles for Im-/Exporters
============================================
You can create your own profiles to be used with the various importers.
For AqBanking to recognize your private profiles they must be stored in
the user local folder.
E.g. CSV profiles on Linux must be stored in
"$HOME/.aqbanking/imexporters/csv/profiles/".
9. Thanks
==========
I wish to thank the following (among others) people for their support in
making AqBanking work:
- Christian Stimming (build-system and tarball cleanup, translations, inputs)
- Jens Koerner (did some huge jobs to provide German translation)
- David Reiser (for helping in debugging the OFX DirectConnect code)
- Christoph Bohl (for helping with the YellowNet backend)
- and of course the many people who submitted bug reports !!
10. Translation
===============
To work on translation of this project you need the following packages on
Debian based systems:
- po4a
- translate-toolkit (for "msghack")
You can then create the necessary files with:
- make catalogs
- make merge
This will create the necessary *.pot and *.po files, the latter should then be
translated.
11. Changes from AqBanking 5.x to 6.x
======================================
These are the major changes which need to be followed by applications when using
AqBanking6:
- AB_TRANSACTION:
- remoteName: - changed type from GWEN_STRINGLIST to simple char*
- purpose: - changed type from GWEN_STRINGLIST to simple char* (lines separated by "\n")
- date: - changed type from GWEN_TIME to GWEN_DATE
- valutaDate: - changed type from GWEN_TIME to GWEN_DATE
- firstExecutionDate: - renamed to firstDate (used in a more generic way)
- lastExecutionDate: - renamed to lastDate (used in a more generic way)
- unitPrice: - renamed to unitPriceValue (because there is also unitPriceDate)
- commission: - renamed to commissionValue
- sequenceType: - renamed to sequence
- addPurpose(): - changed to addPurposeLine()
- addRemoteName(): - removed -> use AB_Transaction_SetRemoteName()
- AB_TRANSACTION_LIMITS
- valuesTextKey: - removed
- maxLinesRemoteName: - removed
- valuesCycleMonth: - changed type from GWEN_STRINGLIST to array of uint8_t
- valuesExecutionDayMonth: - changed type from GWEN_STRINGLIST to array of uint8_t
- valuesCycleWeek: - changed type from GWEN_STRINGLIST to array of uint8_t
- valuesExecutionDayWeek: - changed type from GWEN_STRINGLIST to array of uint8_t
- AB_TRANSACTION_TYPE
- euTransfer: - removed
- AB_TRANSACTION_SEQUENCETYPE: - renamed to AB_TRANSACTION_SEQUENCE
- AB_JobGetTransactions:
- setFromTime(): - renamed to setFromDate(), changed arg type from GWEN_TIME to GWEN_DATE
- setToTime(): - renamed to setToDate(), changed arg type from GWEN_TIME to GWEN_DATE
- AB_IMEXPORTER_CONTEXT:
- AB_IMEXPORTER_ACCOUNTINFO: - all kind of transactions are now in a single AB_TRANSACTION_LIST, removing
the previously dedicated lists for notedTransactions, transfers, debitNotes etc.
You can now distinguish the type of transaction by inspecting the field
"type" of AB_TRANSACTION.
Normally only one type of transaction is in use at any time anyway, e.g. when sending
debit note requests the AB_IMEXPORTER_CONTEXT will only contain debitNotes anyway.
- changed list traversal methods.
Previously you would iterate through the list of transactions like this:
-------------------------------------------------------------------------X8
t=AB_ImExporterAccountInfo_GetFirstTransaction(iea);
...
t=AB_ImExporterAccountInfo_GetNextTransaction(iea);
-------------------------------------------------------------------------X8
This made it necessary to hold internal pointers to keep track of the last transaction
returned.
Since AqBanking6 only the lists are stored inside a AB_IMEXPORTER_ACCOUNTINFO.
You can now freely iterate through a transaction list like this:
-------------------------------------------------------------------------X8
t=AB_ImExporterAccountInfo_GetFirstTransaction(iea);
...
t=AB_Transaction_List_Next(t);
...
t=AB_Transaction_List_Previous(t);
-------------------------------------------------------------------------X8
So you can now use all list functions on the lists stored.
This is true for all list handled by a AB_IMEXPORTER_CONTEXT and AB_IMEXPORTER_ACCOUNTINFO,
especially:
- list of account infos objects (AB_IMEXPORTER_ACCOUNTINFO)
- list of transactions
- list of account status
- list of messages
- list of electronic banking statements
- AB_JOB: - removed (now taken over by AB_TRANSACTION)
- AB_BANKING: - removed handling of AB_USER and AB_ACCOUNT completely, introduced AB_ACCOUNT_SPEC:
- added AB_Banking_GetAccountSpecList()
- added AB_Banking_GetAccountSpecByUniqueId()
- replaced AB_Banking_ExecuteJobs() with AB_Banking_SendCommands()
- this function takes a list of jobs in AB_TRANSACTIONs and sends them, no longer needs AB_JOB
- AB_COUNTRY: - deprecated, will be removed before release
- AB_IMEXPORTER: - removed (functions now in AB_Banking)
- Includes: - some header files have been moved to subfolders (e.g. aqbanking/value.h -> aqbanking/types/value.h>)
If your compiler complains about missing headers try "aqbanking/types/" instead of "aqbanking".
Martin Preuss, Hamburg/Germany, 2022/08/21
aqbanking-6.7.7beta/ChangeLog 0000644 0001750 0001750 00000043070 15075177315 013034 0000000 0000000 ------------------------------------------------------------------
2025-10-19 17:07:44 +0200 Martin Preuss
Prepared release 6.7.7beta
------------------------------------------------------------------
2025-10-19 10:18:49 +0200 Martin Preuss
aqhbci: make GetSysId a noITAN job.
------------------------------------------------------------------
2025-10-18 18:10:58 +0200 Martin Preuss
Prepared release 6.7.6beta.
------------------------------------------------------------------
2025-10-18 18:05:23 +0200 Martin Preuss
Prepared release 6.7.5beta.
------------------------------------------------------------------
2025-10-18 17:58:41 +0200 Martin Preuss
aqhbci: try to apply VOP responses to transfers.
set AB_TRANSACTION fields:
- VopResult: VOP Result
- UltimateCreditor: alternative name returned by the bank
------------------------------------------------------------------
2025-10-18 16:41:55 +0200 Martin Preuss
aqhbci: more work on VPP result handling.
------------------------------------------------------------------
2025-10-18 00:39:59 +0200 Martin Preuss
aqhbci: minor improvements fir VOP message from bank (if any)
------------------------------------------------------------------
2025-10-18 00:37:48 +0200 Martin Preuss
XML: add initial importer fir pain.002.01.10
------------------------------------------------------------------
2025-10-17 22:41:53 +0200 Martin Preuss
aqhbci: increased verbosity.
------------------------------------------------------------------
2025-10-17 22:35:19 +0200 Martin Preuss
aqhbci: use AH_OutboxCBox_OpenDialogSingleStepWithJob() for NOITAN jobs.
------------------------------------------------------------------
2025-10-17 22:34:57 +0200 Martin Preuss
aqhbci: added AH_OutboxCBox_OpenDialogSingleStepWithJob()
------------------------------------------------------------------
2025-10-17 19:22:42 +0200 Martin Preuss
Prepare release 6.7.4beta
------------------------------------------------------------------
2025-10-17 19:17:02 +0200 Martin Preuss
Prepared release 6.7.3beta
------------------------------------------------------------------
2025-10-17 19:16:04 +0200 Martin Preuss
aqhbci: move segdefs into correct place.
------------------------------------------------------------------
2025-10-17 19:15:46 +0200 Martin Preuss
aqhbci: getsysid works for me after this change.
------------------------------------------------------------------
2025-10-17 18:15:04 +0200 Martin Preuss
aqhbci: fixed a segfault.
------------------------------------------------------------------
2025-10-17 00:01:07 +0200 Martin Preuss
Prepared release 6.7.2beta.
------------------------------------------------------------------
2025-10-16 23:24:21 +0200 Martin Preuss
aqhbci: always send workJob in non-PINTAN mode.
------------------------------------------------------------------
2025-10-16 23:05:32 +0200 Martin Preuss
aqhbci: send workjob also if VPP result contains 3090.
------------------------------------------------------------------
2025-10-15 23:30:44 +0200 Martin Preuss
Prepared release 6.7.1beta.
------------------------------------------------------------------
2025-10-15 22:58:41 +0200 Martin Preuss
added comment to README about "make typedefs" and "make types".
------------------------------------------------------------------
2025-10-15 22:45:59 +0200 Martin Preuss
aqhbci: don't send HKTAN for noItan jobs.
------------------------------------------------------------------
2025-10-14 17:50:04 +0200 Martin Preuss
Prepared release 6.7.0beta.
------------------------------------------------------------------
2025-10-14 17:31:27 +0200 Martin Preuss
Merge VOP branch 'mp-202510-vop'
# Conflicts:
# 0BUILD
# configure.ac
------------------------------------------------------------------
2025-10-13 23:18:08 +0200 Martin Preuss
aqhbci: show vop message for non-PINTAN mode as well.
------------------------------------------------------------------
2025-10-13 23:15:22 +0200 Martin Preuss
aqhbci: add VOP messages.
Specs require us to present a dialog to the user in case of less than 100%
match.
------------------------------------------------------------------
2025-10-12 23:02:31 +0200 Martin Preuss
aqhbci: initial VOP support for non-PINTAN mode.
------------------------------------------------------------------
2025-10-12 19:34:16 +0200 Martin Preuss
aqhbci: only call AH_OutboxCBox_OpenDialogPsd2WithJob_Proc2() if signature needed
this enables anomymous dialogs again which need to signatures (and
therefore no HKTAN).
Fixes "getbankinfos".
------------------------------------------------------------------
2025-10-12 17:14:48 +0200 Martin Preuss
aqhbci: set needTAN flags when needed.
------------------------------------------------------------------
2025-10-12 10:03:09 +0200 Martin Preuss
aqhbci vop: fixed queue creation for decoupled mode.
------------------------------------------------------------------
2025-10-12 09:59:01 +0200 Martin Preuss
Prepared next test version.
------------------------------------------------------------------
2025-10-11 23:49:41 +0200 Martin Preuss
faster movies.
------------------------------------------------------------------
2025-10-11 23:48:35 +0200 Martin Preuss
aqhbci: only prepare transfer jobs if prepare() is called for the first time.
------------------------------------------------------------------
2025-10-11 19:57:00 +0200 Martin Preuss
aqhbci: cleanup (one page per function).
------------------------------------------------------------------
2025-10-11 15:53:39 +0200 Martin Preuss
aqhbci: removed unneeded vars.
------------------------------------------------------------------
2025-10-11 15:46:55 +0200 Martin Preuss
aqhbci: more code sharing.
------------------------------------------------------------------
2025-10-11 01:14:34 +0200 Martin Preuss
aqhbci: more code sharing (_prepareFns not fit a single screen page).
------------------------------------------------------------------
2025-10-11 00:45:31 +0200 Martin Preuss
aqhbci/vop: fixed queue building (last step 2c needs a tan!).
also fixed waiting for VPP response.
------------------------------------------------------------------
2025-10-11 00:44:26 +0200 Martin Preuss
aqhbci: only prepare mass transfer job once (!) need to apply to other jobs
the reason is that we need to add exactly the same job up to twice when
using VOP, but it has to be unchanged (_prepareFn updates some timestamps).
------------------------------------------------------------------
2025-10-11 00:42:26 +0200 Martin Preuss
aqhbci: VOP id and polling id are both binary.
------------------------------------------------------------------
2025-10-11 00:41:29 +0200 Martin Preuss
aqhbci: use prepareFn before sending jobs.
call to this virtual function was removed a few days ago but never re-added.
------------------------------------------------------------------
2025-10-11 00:39:13 +0200 Martin Preuss
aqhbci: don't return error code if prepare function not set.
------------------------------------------------------------------
2025-10-10 19:13:09 +0200 Martin Preuss
vop: add sign and crypt flags to HKTAN if needed for initial job.
------------------------------------------------------------------
2025-10-08 23:15:40 +0200 Martin Preuss
aqhbci: try to handle 3945 response to HKVPP.
------------------------------------------------------------------
2025-10-08 21:09:01 +0200 Martin Preuss
aqhbci: added version 5 of JobGetDepot.
------------------------------------------------------------------
2025-10-06 16:06:52 +0200 Martin Preuss
release beta 6.6.99 20251006-1
------------------------------------------------------------------
2025-10-06 12:51:22 +0200 Martin Preuss
aqgivve: Fixed memory leak.
------------------------------------------------------------------
2025-10-06 12:32:26 +0200 Martin Preuss
Updated German bankinfo files.
------------------------------------------------------------------
2025-10-06 11:53:24 +0200 Martin Preuss
aqhbci: write VOP info to AB_TRANSACTION.
------------------------------------------------------------------
2025-10-06 11:52:53 +0200 Martin Preuss
aqhbci: add VOP info field to AB_TRANSACTION.
------------------------------------------------------------------
2025-10-06 11:51:49 +0200 Martin Preuss
Patch by rhabacker: don't escape plugin names.
------------------------------------------------------------------
2025-10-06 00:24:07 +0200 Martin Preuss
aqhbci: added missing files to Makefile.am
------------------------------------------------------------------
2025-10-05 20:10:29 +0200 Martin Preuss
aqhbci: some changes to make VOP work.
First transaction went through (with VPP and VPA messages) ;-)
------------------------------------------------------------------
2025-10-05 19:46:08 +0200 Martin Preuss
Merge branch 'rel-6.6.4'
------------------------------------------------------------------
2025-10-05 18:09:06 +0200 Martin Preuss
Prepared release 6.6.4.
------------------------------------------------------------------
2025-10-04 18:20:55 +0200 Martin Preuss
aqhbci: remove todoQueues (no longer used).
------------------------------------------------------------------
2025-10-04 18:03:46 +0200 Martin Preuss
aqhbci: removed a blank line.
------------------------------------------------------------------
2025-10-04 18:03:36 +0200 Martin Preuss
aqhbci: fixes some bugs in VOP code.
HKVPP is now sent and accepted by the bank, however, VOP seems not yet to
be active at my bank's server (response: "VOP not needed").
At least handling of VOP now basically works in my setup.
Since I don't receive a valid response from the server I'll have to wait until
I do...
------------------------------------------------------------------
2025-10-04 18:00:53 +0200 Martin Preuss
aqhbci: omit most checks for AH_JobQueue_AddJob()
jobQueue is no longer used to sort jobs by flags (all jobs are treated as
single mode jobs now).
------------------------------------------------------------------
2025-10-04 17:59:58 +0200 Martin Preuss
aqhbci: completed code.
------------------------------------------------------------------
2025-10-04 17:43:32 +0200 Martin Preuss
Revert "aqhbci: don't count TAN and VOP jobs in queue."
This reverts commit ddcc316a6dbe5be3a3e9f7dd30de718e23634e23.
------------------------------------------------------------------
2025-10-04 17:43:13 +0200 Martin Preuss
aqhbci: don't count TAN and VOP jobs in queue.
------------------------------------------------------------------
2025-10-04 16:41:29 +0200 Martin Preuss
aqhbci: removed mode for TAN process 1 (TAN1)
This wasn't supported anymore for years. Current TAN modes use process 2.
------------------------------------------------------------------
2025-10-04 16:38:00 +0200 Martin Preuss
aqhbci: removed tons of now unused code.
------------------------------------------------------------------
2025-10-04 16:26:09 +0200 Martin Preuss
aqhbci: more work on simplifying code.
- started removing jobQueue handling
- now every job is executed in synchronous mode, i.e. handling every
job s a single job and completely handle it (including continuation etc).
- technically this was always the case since PSD2, the code still allowed
for multiple jobs per message, but the banks only allow for a single
TAN-related job per message.
------------------------------------------------------------------
2025-10-04 09:55:22 +0200 Martin Preuss
aqhbci: share code. added some TODOs.
------------------------------------------------------------------
2025-10-04 00:41:45 +0200 Martin Preuss
aqhbci: fixed a bug (need to add VPA in stage2 not VPP)
------------------------------------------------------------------
2025-10-04 00:35:43 +0200 Martin Preuss
aqhbci: fixed a bug. added comment.
------------------------------------------------------------------
2025-10-04 00:35:26 +0200 Martin Preuss
aqhbci: added support for VOP jobs (not finished, yet).
------------------------------------------------------------------
2025-10-03 17:49:18 +0200 Martin Preuss
aqhbci: started working on Verification of Payee.
DON'T USE THIS BRANCH IN PRODUCTION!!!
This branch represents work on implementing the newly required feature
"Verification of Payee" which requires the application to request a check
of the payee for every transaction.
This had automatically been done by the banks internally before SEPA.
With SEPA that feature was dropped leaving users open to fraud.
So for the convenience of the banks we now have to introduce yet another
layer around sending transactions to the bank.
This branch is not released to the general public because it still doesn't
handle "Verification of Payee", yet.
USE AT YOUR OWN RISK!
That being said, this code when finished shouldn't introduce systemic
problems since not verifying the payee is the default behaviour of
AqBankings master branch for now anyway.
------------------------------------------------------------------
2025-09-30 23:01:33 +0200 Martin Preuss
use const.
------------------------------------------------------------------
2025-09-30 23:00:52 +0200 Martin Preuss
aqhbci: write national account specs for AH_Job_GetTransactionsCAMT.
------------------------------------------------------------------
2025-09-29 21:31:04 +0200 Martin Preuss
Prepared release 6.6.3.
------------------------------------------------------------------
2025-09-22 15:05:30 +0200 Martin Preuss
aqhbci: use account id also for HKSAL<7
------------------------------------------------------------------
2025-09-22 15:02:04 +0200 Martin Preuss
aqhbci: set accountId for HKKAZ older then ver 7.
HKKAZ ver 7 and higher use IBAN and BIC for account identification,
older segments use account number and bank code.
We should all be using CAMT, anyway...
------------------------------------------------------------------
2025-09-05 19:25:27 +0200 Martin Preuss
Merge branch 'rel-6.6.2-beta'
------------------------------------------------------------------
2025-09-05 18:17:14 +0200 Martin Preuss
Prpeared release 6.6.2beta.
------------------------------------------------------------------
2025-09-05 18:17:01 +0200 Martin Preuss
Fixed a compiler warning.
------------------------------------------------------------------
2025-09-05 18:10:52 +0200 Martin Preuss
aqhbci: Create class for national account jobs and use it.
------------------------------------------------------------------
2025-09-01 17:43:34 +0200 Martin Preuss
aqhbci: read generic info from HISPAS segment into user flags, add flag AH_USER_FLAGS_SEPA_ALLOWNATIONALACCSPEC
------------------------------------------------------------------
2025-09-01 16:12:43 +0200 Martin Preuss
Also send national bank info with groups "kti_i" and "kti_i_forced_sepa"
Might fix current problem with German Postbank server.
------------------------------------------------------------------
2025-07-05 16:58:22 +0200 Thomas Baumgart
Fixed various spelling errors
------------------------------------------------------------------
2025-07-22 18:33:38 +0200 Martin Preuss
Prepared release 6.6.1
------------------------------------------------------------------
2025-07-22 18:32:55 +0200 Martin Preuss
Prepared release 6.6.1.
------------------------------------------------------------------
2025-05-13 10:36:15 +0200 Martin Preuss
Fix invalid PAIN file format (following suggestions from Jochen via mailing list).
------------------------------------------------------------------
2025-03-06 11:59:36 +0100 Martin Preuss
aqfints: only verify pin in server mode.
------------------------------------------------------------------
2025-03-02 23:28:46 +0100 Martin Preuss
aqhbci: fixed a reason for segfault.
------------------------------------------------------------------
2024-12-17 20:28:20 +0100 Martin Preuss
prepared release 6.6.0
------------------------------------------------------------------
2024-12-17 20:28:02 +0100 Martin Preuss
added aqofxconnect-tool to .gitignore
------------------------------------------------------------------
2024-12-17 20:27:17 +0100 Martin Preuss
added missing .gitignore
------------------------------------------------------------------
2024-12-17 20:18:28 +0100 Martin Preuss
csv: added profile for comdirect depot status reports.
------------------------------------------------------------------
2024-10-13 14:37:36 +0200 Martin Preuss
aqhbci: fixed a bug (was not clearing "MODIFIED" flag in _saveUser)
------------------------------------------------------------------
2024-10-13 14:34:33 +0200 Martin Preuss
Improved im/exporter script for CAMT 053.001.02 (thanks to Jan Vlug)
Applied a patch by Jan Vlug via aqbanking-user mailing list.
------------------------------------------------------------------
2024-10-08 20:45:36 +0200 Ernst Kloppenburg
configure pain.001.001.09 as a sepa profile
------------------------------------------------------------------
2024-10-05 07:20:19 +0200 Ernst Kloppenburg
add pain.001.001.09 profile to xml imexporter
------------------------------------------------------------------
2024-10-08 21:08:44 +0200 Ernst Kloppenburg
configure pain.001.001.03 as a sepa profile
------------------------------------------------------------------
2024-10-05 07:40:27 +0200 Ernst Kloppenburg
fix typo in description field
------------------------------------------------------------------
2024-08-26 18:10:42 +0200 Martin Preuss
aqhbci: only mark pin "bad" if the server reports it as such.
------------------------------------------------------------------
2024-08-26 17:46:02 +0200 Martin Preuss
aqhbci: added methodId "Q1S" to map. Increased verbosity.
------------------------------------------------------------------
2024-07-15 21:00:03 +0200 Martin Preuss
increased verbosity, retry gmp_snprintf() on error
Current binary package of AqFinance throws an error in this code
which hints to this function. However, there should be no error when
calling gmp_snprintf() in this setup...
aqbanking-6.7.7beta/src/ 0000755 0001750 0001750 00000000000 15075177326 012127 5 0000000 0000000 aqbanking-6.7.7beta/src/Makefile.in 0000644 0001750 0001750 00000056231 15075177037 014122 0000000 0000000 # Makefile.in generated by automake 1.16.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = src
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx_compile_warn.m4 \
$(top_srcdir)/m4/as-scrub-include.m4 \
$(top_srcdir)/m4/distri.m4 $(top_srcdir)/m4/gwenhywfar.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/os.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
ctags-recursive dvi-recursive html-recursive info-recursive \
install-data-recursive install-dvi-recursive \
install-exec-recursive install-html-recursive \
install-info-recursive install-pdf-recursive \
install-ps-recursive install-recursive installcheck-recursive \
installdirs-recursive pdf-recursive ps-recursive \
tags-recursive uninstall-recursive
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
am__recursive_targets = \
$(RECURSIVE_TARGETS) \
$(RECURSIVE_CLEAN_TARGETS) \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
distdir distdir-am
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
DIST_SUBDIRS = $(SUBDIRS)
am__DIST_COMMON = $(srcdir)/Makefile.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
ACLOCAL = @ACLOCAL@
ADD_ACLOCAL_FLAGS = @ADD_ACLOCAL_FLAGS@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AQBANKING_CLI_VERSION_STRING = @AQBANKING_CLI_VERSION_STRING@
AQBANKING_FINTS_VERSION_STRING = @AQBANKING_FINTS_VERSION_STRING@
AQBANKING_SO_AGE = @AQBANKING_SO_AGE@
AQBANKING_SO_CURRENT = @AQBANKING_SO_CURRENT@
AQBANKING_SO_EFFECTIVE = @AQBANKING_SO_EFFECTIVE@
AQBANKING_SO_REVISION = @AQBANKING_SO_REVISION@
AQBANKING_VERSION_BUILD = @AQBANKING_VERSION_BUILD@
AQBANKING_VERSION_FULL_STRING = @AQBANKING_VERSION_FULL_STRING@
AQBANKING_VERSION_MAJOR = @AQBANKING_VERSION_MAJOR@
AQBANKING_VERSION_MINOR = @AQBANKING_VERSION_MINOR@
AQBANKING_VERSION_PATCHLEVEL = @AQBANKING_VERSION_PATCHLEVEL@
AQBANKING_VERSION_RELEASE_STRING = @AQBANKING_VERSION_RELEASE_STRING@
AQBANKING_VERSION_STRING = @AQBANKING_VERSION_STRING@
AQBANKING_VERSION_TAG = @AQBANKING_VERSION_TAG@
AQEBICS_CFLAGS = @AQEBICS_CFLAGS@
AQEBICS_LIBS = @AQEBICS_LIBS@
AR = @AR@
AS = @AS@
ASTYLE = @ASTYLE@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CSCOPE = @CSCOPE@
CTAGS = @CTAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DATETIME = @DATETIME@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN_DEFINE = @DOXYGEN_DEFINE@
DOXYGEN_EXCLUDE_PATTERNS = @DOXYGEN_EXCLUDE_PATTERNS@
DOXYGEN_FILE_PATTERNS = @DOXYGEN_FILE_PATTERNS@
DOXYGEN_INPUT = @DOXYGEN_INPUT@
DOXYGEN_TAGFILES = @DOXYGEN_TAGFILES@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
ETAGS = @ETAGS@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
FILECMD = @FILECMD@
GREP = @GREP@
GTK2_CFLAGS = @GTK2_CFLAGS@
GTK2_LIBS = @GTK2_LIBS@
GWENGUI_GTK2_CFLAGS = @GWENGUI_GTK2_CFLAGS@
GWENGUI_GTK2_LIBS = @GWENGUI_GTK2_LIBS@
GWENHYWFAR_MINIMUM_VERSION = @GWENHYWFAR_MINIMUM_VERSION@
HAVE_GWENGUI_GTK2 = @HAVE_GWENGUI_GTK2@
HAVE_I18N = @HAVE_I18N@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DLL_TARGET = @INSTALL_DLL_TARGET@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBXML_CFLAGS = @LIBXML_CFLAGS@
LIBXML_LIBS = @LIBXML_LIBS@
LIBXSLT_CFLAGS = @LIBXSLT_CFLAGS@
LIBXSLT_LIBS = @LIBXSLT_LIBS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MAKE_DLL_TARGET = @MAKE_DLL_TARGET@
MAKE_I18N_FILES = @MAKE_I18N_FILES@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MSGFMT = @MSGFMT@
MSGFMT_SUPPORTS_QT = @MSGFMT_SUPPORTS_QT@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSYSTEM = @OSYSTEM@
OS_TYPE = @OS_TYPE@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
RC = @RC@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
STRIPALL = @STRIPALL@
TUTORIALS = @TUTORIALS@
USE_DOT = @USE_DOT@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
XMLMERGE = @XMLMERGE@
XMLSEC_CFLAGS = @XMLSEC_CFLAGS@
XMLSEC_LIBS = @XMLSEC_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
aq_distrib_name = @aq_distrib_name@
aq_distrib_tag = @aq_distrib_tag@
aq_distrib_version = @aq_distrib_version@
aqbanking_backends = @aqbanking_backends@
aqbanking_cfg_searchdir = @aqbanking_cfg_searchdir@
aqbanking_data_searchdir = @aqbanking_data_searchdir@
aqbanking_headerdir = @aqbanking_headerdir@
aqbanking_headerdir_am = @aqbanking_headerdir_am@
aqbanking_includes = @aqbanking_includes@
aqbanking_internal_libs = @aqbanking_internal_libs@
aqbanking_ldflags = @aqbanking_ldflags@
aqbanking_libs = @aqbanking_libs@
aqbanking_locale_searchdir = @aqbanking_locale_searchdir@
aqbanking_modules = @aqbanking_modules@
aqbanking_pkgdatadir = @aqbanking_pkgdatadir@
aqbanking_plugin_searchdir = @aqbanking_plugin_searchdir@
aqbanking_plugindir = @aqbanking_plugindir@
aqbanking_plugins_backends_dirs = @aqbanking_plugins_backends_dirs@
aqbanking_plugins_backends_libs = @aqbanking_plugins_backends_libs@
aqbanking_plugins_bankinfo_dirs = @aqbanking_plugins_bankinfo_dirs@
aqbanking_plugins_bankinfo_libs = @aqbanking_plugins_bankinfo_libs@
aqbanking_plugins_imexporters_dirs = @aqbanking_plugins_imexporters_dirs@
aqbanking_plugins_imexporters_libs = @aqbanking_plugins_imexporters_libs@
aqbanking_plugins_parsers_dirs = @aqbanking_plugins_parsers_dirs@
aqbanking_symlinkdir = @aqbanking_symlinkdir@
aqbanking_sys_is_windows = @aqbanking_sys_is_windows@
aqbankingpp_modules = @aqbankingpp_modules@
aqebics_datadir = @aqebics_datadir@
aqebics_includes = @aqebics_includes@
aqebics_internal_libs = @aqebics_internal_libs@
aqebics_ldflags = @aqebics_ldflags@
aqebics_libs = @aqebics_libs@
aqfints_datadir = @aqfints_datadir@
aqhbci_datadir = @aqhbci_datadir@
aqhbci_includes = @aqhbci_includes@
aqhbci_internal_libs = @aqhbci_internal_libs@
aqhbci_ldflags = @aqhbci_ldflags@
aqhbci_libs = @aqhbci_libs@
aqofxconnect_includes = @aqofxconnect_includes@
aqofxconnect_internal_libs = @aqofxconnect_internal_libs@
aqofxconnect_libs = @aqofxconnect_libs@
aqpaypal_includes = @aqpaypal_includes@
aqpaypal_internal_libs = @aqpaypal_internal_libs@
aqpaypal_libs = @aqpaypal_libs@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
docpath = @docpath@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
gmp_libs = @gmp_libs@
gwenhywfar_bindir = @gwenhywfar_bindir@
gwenhywfar_dir = @gwenhywfar_dir@
gwenhywfar_has_crypt = @gwenhywfar_has_crypt@
gwenhywfar_headers = @gwenhywfar_headers@
gwenhywfar_includes = @gwenhywfar_includes@
gwenhywfar_libs = @gwenhywfar_libs@
gwenhywfar_plugins = @gwenhywfar_plugins@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
i18n_libs = @i18n_libs@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
typemaker2_exe = @typemaker2_exe@
visibility_cflags = @visibility_cflags@
with_aqebics = @with_aqebics@
with_aqhbci = @with_aqhbci@
SUBDIRS = libs tools test
all: all-recursive
.SUFFIXES:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu src/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
# This directory's subdirectories are mostly independent; you can cd
# into them and run 'make' without going through this Makefile.
# To change the values of 'make' variables: instead of editing Makefiles,
# (1) if the variable is set in 'config.status', edit 'config.status'
# (which will cause the Makefiles to be regenerated when you run 'make');
# (2) otherwise, pass the desired values on the 'make' command line.
$(am__recursive_targets):
@fail=; \
if $(am__make_keepgoing); then \
failcom='fail=yes'; \
else \
failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-recursive
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-recursive
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-recursive
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
$(am__make_dryrun) \
|| test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
html-am:
info: info-recursive
info-am:
install-data-am:
install-dvi: install-dvi-recursive
install-dvi-am:
install-exec-am:
install-html: install-html-recursive
install-html-am:
install-info: install-info-recursive
install-info-am:
install-man:
install-pdf: install-pdf-recursive
install-pdf-am:
install-ps: install-ps-recursive
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am:
.MAKE: $(am__recursive_targets) install-am install-strip
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
check-am clean clean-generic clean-libtool cscopelist-am ctags \
ctags-am distclean distclean-generic distclean-libtool \
distclean-tags distdir dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
installdirs-am maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
ps ps-am tags tags-am uninstall uninstall-am
.PRECIOUS: Makefile
sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d sources; \
done
built_sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d built_sources; \
done ;
cppcheck:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
typefiles:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typefiles; \
done
typedefs:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typedefs; \
done
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
aqbanking-6.7.7beta/src/tools/ 0000755 0001750 0001750 00000000000 15075177326 013267 5 0000000 0000000 aqbanking-6.7.7beta/src/tools/Makefile.am 0000664 0001750 0001750 00000000640 14043610745 015234 0000000 0000000 SUBDIRS=aqbanking-cli mkdeinfo
sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d sources; \
done
built_sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d built_sources; \
done ;
cppcheck:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
typefiles:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typefiles; \
done
typedefs:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typedefs; \
done
aqbanking-6.7.7beta/src/tools/Makefile.in 0000644 0001750 0001750 00000056262 15075177041 015261 0000000 0000000 # Makefile.in generated by automake 1.16.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = src/tools
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx_compile_warn.m4 \
$(top_srcdir)/m4/as-scrub-include.m4 \
$(top_srcdir)/m4/distri.m4 $(top_srcdir)/m4/gwenhywfar.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/os.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
SOURCES =
DIST_SOURCES =
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
ctags-recursive dvi-recursive html-recursive info-recursive \
install-data-recursive install-dvi-recursive \
install-exec-recursive install-html-recursive \
install-info-recursive install-pdf-recursive \
install-ps-recursive install-recursive installcheck-recursive \
installdirs-recursive pdf-recursive ps-recursive \
tags-recursive uninstall-recursive
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
am__recursive_targets = \
$(RECURSIVE_TARGETS) \
$(RECURSIVE_CLEAN_TARGETS) \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
distdir distdir-am
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
DIST_SUBDIRS = $(SUBDIRS)
am__DIST_COMMON = $(srcdir)/Makefile.in
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
ACLOCAL = @ACLOCAL@
ADD_ACLOCAL_FLAGS = @ADD_ACLOCAL_FLAGS@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AQBANKING_CLI_VERSION_STRING = @AQBANKING_CLI_VERSION_STRING@
AQBANKING_FINTS_VERSION_STRING = @AQBANKING_FINTS_VERSION_STRING@
AQBANKING_SO_AGE = @AQBANKING_SO_AGE@
AQBANKING_SO_CURRENT = @AQBANKING_SO_CURRENT@
AQBANKING_SO_EFFECTIVE = @AQBANKING_SO_EFFECTIVE@
AQBANKING_SO_REVISION = @AQBANKING_SO_REVISION@
AQBANKING_VERSION_BUILD = @AQBANKING_VERSION_BUILD@
AQBANKING_VERSION_FULL_STRING = @AQBANKING_VERSION_FULL_STRING@
AQBANKING_VERSION_MAJOR = @AQBANKING_VERSION_MAJOR@
AQBANKING_VERSION_MINOR = @AQBANKING_VERSION_MINOR@
AQBANKING_VERSION_PATCHLEVEL = @AQBANKING_VERSION_PATCHLEVEL@
AQBANKING_VERSION_RELEASE_STRING = @AQBANKING_VERSION_RELEASE_STRING@
AQBANKING_VERSION_STRING = @AQBANKING_VERSION_STRING@
AQBANKING_VERSION_TAG = @AQBANKING_VERSION_TAG@
AQEBICS_CFLAGS = @AQEBICS_CFLAGS@
AQEBICS_LIBS = @AQEBICS_LIBS@
AR = @AR@
AS = @AS@
ASTYLE = @ASTYLE@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CSCOPE = @CSCOPE@
CTAGS = @CTAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DATETIME = @DATETIME@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN_DEFINE = @DOXYGEN_DEFINE@
DOXYGEN_EXCLUDE_PATTERNS = @DOXYGEN_EXCLUDE_PATTERNS@
DOXYGEN_FILE_PATTERNS = @DOXYGEN_FILE_PATTERNS@
DOXYGEN_INPUT = @DOXYGEN_INPUT@
DOXYGEN_TAGFILES = @DOXYGEN_TAGFILES@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
ETAGS = @ETAGS@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
FILECMD = @FILECMD@
GREP = @GREP@
GTK2_CFLAGS = @GTK2_CFLAGS@
GTK2_LIBS = @GTK2_LIBS@
GWENGUI_GTK2_CFLAGS = @GWENGUI_GTK2_CFLAGS@
GWENGUI_GTK2_LIBS = @GWENGUI_GTK2_LIBS@
GWENHYWFAR_MINIMUM_VERSION = @GWENHYWFAR_MINIMUM_VERSION@
HAVE_GWENGUI_GTK2 = @HAVE_GWENGUI_GTK2@
HAVE_I18N = @HAVE_I18N@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DLL_TARGET = @INSTALL_DLL_TARGET@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBXML_CFLAGS = @LIBXML_CFLAGS@
LIBXML_LIBS = @LIBXML_LIBS@
LIBXSLT_CFLAGS = @LIBXSLT_CFLAGS@
LIBXSLT_LIBS = @LIBXSLT_LIBS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MAKE_DLL_TARGET = @MAKE_DLL_TARGET@
MAKE_I18N_FILES = @MAKE_I18N_FILES@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MSGFMT = @MSGFMT@
MSGFMT_SUPPORTS_QT = @MSGFMT_SUPPORTS_QT@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSYSTEM = @OSYSTEM@
OS_TYPE = @OS_TYPE@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
RC = @RC@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
STRIPALL = @STRIPALL@
TUTORIALS = @TUTORIALS@
USE_DOT = @USE_DOT@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
XMLMERGE = @XMLMERGE@
XMLSEC_CFLAGS = @XMLSEC_CFLAGS@
XMLSEC_LIBS = @XMLSEC_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
aq_distrib_name = @aq_distrib_name@
aq_distrib_tag = @aq_distrib_tag@
aq_distrib_version = @aq_distrib_version@
aqbanking_backends = @aqbanking_backends@
aqbanking_cfg_searchdir = @aqbanking_cfg_searchdir@
aqbanking_data_searchdir = @aqbanking_data_searchdir@
aqbanking_headerdir = @aqbanking_headerdir@
aqbanking_headerdir_am = @aqbanking_headerdir_am@
aqbanking_includes = @aqbanking_includes@
aqbanking_internal_libs = @aqbanking_internal_libs@
aqbanking_ldflags = @aqbanking_ldflags@
aqbanking_libs = @aqbanking_libs@
aqbanking_locale_searchdir = @aqbanking_locale_searchdir@
aqbanking_modules = @aqbanking_modules@
aqbanking_pkgdatadir = @aqbanking_pkgdatadir@
aqbanking_plugin_searchdir = @aqbanking_plugin_searchdir@
aqbanking_plugindir = @aqbanking_plugindir@
aqbanking_plugins_backends_dirs = @aqbanking_plugins_backends_dirs@
aqbanking_plugins_backends_libs = @aqbanking_plugins_backends_libs@
aqbanking_plugins_bankinfo_dirs = @aqbanking_plugins_bankinfo_dirs@
aqbanking_plugins_bankinfo_libs = @aqbanking_plugins_bankinfo_libs@
aqbanking_plugins_imexporters_dirs = @aqbanking_plugins_imexporters_dirs@
aqbanking_plugins_imexporters_libs = @aqbanking_plugins_imexporters_libs@
aqbanking_plugins_parsers_dirs = @aqbanking_plugins_parsers_dirs@
aqbanking_symlinkdir = @aqbanking_symlinkdir@
aqbanking_sys_is_windows = @aqbanking_sys_is_windows@
aqbankingpp_modules = @aqbankingpp_modules@
aqebics_datadir = @aqebics_datadir@
aqebics_includes = @aqebics_includes@
aqebics_internal_libs = @aqebics_internal_libs@
aqebics_ldflags = @aqebics_ldflags@
aqebics_libs = @aqebics_libs@
aqfints_datadir = @aqfints_datadir@
aqhbci_datadir = @aqhbci_datadir@
aqhbci_includes = @aqhbci_includes@
aqhbci_internal_libs = @aqhbci_internal_libs@
aqhbci_ldflags = @aqhbci_ldflags@
aqhbci_libs = @aqhbci_libs@
aqofxconnect_includes = @aqofxconnect_includes@
aqofxconnect_internal_libs = @aqofxconnect_internal_libs@
aqofxconnect_libs = @aqofxconnect_libs@
aqpaypal_includes = @aqpaypal_includes@
aqpaypal_internal_libs = @aqpaypal_internal_libs@
aqpaypal_libs = @aqpaypal_libs@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
docpath = @docpath@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
gmp_libs = @gmp_libs@
gwenhywfar_bindir = @gwenhywfar_bindir@
gwenhywfar_dir = @gwenhywfar_dir@
gwenhywfar_has_crypt = @gwenhywfar_has_crypt@
gwenhywfar_headers = @gwenhywfar_headers@
gwenhywfar_includes = @gwenhywfar_includes@
gwenhywfar_libs = @gwenhywfar_libs@
gwenhywfar_plugins = @gwenhywfar_plugins@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
i18n_libs = @i18n_libs@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
typemaker2_exe = @typemaker2_exe@
visibility_cflags = @visibility_cflags@
with_aqebics = @with_aqebics@
with_aqhbci = @with_aqhbci@
SUBDIRS = aqbanking-cli mkdeinfo
all: all-recursive
.SUFFIXES:
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/tools/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu src/tools/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
# This directory's subdirectories are mostly independent; you can cd
# into them and run 'make' without going through this Makefile.
# To change the values of 'make' variables: instead of editing Makefiles,
# (1) if the variable is set in 'config.status', edit 'config.status'
# (which will cause the Makefiles to be regenerated when you run 'make');
# (2) otherwise, pass the desired values on the 'make' command line.
$(am__recursive_targets):
@fail=; \
if $(am__make_keepgoing); then \
failcom='fail=yes'; \
else \
failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-recursive
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-recursive
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-recursive
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
$(am__make_dryrun) \
|| test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
html-am:
info: info-recursive
info-am:
install-data-am:
install-dvi: install-dvi-recursive
install-dvi-am:
install-exec-am:
install-html: install-html-recursive
install-html-am:
install-info: install-info-recursive
install-info-am:
install-man:
install-pdf: install-pdf-recursive
install-pdf-am:
install-ps: install-ps-recursive
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am:
.MAKE: $(am__recursive_targets) install-am install-strip
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
check-am clean clean-generic clean-libtool cscopelist-am ctags \
ctags-am distclean distclean-generic distclean-libtool \
distclean-tags distdir dvi dvi-am html html-am info info-am \
install install-am install-data install-data-am install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
installdirs-am maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
ps ps-am tags tags-am uninstall uninstall-am
.PRECIOUS: Makefile
sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d sources; \
done
built_sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d built_sources; \
done ;
cppcheck:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
typefiles:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typefiles; \
done
typedefs:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typedefs; \
done
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
aqbanking-6.7.7beta/src/tools/aqbanking-cli/ 0000755 0001750 0001750 00000000000 15075177326 015767 5 0000000 0000000 aqbanking-6.7.7beta/src/tools/aqbanking-cli/getdoc.c 0000664 0001750 0001750 00000025637 14546575650 017343 0000000 0000000 /***************************************************************************
begin : Fri Mar 20 2021
copyright : (C) 2021 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
#include
#include
#define GETDOC_FLAGS_MULTI 0x0001
static AB_DOCUMENT_LIST2 *_getMatchingDocuments(AB_IMEXPORTER_CONTEXT *ctx, const char *wantedDocId);
static int _ensureDocData(AB_DOCUMENT *doc);
static int _exportDocuments(const AB_DOCUMENT_LIST2 *docList, const char *dest, uint32_t flags);
static int _writeDoc(const AB_DOCUMENT *doc, const char *dest, uint32_t flags);
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
int getDoc(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const char *ctxFile;
uint32_t flags=0;
AB_IMEXPORTER_CONTEXT *ctx=NULL;
AB_DOCUMENT_LIST2 *docList2;
const char *docId;
const char *dest;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read command line arguments */
docId=GWEN_DB_GetCharValue(db, "docId", 0, 0);
dest=GWEN_DB_GetCharValue(db, "destination", 0, 0);
flags|=(GWEN_DB_GetIntValue(db, "multi", 0, 0)>0)?GETDOC_FLAGS_MULTI:0;
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* load ctx file */
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
rv=readContext(ctxFile, &ctx, 1);
if (rv<0) {
DBG_ERROR(0, "Error reading context (%d)", rv);
AB_ImExporterContext_free(ctx);
return 3;
}
docList2=_getMatchingDocuments(ctx, docId);
if (docList2==NULL) {
DBG_ERROR(NULL, "No documents to export");
AB_Document_List2_free(docList2);
AB_ImExporterContext_free(ctx);
return 4;
}
if (AB_Document_List2_GetSize(docList2)>1 && !(flags & GETDOC_FLAGS_MULTI)) {
DBG_ERROR(NULL, "Ambigous arguments: Multiple matching documents but no -m flag given");
AB_Document_List2_free(docList2);
return 4;
}
rv=_exportDocuments(docList2, dest, flags);
if (rv<0) {
DBG_INFO(NULL, "Error exporting documents");
AB_Document_List2_free(docList2);
AB_ImExporterContext_free(ctx);
return 4;
}
AB_Document_List2_free(docList2);
AB_ImExporterContext_free(ctx);
/* deinit */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
AB_DOCUMENT_LIST2 *_getMatchingDocuments(AB_IMEXPORTER_CONTEXT *ctx, const char *wantedDocId)
{
AB_DOCUMENT_LIST2 *docList2;
AB_IMEXPORTER_ACCOUNTINFO *iea;
docList2=AB_Document_List2_new();
/* copy context, but only keep wanted accounts and transactions */
iea=AB_ImExporterContext_GetFirstAccountInfo(ctx);
while (iea) {
AB_DOCUMENT_LIST *docList;
docList=AB_ImExporterAccountInfo_GetEStatementList(iea);
if (docList) {
AB_DOCUMENT *doc;
doc=AB_Document_List_First(docList);
while (doc) {
if (wantedDocId) {
const char *docId;
docId=AB_Document_GetId(doc);
if (docId && *docId) {
if (GWEN_Text_ComparePattern(docId, wantedDocId, 0)!=-1)
AB_Document_List2_PushBack(docList2, doc);
}
}
else
AB_Document_List2_PushBack(docList2, doc);
doc=AB_Document_List_Next(doc);
}
}
iea=AB_ImExporterAccountInfo_List_Next(iea);
} /* while */
if (AB_Document_List2_GetSize(docList2)==0) {
AB_Document_List2_free(docList2);
return NULL;
}
return docList2;
}
int _exportDocuments(const AB_DOCUMENT_LIST2 *docList, const char *dest, uint32_t flags)
{
AB_DOCUMENT_LIST2_ITERATOR *it;
it=AB_Document_List2_First(docList);
if (it) {
AB_DOCUMENT *doc;
doc=AB_Document_List2Iterator_Data(it);
while (doc) {
const char *docId;
int rv;
docId=AB_Document_GetId(doc);
rv=_ensureDocData(doc);
if (rv<0) {
DBG_INFO(NULL, "Error ensuring data for document \"%s\"", docId?docId:"");
return rv;
}
rv=_writeDoc(doc, dest, flags);
if (rv<0) {
DBG_INFO(NULL, "here (%d)", rv);
return rv;
}
doc=AB_Document_List2Iterator_Next(it);
} /* while */
AB_Document_List2Iterator_free(it);
}
return 0;
}
int _writeDoc(const AB_DOCUMENT *doc, const char *dest, uint32_t flags)
{
const char *docId;
int rv;
docId=AB_Document_GetId(doc);
if (flags & GETDOC_FLAGS_MULTI) {
GWEN_BUFFER *pathBuffer;
/* dest is a folder */
if (!(docId && *docId)) {
DBG_ERROR(NULL, "No id in document, SNH!");
return GWEN_ERROR_BAD_DATA;
}
pathBuffer=GWEN_Buffer_new(0, 256, 0, 1);
GWEN_Buffer_AppendString(pathBuffer, dest);
GWEN_Buffer_AppendString(pathBuffer, GWEN_DIR_SEPARATOR_S);
GWEN_Buffer_AppendString(pathBuffer, docId);
GWEN_Buffer_AppendString(pathBuffer, ".pdf");
rv=GWEN_SyncIo_Helper_WriteFile(GWEN_Buffer_GetStart(pathBuffer),
AB_Document_GetDataPtr(doc),
AB_Document_GetDataLen(doc));
if (rv<0) {
DBG_INFO(NULL, "Error writing data for document \"%s\" to \"%s\"",
docId?docId:"",
GWEN_Buffer_GetStart(pathBuffer));
GWEN_Buffer_free(pathBuffer);
return rv;
}
return 0;
}
else {
rv=GWEN_SyncIo_Helper_WriteFile(dest,
AB_Document_GetDataPtr(doc),
AB_Document_GetDataLen(doc));
if (rv<0) {
DBG_INFO(NULL, "Error writing data for document \"%s\" to \"%s\"",
docId?docId:"",
dest);
return rv;
}
return 0;
}
}
int _ensureDocData(AB_DOCUMENT *doc)
{
const uint8_t *ptrData;
uint32_t lenData;
ptrData=AB_Document_GetDataPtr(doc);
lenData=AB_Document_GetDataLen(doc);
if (!(ptrData && lenData)) {
const char *filePath;
filePath=AB_Document_GetFilePath(doc);
if (filePath && *filePath) {
GWEN_BUFFER *dbuf;
int rv;
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
rv=GWEN_SyncIo_Helper_ReadFile(filePath, dbuf);
if (rv<0) {
DBG_ERROR(NULL, "Could not read source file \"%s\" (%d)", filePath, rv);
GWEN_Buffer_free(dbuf);
return rv;
}
AB_Document_SetData(doc,
(const uint8_t *) GWEN_Buffer_GetStart(dbuf),
GWEN_Buffer_GetUsedBytes(dbuf));
GWEN_Buffer_free(dbuf);
return 0;
}
}
return 0;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"docId", /* name */
0, /* minnum */
1, /* maxnum */
"d", /* short option */
"docid", /* long option */
"Specify the document id", /* short description */
"Specify the document id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"destination", /* name */
1, /* minnum */
1, /* maxnum */
"o", /* short option */
"destination", /* long option */
"Specify destination", /* short description */
"Specify destination (folder if -m flag given, specific filename otherwise)" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"multi", /* name */
0, /* minnum */
1, /* maxnum */
"m", /* short option */
"multi", /* long option */
"Export multiple documents", /* short description */
"Export multiple documents" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
GWEN_Buffer_AppendString(ubuf, "\n");
GWEN_Buffer_AppendString(ubuf, "\n");
GWEN_Buffer_AppendString(ubuf, "There are two ways to use this tool:\n");
GWEN_Buffer_AppendString(ubuf, "1) Export a specific document\n");
GWEN_Buffer_AppendString(ubuf, " aqbanking-cli getdoc -d DOCID -o OUTFILE.PDF\n");
GWEN_Buffer_AppendString(ubuf, "2) Export multiple documents:\n");
GWEN_Buffer_AppendString(ubuf, " aqbanking-cli getdoc -m -o OUTFOLDER\n");
GWEN_Buffer_AppendString(ubuf, "In this case for every document in the context file a new\n");
GWEN_Buffer_AppendString(ubuf, "is created in the OUTFOLDER folder, each file has the name of the document\n");
GWEN_Buffer_AppendString(ubuf, "with '.pdf' appended.\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/aqhbci-tool.c 0000664 0001750 0001750 00000021517 14043610745 020254 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "globals.h"
static int doControl(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int main(int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
AB_BANKING *ab;
GWEN_GUI *gui;
int nonInteractive=0;
int acceptValidCerts=0;
const char *pinFile;
const char *cfgDir;
const char *s;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"cfgdir", /* name */
0, /* minnum */
1, /* maxnum */
"D", /* short option */
"cfgdir", /* long option */
I18S("Specify the configuration folder"),
I18S("Specify the configuration folder")
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"nonInteractive", /* name */
0, /* minnum */
1, /* maxnum */
"n", /* short option */
"noninteractive", /* long option */
"Select non-interactive mode",/* short description */
"Select non-interactive mode.\n" /* long description */
"This automatically returns a confirmative answer to any non-critical\n"
"message."
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"acceptValidCerts", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"acceptvalidcerts", /* long option */
"Automatically accept all valid TLS certificate",
"Automatically accept all valid TLS certificate"
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"charset", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"charset", /* long option */
"Specify the output character set", /* short description */
"Specify the output character set" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"pinfile", /* name */
0, /* minnum */
1, /* maxnum */
"P", /* short option */
"pinfile", /* long option */
"Specify the PIN file", /* short description */
"Specify the PIN file" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"opticalTan", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"opticaltan", /* long option */
"Tool for optical TAN challenges", /* short description */
"Specify an external tool to display optical TAN challenges" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help",
I18S("Show this help screen. For help on commands, "
"run aqbanking-cli --help."),
I18S("Show this help screen. For help on commands, run aqbanking-cli --help.")
}
};
rv=GWEN_Init();
if (rv) {
fprintf(stderr, "ERROR: Unable to init Gwen.\n");
exit(2);
}
GWEN_Logger_Open(0, "aqhbci-tool", 0,
GWEN_LoggerType_Console,
GWEN_LoggerFacility_User);
GWEN_Logger_SetLevel(0, GWEN_LoggerLevel_Warning);
rv=GWEN_I18N_BindTextDomain_Dir(PACKAGE, LOCALEDIR);
if (rv) {
DBG_ERROR(0, "Could not bind textdomain (%d)", rv);
}
else {
rv=GWEN_I18N_BindTextDomain_Codeset(PACKAGE, "UTF-8");
if (rv) {
DBG_ERROR(0, "Could not set codeset (%d)", rv);
}
}
db=GWEN_DB_Group_new("arguments");
rv=GWEN_Args_Check(argc, argv, 1,
GWEN_ARGS_MODE_ALLOW_FREEPARAM |
GWEN_ARGS_MODE_STOP_AT_FREEPARAM,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments main\n");
GWEN_DB_Group_free(db);
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
GWEN_Buffer_AppendString(ubuf, I18N("This is version "));
GWEN_Buffer_AppendString(ubuf, AQBANKING_VERSION_STRING "\n");
GWEN_Buffer_AppendString(ubuf,
I18N("Usage: "));
GWEN_Buffer_AppendString(ubuf, argv[0]);
GWEN_Buffer_AppendString(ubuf,
I18N(" [GLOBAL OPTIONS] COMMAND "
"[LOCAL OPTIONS]\n"));
GWEN_Buffer_AppendString(ubuf,
I18N("\nGlobal Options:\n"));
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
GWEN_DB_Group_free(db);
return 1;
}
GWEN_Buffer_AppendString(ubuf, "\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
argc=0; /* only show help */
}
else if (rv>1) {
argc-=rv-1;
argv+=rv-1;
}
else {
/* no command */
argc=0;
}
nonInteractive=GWEN_DB_GetIntValue(db, "nonInteractive", 0, 0);
acceptValidCerts=GWEN_DB_GetIntValue(db, "acceptValidCerts", 0, 0);
cfgDir=GWEN_DB_GetCharValue(db, "cfgdir", 0, 0);
gui=GWEN_Gui_CGui_new();
s=GWEN_DB_GetCharValue(db, "charset", 0, NULL);
if (s && *s)
GWEN_Gui_SetCharSet(gui, s);
if (nonInteractive)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
if (acceptValidCerts)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
pinFile=GWEN_DB_GetCharValue(db, "pinFile", 0, NULL);
if (pinFile) {
GWEN_DB_NODE *dbPins;
dbPins=GWEN_DB_Group_new("pins");
if (GWEN_DB_ReadFile(dbPins, pinFile,
GWEN_DB_FLAGS_DEFAULT |
GWEN_PATH_FLAGS_CREATE_GROUP)) {
fprintf(stderr, "Error reading pinfile \"%s\"\n", pinFile);
GWEN_DB_Group_free(dbPins);
GWEN_DB_Group_free(db);
return 2;
}
GWEN_Gui_SetPasswordDb(gui, dbPins, 1);
}
GWEN_Gui_SetGui(gui);
ab=AB_Banking_new("aqbanking-cli", cfgDir, 0);
AB_Banking_RuntimeConfig_SetCharValue(ab, "fintsRegistrationKey", "32F8A67FE34B57AB8D7E4FE70");
AB_Banking_RuntimeConfig_SetCharValue(ab, "fintsApplicationVersionString", AQBANKING_FINTS_VERSION_STRING);
AB_Gui_Extend(gui, ab);
s = GWEN_DB_GetCharValue(db, "opticalTan", 0, NULL);
if ((NULL != s) && ('\0' != s [0]) && (0 != AB_Gui_SetCliCallbackForOpticalTan(gui, s))) {
fprintf(stderr, "Error registering \"%s\".\n", s);
GWEN_DB_Group_free(db);
return 2;
}
rv=doControl(ab, db, argc, argv);
AB_Gui_Unextend(gui);
AB_Banking_free(ab);
GWEN_Gui_SetGui(NULL);
GWEN_Gui_free(gui);
GWEN_DB_Group_free(db);
return rv;
}
int doControl(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
int rv;
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
rv=AB_Banking_ProviderControl(ab, "aqhbci", argc, argv);
if (rv!=0) {
DBG_ERROR(0, "Error calling control function (%d)", rv);
AB_Banking_Fini(ab);
return 4;
}
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/fillgaps.c 0000664 0001750 0001750 00000014442 14043610745 017652 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2019 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
/* local includes */
#include "globals.h"
/* Gwenhywfar includes */
#include
/* forward declarations */
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
static int _copyTransactionsAndFillGaps(AB_IMEXPORTER_CONTEXT *inCtx,
AB_ACCOUNT_SPEC_LIST *accountSpecList,
AB_IMEXPORTER_CONTEXT *outCtx);
int fillGaps(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const char *ctxFile;
int noWriteOnError=0;
AB_IMEXPORTER_CONTEXT *inCtx=NULL;
AB_IMEXPORTER_CONTEXT *outCtx=NULL;
AB_ACCOUNT_SPEC_LIST *accountSpecList=NULL;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read arguments */
noWriteOnError=GWEN_DB_GetIntValue(db, "noWriteOnError", 0, 0);
/* go */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* read in-context */
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
rv=readContext(ctxFile, &inCtx, 0);
if (rv<0) {
DBG_ERROR(0, "Error reading context (%d)", rv);
AB_Banking_Fini(ab);
return 4;
}
/* read account list */
rv=AB_Banking_GetAccountSpecList(ab, &accountSpecList);
if (rv<0) {
DBG_INFO(0, "here (%d)", rv);
AB_Banking_Fini(ab);
return 4;
}
/* fill gaps */
outCtx=AB_ImExporterContext_new();
rv=_copyTransactionsAndFillGaps(inCtx, accountSpecList, outCtx);
if (rv<0) {
if (noWriteOnError) {
DBG_ERROR(0, "Some transactions could not be assigned to configured accounts, nothing written.");
AB_ImExporterContext_free(outCtx);
AB_Banking_Fini(ab);
return 4;
}
DBG_ERROR(0, "Some transactions could not be assigned to configured accounts, those have status=error");
}
AB_ImExporterContext_free(inCtx);
rv=writeContext(ctxFile, outCtx);
if (rv<0) {
DBG_ERROR(0, "Error writing context (%d)", rv);
AB_ImExporterContext_free(outCtx);
AB_Banking_Fini(ab);
return 4;
}
AB_ImExporterContext_free(outCtx);
/* that's it */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"noWriteOnError", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"noWriteOnError", /* long option */
"Only write file if all transactions are okay", /* short description */
"Only write file if all transactions are okay" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
int _copyTransactionsAndFillGaps(AB_IMEXPORTER_CONTEXT *inCtx,
AB_ACCOUNT_SPEC_LIST *accountSpecList,
AB_IMEXPORTER_CONTEXT *outCtx)
{
AB_IMEXPORTER_ACCOUNTINFO *iea;
int allOk=1;
int transactionCount=0;
iea=AB_ImExporterContext_GetFirstAccountInfo(inCtx);
while (iea) {
const AB_TRANSACTION *t;
t=AB_ImExporterAccountInfo_GetFirstTransaction(iea, 0, 0);
while (t) {
AB_ACCOUNT_SPEC *as;
AB_TRANSACTION *tCopy=NULL;
tCopy=AB_Transaction_dup(t);
as=pickAccountSpecForTransaction(accountSpecList, tCopy);
if (as==NULL) {
DBG_ERROR(0, "Could not determine account for transaction %d", transactionCount);
allOk=0;
AB_Transaction_SetStatus(tCopy, AB_Transaction_StatusError);
}
/* fill missing fields in transaction from account spec */
AB_Banking_FillTransactionFromAccountSpec(tCopy, as);
/* add to new context */
AB_ImExporterContext_AddTransaction(outCtx, tCopy);
transactionCount++;
t=AB_Transaction_List_Next(t);
} /* while t */
iea=AB_ImExporterAccountInfo_List_Next(iea);
} /* while */
if (allOk==0)
return GWEN_ERROR_GENERIC;
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/sepainternaltransfer.c 0000664 0001750 0001750 00000036403 14625171605 022307 0000000 0000000 /***************************************************************************
begin : Tue Oct 12 2021
copyright : (C) 2021 by Stefan Bayer, Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
/* tool includes */
#include "globals.h"
/* aqbanking includes */
#include
/* gwenhywfar includes */
#include
/* forward declarations */
#define ACC_CHOOSER_INPUT_SIZE 10
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
/* static AB_REFERENCE_ACCOUNT *_chooseReferenceAccount(AB_REFERENCE_ACCOUNT_LIST *ral); */
static int _ensureRemoteAccountInfo(GWEN_DB_NODE *db, AB_ACCOUNT_SPEC *as);
int sepaInternalTransfer(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
AB_ACCOUNT_SPEC *as;
int rv;
int rvExec = 0;
const char *ctxFile;
AB_TRANSACTION *t;
int noCheck;
/* parse command line arguments */
db = _readCommandLine(dbArgs, argc, argv);
if (db == NULL) {
/* error in command line */
return 1;
}
/* read arguments */
noCheck = GWEN_DB_GetIntValue(db, "noCheck", 0, 0);
ctxFile = GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
/* init AqBanking */
rv = AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* get account to work with */
as = getSingleSelectedAccount(ab, db);
if (as == NULL) {
AB_Banking_Fini(ab);
return 2;
}
rv=_ensureRemoteAccountInfo(db, as);
if (rv!=0) {
DBG_ERROR(NULL, "Incomplete data for remote account, maybe you need to run 'aqhbci-tool4 gettargetacc'");
AB_Banking_Fini(ab);
return 2;
}
/* create transaction from arguments */
t = mkSepaTransfer(db, AB_Transaction_CommandSepaInternalTransfer);
if (t == NULL) {
DBG_ERROR(0, "Could not create SEPA internal transaction from arguments");
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return 2;
}
AB_Transaction_SetUniqueAccountId(t, AB_AccountSpec_GetUniqueId(as));
/* check for date; if given create a dated transfer */
/*if (AB_Transaction_GetDate(t))
AB_Transaction_SetCommand(t, AB_Transaction_CommandCreateDatedTransfer);*/
/* set local account info from selected AB_ACCOUNT_SPEC */
AB_Banking_FillTransactionFromAccountSpec(t, as);
/* some checks */
rv = checkTransactionIbans(t);
if (rv != 0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
/* probably check against transaction limits */
if (!noCheck) {
rv = checkTransactionLimits(t,
AB_AccountSpec_GetTransactionLimitsForCommand(as,
AB_Transaction_GetCommand(t)),
AQBANKING_TOOL_LIMITFLAGS_PURPOSE |
AQBANKING_TOOL_LIMITFLAGS_NAMES |
AQBANKING_TOOL_LIMITFLAGS_DATE |
AQBANKING_TOOL_LIMITFLAGS_SEPA);
if (rv != 0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
}
AB_AccountSpec_free(as);
/* execute job */
rv = execSingleBankingJob(ab, t, ctxFile);
if (rv) {
fprintf(stderr, "Error on executeQueue (%d)\n", rv);
rvExec = rv;
}
/* cleanup */
AB_Transaction_free(t);
/* that's it */
rv = AB_Banking_Fini(ab);
if (rv < 0) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
if (rvExec == 0)
rvExec = 5;
}
return rvExec;
}
int _ensureRemoteAccountInfo(GWEN_DB_NODE *db, AB_ACCOUNT_SPEC *as)
{
const char *remoteIban;
const char *remoteBic;
const char *remoteName;
const char *refAccountName;
remoteIban=GWEN_DB_GetCharValue(db, "remoteIban", 0, NULL);
remoteBic=GWEN_DB_GetCharValue(db, "remoteBic", 0, NULL);
remoteName=GWEN_DB_GetCharValue(db, "remoteName", 0, NULL);
refAccountName=GWEN_DB_GetCharValue(db, "remoteAccountName", 0, NULL);
if (!(remoteIban && *remoteIban && remoteBic && *remoteBic && remoteName && *remoteName)) {
AB_REFERENCE_ACCOUNT_LIST *ral;
AB_REFERENCE_ACCOUNT *ra=NULL;
ral=AB_AccountSpec_GetRefAccountList(as);
if (!(ral && AB_ReferenceAccount_List_GetCount(ral))) {
DBG_ERROR(NULL, "No reference accounts defined, maybe you need to run 'aqhbci-tool4 gettargetacc'");
return 2;
}
if ((remoteIban && *remoteIban) || (refAccountName && *refAccountName)) {
ra=AB_ReferenceAccount_List_FindFirst(ral, remoteIban, NULL, NULL, NULL, NULL, NULL, NULL, refAccountName);
if (ra) {
if (!(remoteIban && *remoteIban)) {
remoteIban=AB_ReferenceAccount_GetIban(ra);
if (!(remoteIban && *remoteIban)) {
DBG_ERROR(NULL, "No IBAN in reference account and none given.");
return 2;
}
GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "remoteIban", remoteIban);
}
if (!(remoteBic && *remoteBic)) {
remoteBic=AB_ReferenceAccount_GetBic(ra);
if (!(remoteBic && *remoteBic)) {
DBG_ERROR(NULL, "No BIC in reference account and none given.");
return 2;
}
GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "remoteBic", remoteBic);
}
if (!(remoteName && *remoteName)) {
remoteName=AB_ReferenceAccount_GetOwnerName(ra);
if (!(remoteName && *remoteName))
remoteName=AB_AccountSpec_GetOwnerName(as);
if (!(remoteName && *remoteName)) {
DBG_ERROR(NULL, "No remote name in reference account and none given.");
return 2;
}
GWEN_DB_SetCharValue(db, GWEN_DB_FLAGS_OVERWRITE_VARS, "remoteName", remoteName);
}
}
else {
DBG_ERROR(NULL, "No matching reference account found");
return 2;
}
}
}
return 0;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[] = { {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"backendName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"backend", /* long option */
"Specify the name of the backend for your account", /* short description */
"Specify the name of the backend for your account" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"country", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"country", /* long option */
"Specify the country for your account (e.g. \"de\")", /* short description */
"Specify the country for your account (e.g. \"de\")" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"overwrite the account number", /* short description */
"overwrite the account number" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteAccountName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"raccname", /* long option */
"specify the reference account name", /* short description */
"specify the reference account number" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"at", /* short option */
"accounttype", /* long option */
"Specify the account type", /* short description */
"Specify the account type" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteBIC", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"rbic", /* long option */
"Specify the remote SWIFT BIC",/* short description */
"Specify the remote SWIFT BIC" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteIBAN", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"riban", /* long option */
"Specify the remote IBAN", /* short description */
"Specify the remote IBAN" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"value", /* name */
1, /* minnum */
1, /* maxnum */
"v", /* short option */
"value", /* long option */
"Specify the transfer amount", /* short description */
"Specify the transfer amount" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"name", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"name", /* long option */
"Specify your name", /* short description */
"Specify your name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteName", /* name */
1, /* minnum */
2, /* maxnum */
0, /* short option */
"rname", /* long option */
"Specify the remote name", /* short description */
"Specify the remote name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"purpose", /* name */
1, /* minnum */
6, /* maxnum */
"p", /* short option */
"purpose", /* long option */
"Specify the purpose", /* short description */
"Specify the purpose" /* long description */
}, {
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"endToEndReference", /* name */
0, /* minnum */
1, /* maxnum */
"E", /* short option */
"endtoendid", /* long option */
"Specify the SEPA End-to-end-reference", /* short description */
"Specify the SEPA End-to-end-reference" /* long description */
}, {
0, /* flags */
GWEN_ArgsType_Int, /* type */
"noCheck", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"noCheck", /* long option */
"Dont check transaction limits", /* short description */
"Dont check transaction limits"
}, {
GWEN_ARGS_FLAGS_HELP
| GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db = GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv = GWEN_Args_Check(argc, argv, 1, 0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args, db);
if (rv == GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv == GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf = GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
#if 0
AB_REFERENCE_ACCOUNT *_chooseReferenceAccount(AB_REFERENCE_ACCOUNT_LIST *ral)
{
AB_REFERENCE_ACCOUNT *ra = NULL;
GWEN_BUFFER *ubuf;
int16_t numAccounts;
char inputBuffer[ACC_CHOOSER_INPUT_SIZE];
int chosenAccount;
uint32_t flags;
int16_t counter = 1;
int16_t scan_result = EOF;
const char *accName;
const char *iban;
ubuf = GWEN_Buffer_new(0, 8096, 0, 1);
numAccounts = AB_ReferenceAccount_List_GetCount(ral);
ra = AB_ReferenceAccount_List_First(ral);
GWEN_Buffer_AppendString(ubuf, "0) abort\n");
while (ra) {
iban = AB_ReferenceAccount_GetIban(ra);
accName = AB_ReferenceAccount_GetAccountName(ra);
snprintf(inputBuffer, ACC_CHOOSER_INPUT_SIZE, "%d) ", counter++);
GWEN_Buffer_AppendString(ubuf, inputBuffer);
if (accName) {
GWEN_Buffer_AppendString(ubuf, accName);
GWEN_Buffer_AppendString(ubuf, ": ");
}
GWEN_Buffer_AppendString(ubuf, iban);
GWEN_Buffer_AppendString(ubuf, "\n");
ra = AB_ReferenceAccount_List_Next(ra);
}
flags = 0;
ra = NULL;
while (scan_result == EOF) {
/*rv =*/ GWEN_Gui_InputBox(flags, I18N("Choose a reference account"),
GWEN_Buffer_GetStart(ubuf), inputBuffer, 0,
ACC_CHOOSER_INPUT_SIZE - 1, 0);
scan_result = sscanf(inputBuffer, "%d", &chosenAccount);
if (scan_result != EOF) {
if (chosenAccount == 0) {
break;
}
else if (chosenAccount > numAccounts) {
scan_result=EOF;
}
else {
ra = AB_ReferenceAccount_List_First(ral);
for (counter = 1 ; counter < chosenAccount ; counter++) {
ra = AB_ReferenceAccount_List_Next(ra);
}
break;
}
}
}
GWEN_Buffer_free(ubuf);
return ra;
}
#endif
aqbanking-6.7.7beta/src/tools/aqbanking-cli/control.c 0000664 0001750 0001750 00000002177 14043610745 017533 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
#include
#include
#include
#include
#include
int control(AB_BANKING *ab, const char *ctrlBackend, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
int rv;
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
rv=AB_Banking_ProviderControl(ab, ctrlBackend, argc, argv);
if (rv!=0) {
DBG_ERROR(0, "Error calling control function (%d)", rv);
AB_Banking_Fini(ab);
return 4;
}
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/listaccs.c 0000664 0001750 0001750 00000017442 14043610745 017661 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
int listAccs(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
AB_ACCOUNT_SPEC_LIST *al=NULL;
AB_ACCOUNT_SPEC *as;
int rv;
const char *tmplString;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"backendName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"backend", /* long option */
"Specify the name of the backend for your account", /* short description */
"Specify the name of the backend for your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"country", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"country", /* long option */
"Specify the country for your account (e.g. \"de\")", /* short description */
"Specify the country for your account (e.g. \"de\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"Specify the bank code", /* short description */
"Specify the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"Specify the account number", /* short description */
"Specify the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"t", /* short option */
"accounttype", /* long option */
"Specify the type of your account", /* short description */
"Specify the type of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"template", /* name */
0, /* minnum */
1, /* maxnum */
"T", /* short option */
"template", /* long option */
"Specify the template for the account list output", /* short description */
"Specify the template for the account list output" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return 1;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return 0;
}
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
al=getSelectedAccounts(ab, db);
if (al==NULL) {
DBG_INFO(0, "No matching accounts");
AB_Banking_Fini(ab);
return 2;
}
tmplString=GWEN_DB_GetCharValue(db, "template", 0,
"Account\t$(bankcode)\t$(accountnumber)\t$(bic)\t$(iban)\t$(uniqueId)\t$(typeAsString)");
as=AB_AccountSpec_List_First(al);
if (as) {
GWEN_BUFFER *dbuf;
fprintf(stdout, " \tBankcode\tAccountnumber\tBic\tIban\tUniqueId\tType\n");
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
while (as) {
GWEN_DB_NODE *dbAccountSpec;
dbAccountSpec=GWEN_DB_Group_new("accountSpec");
AB_AccountSpec_toDb(as, dbAccountSpec);
GWEN_DB_SetCharValue(dbAccountSpec, GWEN_DB_FLAGS_OVERWRITE_VARS, "typeAsString",
AB_AccountType_toChar(AB_AccountSpec_GetType(as)));
GWEN_DB_ReplaceVars(dbAccountSpec, tmplString, dbuf);
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(dbuf));
GWEN_Buffer_Reset(dbuf);
GWEN_DB_Group_free(dbAccountSpec);
as=AB_AccountSpec_List_Next(as);
} /* while (as) */
GWEN_Buffer_free(dbuf);
}
AB_AccountSpec_List_free(al);
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/accountcmds.c 0000664 0001750 0001750 00000021711 14546575650 020366 0000000 0000000 /***************************************************************************
begin : Wed Aug 10 2022
copyright : (C) 2022 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
#include
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
static void _dumpAccountSpecList(const AB_ACCOUNT_SPEC_LIST *al);
static void _dumpAccountSpec(const AB_ACCOUNT_SPEC *as);
static void _dumpLimitList(const AB_TRANSACTION_LIMITS_LIST *limitList);
int showAccountCommands(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
AB_ACCOUNT_SPEC_LIST *al=NULL;
int rv;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
al=getSelectedAccounts(ab, db);
if (al==NULL) {
DBG_ERROR(0, "No matching accounts");
AB_Banking_Fini(ab);
return 2;
}
_dumpAccountSpecList(al);
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"backendName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"backend", /* long option */
"Specify the name of the backend for your account", /* short description */
"Specify the name of the backend for your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"country", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"country", /* long option */
"Specify the country for your account (e.g. \"de\")", /* short description */
"Specify the country for your account (e.g. \"de\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"Specify the bank code", /* short description */
"Specify the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"Specify the account number", /* short description */
"Specify the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"t", /* short option */
"accounttype", /* long option */
"Specify the type of your account", /* short description */
"Specify the type of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
GWEN_Buffer_AppendString(ubuf, "\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
void _dumpAccountSpecList(const AB_ACCOUNT_SPEC_LIST *al)
{
AB_ACCOUNT_SPEC *as;
as=AB_AccountSpec_List_First(al);
if (as) {
GWEN_BUFFER *dbuf;
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
while (as) {
_dumpAccountSpec(as);
_dumpLimitList(AB_AccountSpec_GetTransactionLimitsList(as));
fprintf(stdout, "\n");
as=AB_AccountSpec_List_Next(as);
} /* while (as) */
GWEN_Buffer_free(dbuf);
}
}
void _dumpAccountSpec(const AB_ACCOUNT_SPEC *as)
{
const char *sIban;
const char *sBic;
const char *sAccountName;
const char *sAccountNumber;
const char *sBankCode;
const char *sOwnerName;
const char *sBackendName;
sIban=AB_AccountSpec_GetIban(as);
sAccountName=AB_AccountSpec_GetAccountName(as);
sAccountNumber=AB_AccountSpec_GetAccountNumber(as);
sBic=AB_AccountSpec_GetBic(as);
sBankCode=AB_AccountSpec_GetBankCode(as);
sOwnerName=AB_AccountSpec_GetOwnerName(as);
sBackendName=AB_AccountSpec_GetBackendName(as);
fprintf(stdout, "Account %lu: ", (unsigned long int) AB_AccountSpec_GetUniqueId(as));
if (sIban && *sIban)
fprintf(stdout,
"IBAN: %s, BIC: %s, Account Name: %s, Owner Name: %s (%s)\n",
sIban, sBic?sBic:"", sAccountName?sAccountName:"", sOwnerName?sOwnerName:"", sBackendName);
else
fprintf(stdout,
"Account Number: %s, Bank Code: %s, Account Name: %s, Owner Name: %s (%s)\n",
sAccountNumber?sAccountNumber:"",
sBankCode?sBankCode:"",
sAccountName?sAccountName:"",
sOwnerName?sOwnerName:"",
sBackendName);
}
void _dumpLimitList(const AB_TRANSACTION_LIMITS_LIST *limitList)
{
if (limitList) {
const AB_TRANSACTION_LIMITS *lim;
lim=AB_TransactionLimits_List_First(limitList);
if (lim) {
while (lim) {
fprintf(stdout, " %s\n", AB_Transaction_Command_toString(AB_TransactionLimits_GetCommand(lim)));
lim=AB_TransactionLimits_List_Next(lim);
}
return;
}
}
fprintf(stdout, " \n");
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/sepamultijobs.c 0000664 0001750 0001750 00000040475 14043610745 020737 0000000 0000000 /***************************************************************************
begin : Tue Mar 25 2014
copyright : (C) 2019 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
#include
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
static int _createJobsFromContext(AB_IMEXPORTER_CONTEXT *ctx,
const AB_ACCOUNT_SPEC_LIST *accountSpecList,
AB_ACCOUNT_SPEC *forcedAccount,
AB_TRANSACTION_COMMAND cmd,
AB_TRANSACTION_LIST2 *jobList);
int sepaMultiJobs(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv,
AQBANKING_TOOL_MULTISEPA_TYPE multisepa_type)
{
GWEN_DB_NODE *db;
int rv;
const char *ctxFile;
const char *inFile;
const char *importerName;
const char *profileName;
const char *profileFile;
int use_flash_debitnote;
AB_IMEXPORTER_CONTEXT *ctx=0;
AB_ACCOUNT_SPEC *forcedAccount=NULL;
AB_TRANSACTION_LIST2 *jobList;
AB_ACCOUNT_SPEC_LIST *accountSpecList=NULL;
AB_TRANSACTION_COMMAND cmd;
int dryRun=0;
int rvExec;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
importerName=GWEN_DB_GetCharValue(db, "importerName", 0, "csv");
profileName=GWEN_DB_GetCharValue(db, "profileName", 0,
(multisepa_type == AQBANKING_TOOL_SEPA_TRANSFERS)
? "default"
: "sepadebitnotes");
profileFile=GWEN_DB_GetCharValue(db, "profileFile", 0, NULL);
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
inFile=GWEN_DB_GetCharValue(db, "inFile", 0, 0);
use_flash_debitnote=GWEN_DB_GetIntValue(db, "useCOR1", 0, 0);
dryRun=GWEN_DB_GetIntValue(db, "dryRun", 0, 0);
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
rv=AB_Banking_GetAccountSpecList(ab, &accountSpecList);
if (rv<0) {
DBG_INFO(0, "here (%d)", rv);
AB_Banking_Fini(ab);
return 4;
}
/* find local account to set later if requested */
if (GWEN_DB_VariableExists(db, "uniqueAccountId") ||
GWEN_DB_VariableExists(db, "bankId") ||
GWEN_DB_VariableExists(db, "accountId") ||
GWEN_DB_VariableExists(db, "subAccountId") ||
GWEN_DB_VariableExists(db, "iban")) {
forcedAccount=pickAccountSpecForArgs(accountSpecList, db);
if (forcedAccount==NULL) {
DBG_ERROR(0, "Invalid account specification.");
AB_Banking_Fini(ab);
return 4;
}
}
/* import new context */
ctx=AB_ImExporterContext_new();
rv=AB_Banking_ImportFromFileLoadProfile(ab, importerName, ctx,
profileName, profileFile,
inFile);
if (rv<0) {
DBG_ERROR(0, "Error reading file: %d", rv);
AB_ImExporterContext_free(ctx);
AB_Banking_Fini(ab);
return 4;
}
/* create jobs from imported transactions */
cmd=(multisepa_type == AQBANKING_TOOL_SEPA_TRANSFERS)
// The command was sepatransfers, so we create JobSepaTransfer
? AB_Transaction_CommandSepaTransfer
// The command was sepadebitnotes, so we create some debit note
: (use_flash_debitnote
// Did we have --use-COR1? Use this extra job type
? AB_Transaction_CommandSepaFlashDebitNote
// No COR1, just standard CORE debit note
: AB_Transaction_CommandSepaDebitNote);
/* populate job list */
jobList=AB_Transaction_List2_new();
rv=_createJobsFromContext(ctx, accountSpecList, forcedAccount, cmd, jobList);
AB_ImExporterContext_free(ctx);
if (rv<0) {
DBG_INFO(0, "Error (%d)", rv);
writeJobsAsContextFile(jobList, ctxFile);
AB_Transaction_List2_freeAll(jobList);
AB_Banking_Fini(ab);
return 3;
}
/* execute jobs */
rvExec=0;
if (dryRun) {
DBG_NOTICE(0, "Dry-run requested, not sending jobs");
writeJobsAsContextFile(jobList, ctxFile);
}
else {
rv=execBankingJobs(ab, jobList, ctxFile);
if (rv) {
DBG_ERROR(0, "Error on executeQueue (%d)", rv);
rvExec=3;
}
}
AB_Transaction_List2_freeAll(jobList);
/* that's it */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
if (rvExec)
return rvExec;
else
return 5;
}
if (rvExec)
return rvExec;
else
return 0;
}
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"inFile", /* name */
0, /* minnum */
1, /* maxnum */
"f", /* short option */
"infile", /* long option */
"Specify the file to read the data from", /* short description */
"Specify the file to read the data from" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"importerName", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"importer", /* long option */
"Specify the importer to use", /* short description */
"Specify the importer to use" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"profileName", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"profile", /* long option */
"Specify the import profile to use", /* short description */
"Specify the import profile to use" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"profileFile", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"profile-file", /* long option */
"Specify the file to load the import profile from (WATCH OUT: Feature might be broken)",/* short description */
"Specify the file to load the import profile from" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"overwrite the bank code", /* short description */
"overwrite the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"overwrite the account number", /* short description */
"overwrite the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"t", /* short option */
"accounttype", /* long option */
"Specify the type of your account", /* short description */
"Specify the type of your account" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"useCOR1", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"use-COR1", /* long option */
"If given, use COR1 variant of debit notes (faster), otherwise CORE (slower)", /* short description */
"If given, use COR1 variant of debit notes (faster), otherwise CORE (slower)" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"dryRun", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"dryRun", /* long option */
"If given jobs will not be really executed, just written to the context file", /* short description */
"If given jobs will not be really executed, just written to the context file" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
int _createJobsFromContext(AB_IMEXPORTER_CONTEXT *ctx,
const AB_ACCOUNT_SPEC_LIST *accountSpecList,
AB_ACCOUNT_SPEC *forcedAccount,
AB_TRANSACTION_COMMAND cmd,
AB_TRANSACTION_LIST2 *jobList)
{
AB_IMEXPORTER_ACCOUNTINFO *iea;
int reallyExecute=1;
int transactionLine=0;
iea=AB_ImExporterContext_GetFirstAccountInfo(ctx);
while (iea) {
const AB_TRANSACTION *t;
t=AB_ImExporterAccountInfo_GetFirstTransaction(iea, 0, 0);
while (t) {
AB_ACCOUNT_SPEC *as;
AB_TRANSACTION *job=NULL;
const char *rIBAN;
const char *lIBAN;
const char *lBIC;
const AB_TRANSACTION_LIMITS *lim;
int rv;
job=AB_Transaction_dup(t);
if (forcedAccount)
as=forcedAccount;
else
as=pickAccountSpecForTransaction(accountSpecList, t);
if (as==NULL) {
DBG_ERROR(0, "Could not determine account for job in line %d", transactionLine);
reallyExecute=0;
AB_Transaction_SetStatus(job, AB_Transaction_StatusError);
}
/* fill missing fields in transaction from account spec */
AB_Banking_FillTransactionFromAccountSpec(job, as);
rIBAN=AB_Transaction_GetRemoteIban(job);
lIBAN=AB_Transaction_GetLocalIban(job);
lBIC=AB_Transaction_GetLocalBic(job);
/* check remote account */
if (!rIBAN || !(*rIBAN)) {
DBG_ERROR(0, "Missing remote IBAN, in line %d", transactionLine);
reallyExecute=0;
}
rv=AB_Banking_CheckIban(rIBAN);
if (rv != 0) {
DBG_ERROR(0, "Invalid remote IBAN (%s), in line %d", rIBAN, transactionLine);
reallyExecute=0;
AB_Transaction_SetStatus(job, AB_Transaction_StatusError);
}
/* check local account */
if (!lBIC || !(*lBIC)) {
DBG_WARN(0, "Missing local BIC, in line %d (ignoring, not needed anymore anyway)", transactionLine);
}
if (!lIBAN || !(*lIBAN)) {
DBG_ERROR(0, "Missing local IBAN, in line %d", transactionLine);
reallyExecute=0;
}
rv=AB_Banking_CheckIban(lIBAN);
if (rv != 0) {
DBG_ERROR(0, "Invalid local IBAN (%s), in line %d", lIBAN, transactionLine);
reallyExecute=0;
AB_Transaction_SetStatus(job, AB_Transaction_StatusError);
}
AB_Transaction_SetType(job,
(cmd==AB_Transaction_CommandSepaTransfer)
? AB_Transaction_TypeTransfer
: AB_Transaction_TypeDebitNote
);
lim=AB_AccountSpec_GetTransactionLimitsForCommand(as, cmd);
if (lim==NULL) {
DBG_ERROR(0, "Job %s not supported, in line %d.", AB_Transaction_Command_toString(cmd), transactionLine);
reallyExecute=0;
AB_Transaction_SetStatus(job, AB_Transaction_StatusError);
}
else {
rv=checkTransactionLimits(job, lim,
AQBANKING_TOOL_LIMITFLAGS_PURPOSE |
AQBANKING_TOOL_LIMITFLAGS_NAMES |
AQBANKING_TOOL_LIMITFLAGS_SEPA);
if (rv<0) {
DBG_ERROR(0, "Job %s violates limits, in line %d.", AB_Transaction_Command_toString(cmd), transactionLine);
reallyExecute=0;
AB_Transaction_SetStatus(job, AB_Transaction_StatusError);
}
}
AB_Transaction_SetCommand(job, cmd);
AB_Transaction_List2_PushBack(jobList, job);
transactionLine++;
t=AB_Transaction_List_Next(t);
} /* while t */
iea=AB_ImExporterAccountInfo_List_Next(iea);
} /* while */
if (reallyExecute==0)
return GWEN_ERROR_GENERIC;
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/listbal.c 0000664 0001750 0001750 00000027544 14043610745 017512 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
#include
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
int listBal(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const char *ctxFile;
AB_IMEXPORTER_CONTEXT *ctx=0;
AB_IMEXPORTER_ACCOUNTINFO *iea=0;
uint32_t aid;
const char *bankId;
const char *accountId;
const char *subAccountId;
const char *iban;
const char *tmplString;
const char *s;
AB_BALANCE_TYPE bt=AB_Balance_TypeBooked;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read command line arguments */
aid=(uint32_t)GWEN_DB_GetIntValue(db, "uniqueAccountId", 0, 0);
bankId=GWEN_DB_GetCharValue(db, "bankId", 0, 0);
accountId=GWEN_DB_GetCharValue(db, "accountId", 0, 0);
subAccountId=GWEN_DB_GetCharValue(db, "subAccountId", 0, 0);
iban=GWEN_DB_GetCharValue(db, "iban", 0, 0);
tmplString=GWEN_DB_GetCharValue(db, "template", 0,
"$(dateAsString)\t"
"$(valueAsString)\t"
"$(ibanOrAccountNumber)");
/* determine balance type */
s=GWEN_DB_GetCharValue(db, "balanceType", 0, "booked");
if (s && *s) {
AB_BALANCE_TYPE tempBalanceType;
tempBalanceType=AB_Balance_Type_fromString(s);
if (tempBalanceType==AB_Balance_TypeUnknown) {
DBG_ERROR(0, "Invalid balance type given (%s)", s);
return 1;
}
bt=tempBalanceType;
}
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* load ctx file */
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
rv=readContext(ctxFile, &ctx, 1);
if (rv<0) {
DBG_ERROR(0, "Error reading context (%d)", rv);
AB_ImExporterContext_free(ctx);
return 4;
}
/* copy context, but only keep wanted accounts and transactions */
iea=AB_ImExporterContext_GetFirstAccountInfo(ctx);
while (iea) {
if (AB_ImExporterAccountInfo_Matches(iea,
aid, /* unique account id */
"*",
bankId,
accountId,
subAccountId,
iban,
"*", /* currency */
AB_AccountType_Unknown)) {
AB_BALANCE *bal;
GWEN_DB_NODE *dbAccount;
const char *s;
dbAccount=GWEN_DB_Group_new("dbAccount");
s=AB_ImExporterAccountInfo_GetBankCode(iea);
if (s && *s)
GWEN_DB_SetCharValue(dbAccount, GWEN_DB_FLAGS_OVERWRITE_VARS, "bankCode", s);
s=AB_ImExporterAccountInfo_GetAccountNumber(iea);
if (s && *s)
GWEN_DB_SetCharValue(dbAccount, GWEN_DB_FLAGS_OVERWRITE_VARS, "accountNumber", s);
s=AB_ImExporterAccountInfo_GetBic(iea);
if (s && *s)
GWEN_DB_SetCharValue(dbAccount, GWEN_DB_FLAGS_OVERWRITE_VARS, "bic", s);
s=AB_ImExporterAccountInfo_GetIban(iea);
if (s && *s)
GWEN_DB_SetCharValue(dbAccount, GWEN_DB_FLAGS_OVERWRITE_VARS, "iban", s);
s=AB_ImExporterAccountInfo_GetIban(iea);
if (!(s && *s))
s=AB_ImExporterAccountInfo_GetAccountNumber(iea);
if (s && *s)
GWEN_DB_SetCharValue(dbAccount, GWEN_DB_FLAGS_OVERWRITE_VARS, "ibanOrAccountNumber", s);
bal=AB_Balance_List_GetLatestByType(AB_ImExporterAccountInfo_GetBalanceList(iea), bt);
if (bal) {
GWEN_DB_NODE *dbElement;
const AB_VALUE *v;
const GWEN_DATE *dt;
GWEN_BUFFER *dbuf;
dbElement=GWEN_DB_Group_dup(dbAccount);
AB_Balance_toDb(bal, dbElement);
/* translate value */
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
v=AB_Balance_GetValue(bal);
if (v) {
AB_Value_toHumanReadableString(v, dbuf, 2, 0);
GWEN_DB_SetCharValue(dbElement, GWEN_DB_FLAGS_OVERWRITE_VARS, "valueAsString", GWEN_Buffer_GetStart(dbuf));
GWEN_Buffer_Reset(dbuf);
}
/* translate date */
dt=AB_Balance_GetDate(bal);
if (dt) {
rv=GWEN_Date_toStringWithTemplate(dt, I18N("DD.MM.YYYY"), dbuf);
if (rv>=0) {
GWEN_DB_SetCharValue(dbElement, GWEN_DB_FLAGS_OVERWRITE_VARS, "dateAsString", GWEN_Buffer_GetStart(dbuf));
}
GWEN_Buffer_Reset(dbuf);
}
GWEN_DB_ReplaceVars(dbElement, tmplString, dbuf);
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(dbuf));
GWEN_Buffer_free(dbuf);
GWEN_DB_Group_free(dbElement);
} /* if bal */
GWEN_DB_Group_free(dbAccount);
} /* if account matches */
iea=AB_ImExporterAccountInfo_List_Next(iea);
} /* while */
AB_ImExporterContext_free(ctx);
/* deinit */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"Specify the bank code", /* short description */
"Specify the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"Specify the account number", /* short description */
"Specify the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"balanceType", /* name */
0, /* minnum */
1, /* maxnum */
"bt", /* short option */
"balanceType", /* long option */
"Specify the balance type", /* short description */
"Specify the balance type (e.g. noted, booked, temporary)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"template", /* name */
0, /* minnum */
1, /* maxnum */
"T", /* short option */
"template", /* long option */
"Specify the template for the balance list output", /* short description */
"Specify the template for the balance list output" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
GWEN_Buffer_AppendString(ubuf, "\n");
GWEN_Buffer_AppendString(ubuf, "The template string given to \"-T\" may contain variables to specify the output.\n");
GWEN_Buffer_AppendString(ubuf, "Default is: \"$(dateAsString)\\t$(valueAsString)\\t$(iban)");
GWEN_Buffer_AppendString(ubuf, "Possible variables are:\n");
GWEN_Buffer_AppendString(ubuf, " $(dateAsString) : Date of the balance in format ");
GWEN_Buffer_AppendString(ubuf, I18N("DD.MM.YYYY"));
GWEN_Buffer_AppendString(ubuf, " \n");
GWEN_Buffer_AppendString(ubuf, " $(valueAsString) : Amount of the balance\n");
GWEN_Buffer_AppendString(ubuf, " $(iban) : IBAN of the account this balance comes from\n");
GWEN_Buffer_AppendString(ubuf, " $(bic) : Account number of the account this balance comes from\n");
GWEN_Buffer_AppendString(ubuf, " $(bankcode) : Bank code (Bankleitzahl) of the account this balance comes from\n");
GWEN_Buffer_AppendString(ubuf, " $(accountnumber) : Account number of the account this balance comes from\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/listprofiles.c 0000664 0001750 0001750 00000007021 14043610745 020563 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
int listProfiles(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
GWEN_DB_NODE *dbProfiles;
int rv;
const char *importerName;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"importerName", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"importer", /* long option */
"Specify the importer to use", /* short description */
"Specify the importer to use" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return 1;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return 0;
}
importerName=GWEN_DB_GetCharValue(db, "importerName", 0, "csv");
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
dbProfiles=AB_Banking_GetImExporterProfiles(ab, importerName);
if (dbProfiles) {
GWEN_DB_NODE *dbT;
dbT=GWEN_DB_GetFirstGroup(dbProfiles);
while (dbT) {
const char *sName;
const char *sVersion;
const char *sShortDescr;
int isGlobal;
sName=GWEN_DB_GetCharValue(dbT, "name", 0, "(none)");
sVersion=GWEN_DB_GetCharValue(dbT, "version", 0, "(none)");
sShortDescr=GWEN_DB_GetCharValue(dbT, "shortDescr", 0, "");
isGlobal=GWEN_DB_GetIntValue(dbT, "isGlobal", 0, 0);
fprintf(stdout, "%s\t%s\t%s\t%s\n",
sName?sName:"(none)",
sVersion?sVersion:"(none)",
sShortDescr?sShortDescr:"",
isGlobal?"global":"local");
dbT=GWEN_DB_GetNextGroup(dbT);
}
GWEN_DB_Group_free(dbProfiles);
}
else {
fprintf(stderr, "No profiles for this im-/exporter");
}
/* that's is */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/updateconf.c 0000664 0001750 0001750 00000001146 14043610745 020176 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
int updateConf(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
/* nothing for now */
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/chkiban.c 0000664 0001750 0001750 00000006336 14043610745 017453 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
int chkIban(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
AB_BANKINFO_CHECKRESULT res;
const char *iban;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
1, /* minnum */
1, /* maxnum */
0, /* short option */
"iban", /* long option */
"Specify the IBAN to check", /* short description */
"Specify the IBAN to check" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return 1;
}
fprintf(stdout,
I18N("This command checks the given combination of account id\n"
"and bank code for validity.\n"
"\n"
"Return codes:\n"
" 1: missing/bad arguments\n"
" 2: error while initializing AqBanking\n"
" 3: given combination is definately invalid\n"
" 5: error while deinitializing AqBanking\n"
"\n"
"Arguments:\n"
"%s\n"),
GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return 0;
}
iban=GWEN_DB_GetCharValue(db, "iban", 0, 0);
assert(iban);
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
res=AB_Banking_CheckIban(iban);
if (res != 0) {
DBG_ERROR(0,
"IBAN is invalid");
return 3;
}
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/listdoc.c 0000664 0001750 0001750 00000024404 14546575650 017526 0000000 0000000 /***************************************************************************
begin : Fri Mar 20 2021
copyright : (C) 2021 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
#include
#include
#define LISTDOC_FLAGS_SHOW_ACCOUNT 0x0001
#define LISTDOC_FLAGS_SHOW_MIMETYPE 0x0002
#define LISTDOC_FLAGS_SHOW_PATH 0x0004
static void _printAccount(const AB_IMEXPORTER_ACCOUNTINFO *iea);
static void _printDoc(const AB_DOCUMENT *doc, uint32_t flags);
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
int listDoc(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const char *ctxFile;
AB_IMEXPORTER_CONTEXT *ctx=0;
AB_IMEXPORTER_ACCOUNTINFO *iea=0;
uint32_t aid;
const char *bankId;
const char *accountId;
const char *subAccountId;
const char *iban;
uint32_t flags=0;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read command line arguments */
aid=(uint32_t)GWEN_DB_GetIntValue(db, "uniqueAccountId", 0, 0);
bankId=GWEN_DB_GetCharValue(db, "bankId", 0, 0);
accountId=GWEN_DB_GetCharValue(db, "accountId", 0, 0);
subAccountId=GWEN_DB_GetCharValue(db, "subAccountId", 0, 0);
iban=GWEN_DB_GetCharValue(db, "iban", 0, 0);
flags|=(GWEN_DB_GetIntValue(db, "showAccount", 0, 0)>0)?LISTDOC_FLAGS_SHOW_ACCOUNT:0;
flags|=(GWEN_DB_GetIntValue(db, "showMimeType", 0, 0)>0)?LISTDOC_FLAGS_SHOW_MIMETYPE:0;
flags|=(GWEN_DB_GetIntValue(db, "showPath", 0, 0)>0)?LISTDOC_FLAGS_SHOW_PATH:0;
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* load ctx file */
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
rv=readContext(ctxFile, &ctx, 1);
if (rv<0) {
DBG_ERROR(0, "Error reading context (%d)", rv);
AB_ImExporterContext_free(ctx);
return 4;
}
/* copy context, but only keep wanted accounts and transactions */
iea=AB_ImExporterContext_GetFirstAccountInfo(ctx);
while (iea) {
if (AB_ImExporterAccountInfo_Matches(iea,
aid, /* unique account id */
"*",
bankId,
accountId,
subAccountId,
iban,
"*", /* currency */
AB_AccountType_Unknown)) {
AB_DOCUMENT_LIST *docList;
docList=AB_ImExporterAccountInfo_GetEStatementList(iea);
if (docList) {
AB_DOCUMENT *doc;
doc=AB_Document_List_First(docList);
if (doc && (flags & LISTDOC_FLAGS_SHOW_ACCOUNT))
_printAccount(iea);
while (doc) {
_printDoc(doc, flags);
doc=AB_Document_List_Next(doc);
}
}
} /* if account matches */
iea=AB_ImExporterAccountInfo_List_Next(iea);
} /* while */
AB_ImExporterContext_free(ctx);
/* deinit */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
void _printAccount(const AB_IMEXPORTER_ACCOUNTINFO *iea)
{
const char *sBank;
const char *sAccount;
sAccount=AB_ImExporterAccountInfo_GetIban(iea);
sBank=AB_ImExporterAccountInfo_GetIban(iea);
if (!(sAccount && *sAccount)) {
sAccount=AB_ImExporterAccountInfo_GetAccountNumber(iea);
sBank=AB_ImExporterAccountInfo_GetBankCode(iea);
}
fprintf(stdout, "Account %s/%s\n",
sBank?sBank:"",
sAccount?sAccount:"");
}
void _printDoc(const AB_DOCUMENT *doc, uint32_t flags)
{
const char *sId;
const char *sMimeType;
const char *sPath;
sId=AB_Document_GetId(doc);
sMimeType=AB_Document_GetMimeType(doc);
sPath=AB_Document_GetFilePath(doc);
fprintf(stdout, "%s", sId?sId:"");
if (flags & LISTDOC_FLAGS_SHOW_MIMETYPE)
fprintf(stdout, "\t%s", sMimeType?sMimeType:"");
if (flags & LISTDOC_FLAGS_SHOW_PATH)
fprintf(stdout, "\t%s", sPath?sPath:"");
fprintf(stdout, "\n");
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"Specify the bank code", /* short description */
"Specify the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"Specify the account number", /* short description */
"Specify the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"showAccount", /* name */
0, /* minnum */
1, /* maxnum */
"", /* short option */
"showAccount", /* long option */
"Show account", /* short description */
"Show account" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"showMimeType", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"showMimeType", /* long option */
"Show mimetype", /* short description */
"Show mimetype" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"showPath", /* name */
0, /* minnum */
1, /* maxnum */
"", /* short option */
"showPath", /* long option */
"Show path of the file containing document's data", /* short description */
"Show path of the file containing document's data" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
GWEN_Buffer_AppendString(ubuf, "\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/addsepadebitnote.c 0000664 0001750 0001750 00000036510 14043610745 021350 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
/* tool includes */
#include "globals.h"
/* aqbanking includes */
#include
/* gwenhywfar includes */
#include
/* forward declarations */
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
int addSepaDebitNote(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv, int use_flash_debitnote)
{
GWEN_DB_NODE *db;
AB_ACCOUNT_SPEC *as;
int rv;
const char *ctxFile;
AB_TRANSACTION *t;
int noCheck;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read arguments */
noCheck=GWEN_DB_GetIntValue(db, "noCheck", 0, 0);
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* get account to work with */
as=getSingleSelectedAccount(ab, db);
if (as==NULL) {
AB_Banking_Fini(ab);
return 2;
}
/* create transaction from arguments */
t=mkSepaDebitNote(db, use_flash_debitnote?AB_Transaction_CommandSepaFlashDebitNote:AB_Transaction_CommandSepaDebitNote);
if (t==NULL) {
DBG_ERROR(0, "Could not create SEPA transaction from arguments");
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return 2;
}
AB_Transaction_SetType(t, AB_Transaction_TypeDebitNote);
AB_Transaction_SetUniqueAccountId(t, AB_AccountSpec_GetUniqueId(as));
/* set local account info from selected AB_ACCOUNT_SPEC */
AB_Banking_FillTransactionFromAccountSpec(t, as);
/* some checks */
rv=checkTransactionIbans(t);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
/* probably check against transaction limits */
if (!noCheck) {
rv=checkTransactionLimits(t,
AB_AccountSpec_GetTransactionLimitsForCommand(as, AB_Transaction_GetCommand(t)),
AQBANKING_TOOL_LIMITFLAGS_PURPOSE |
AQBANKING_TOOL_LIMITFLAGS_NAMES |
AQBANKING_TOOL_LIMITFLAGS_SEQUENCE |
AQBANKING_TOOL_LIMITFLAGS_DATE |
AQBANKING_TOOL_LIMITFLAGS_SEPA);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
}
AB_AccountSpec_free(as);
/* add to context file */
rv=addTransactionToContextFile(t, ctxFile);
if (rv!=0) {
DBG_ERROR(0, "Error adding to context (%d)", rv);
AB_Transaction_free(t);
AB_Banking_Fini(ab);
return 4;
}
/* that's it */
rv=AB_Banking_Fini(ab);
if (rv<0) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"backendName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"backend", /* long option */
"Specify the name of the backend for your account", /* short description */
"Specify the name of the backend for your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"country", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"country", /* long option */
"Specify the country for your account (e.g. \"de\")", /* short description */
"Specify the country for your account (e.g. \"de\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"overwrite the bank code", /* short description */
"overwrite the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"overwrite the account number", /* short description */
"overwrite the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"at", /* short option */
"accounttype", /* long option */
"Specify the account type", /* short description */
"Specify the account type" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteBIC", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"rbic", /* long option */
"Specify the remote SWIFT BIC",/* short description */
"Specify the remote SWIFT BIC" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteIBAN", /* name */
1, /* minnum */
1, /* maxnum */
0, /* short option */
"riban", /* long option */
"Specify the remote IBAN", /* short description */
"Specify the remote IBAN" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"value", /* name */
1, /* minnum */
1, /* maxnum */
"v", /* short option */
"value", /* long option */
"Specify the transfer amount", /* short description */
"Specify the transfer amount" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"name", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"name", /* long option */
"Specify your name", /* short description */
"Specify your name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteName", /* name */
1, /* minnum */
2, /* maxnum */
0, /* short option */
"rname", /* long option */
"Specify the remote name", /* short description */
"Specify the remote name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"purpose", /* name */
1, /* minnum */
6, /* maxnum */
"p", /* short option */
"purpose", /* long option */
"Specify the purpose", /* short description */
"Specify the purpose" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"endToEndReference", /* name */
0, /* minnum */
1, /* maxnum */
"E", /* short option */
"endtoendid", /* long option */
"Specify the SEPA End-to-end-reference", /* short description */
"Specify the SEPA End-to-end-reference" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"executionDate", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"execdate", /* long option */
"Specify the execution date (YYYYMMDD)", /* short */
"Specify the execution date (YYYYMMDD)" /* long */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"creditorSchemeId", /* name */
1, /* minnum */
1, /* maxnum */
0, /* short option */
"creditorSchemeId", /* long option */
"Specify the creditor scheme id (\"Glaeubiger-ID\")", /* short description */
"Specify the creditor scheme id (\"Glaeubiger-ID\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"mandateId", /* name */
1, /* minnum */
1, /* maxnum */
0, /* short option */
"mandateId", /* long option */
"Specify the mandate id", /* short description */
"Specify the mandate id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"mandateDate", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"mandateDate", /* long option */
"Specify the date when the mandate was issued", /* short description */
"Specify the date when the mandate was issued" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"sequenceType", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"sequenceType", /* long option */
"Specify the sequence type (once, first, following)", /* short description */
"Specify the sequence type (once, first, following)" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"noCheck", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"noCheck", /* long option */
"Dont check transaction limits", /* short description */
"Dont check transaction limits"
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/import.c 0000664 0001750 0001750 00000015777 14043610745 017377 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
int import(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const char *ctxFile;
const char *inFile;
const char *importerName;
const char *profileName;
const char *profileFile;
const char *bankId;
const char *accountId;
AB_IMEXPORTER_CONTEXT *ctx=0;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"inFile", /* name */
0, /* minnum */
1, /* maxnum */
"f", /* short option */
"infile", /* long option */
"Specify the file to read the data from", /* short description */
"Specify the file to read the data from" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"importerName", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"importer", /* long option */
"Specify the importer to use", /* short description */
"Specify the importer to use" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"profileName", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"profile", /* long option */
"Specify the export profile to use", /* short description */
"Specify the export profile to use" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"profileFile", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"profile-file", /* long option */
"Specify the file to load the export profile from",/* short description */
"Specify the file to load the export profile from" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"overwrite the bank code", /* short description */
"overwrite the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"overwrite the account number", /* short description */
"overwrite the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return 1;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return 0;
}
bankId=GWEN_DB_GetCharValue(db, "bankId", 0, 0);
accountId=GWEN_DB_GetCharValue(db, "accountId", 0, 0);
importerName=GWEN_DB_GetCharValue(db, "importerName", 0, "csv");
profileName=GWEN_DB_GetCharValue(db, "profileName", 0, "default");
profileFile=GWEN_DB_GetCharValue(db, "profileFile", 0, NULL);
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
inFile=GWEN_DB_GetCharValue(db, "inFile", 0, 0);
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* import new context */
ctx=AB_ImExporterContext_new();
rv=AB_Banking_ImportFromFileLoadProfile(ab, importerName, ctx,
profileName, profileFile,
inFile);
if (rv<0) {
DBG_ERROR(0, "Error reading file: %d", rv);
AB_ImExporterContext_free(ctx);
return 4;
}
/* adjust local account id if requested */
if (bankId || accountId) {
AB_IMEXPORTER_ACCOUNTINFO *iea;
iea=AB_ImExporterContext_GetFirstAccountInfo(ctx);
while (iea) {
if (bankId)
AB_ImExporterAccountInfo_SetBankCode(iea, bankId);
if (accountId)
AB_ImExporterAccountInfo_SetAccountNumber(iea, accountId);
iea=AB_ImExporterAccountInfo_List_Next(iea);
} /* while */
}
/* write context */
rv=writeContext(ctxFile, ctx);
if (rv<0) {
AB_Banking_Fini(ab);
return 4;
}
AB_ImExporterContext_free(ctx);
/* that's is */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/aqpaypal-tool.c 0000664 0001750 0001750 00000017434 14043610745 020640 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "globals.h"
static int doControl(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int main(int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
AB_BANKING *ab;
GWEN_GUI *gui;
int nonInteractive=0;
int acceptValidCerts=0;
const char *pinFile;
const char *cfgDir;
const char *s;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"cfgdir", /* name */
0, /* minnum */
1, /* maxnum */
"D", /* short option */
"cfgdir", /* long option */
I18S("Specify the configuration folder"),
I18S("Specify the configuration folder")
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"nonInteractive", /* name */
0, /* minnum */
1, /* maxnum */
"n", /* short option */
"noninteractive", /* long option */
"Select non-interactive mode",/* short description */
"Select non-interactive mode.\n" /* long description */
"This automatically returns a confirmative answer to any non-critical\n"
"message."
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"acceptValidCerts", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"acceptvalidcerts", /* long option */
"Automatically accept all valid TLS certificate",
"Automatically accept all valid TLS certificate"
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"charset", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"charset", /* long option */
"Specify the output character set", /* short description */
"Specify the output character set" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"pinfile", /* name */
0, /* minnum */
1, /* maxnum */
"P", /* short option */
"pinfile", /* long option */
"Specify the PIN file", /* short description */
"Specify the PIN file" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help",
I18S("Show this help screen. For help on commands, "
"run aqbanking-cli --help."),
I18S("Show this help screen. For help on commands, run aqbanking-cli --help.")
}
};
rv=GWEN_Init();
if (rv) {
fprintf(stderr, "ERROR: Unable to init Gwen.\n");
exit(2);
}
GWEN_Logger_Open(0, "aqpaypal-tool", 0,
GWEN_LoggerType_Console,
GWEN_LoggerFacility_User);
GWEN_Logger_SetLevel(0, GWEN_LoggerLevel_Warning);
rv=GWEN_I18N_BindTextDomain_Dir(PACKAGE, LOCALEDIR);
if (rv) {
DBG_ERROR(0, "Could not bind textdomain (%d)", rv);
}
else {
rv=GWEN_I18N_BindTextDomain_Codeset(PACKAGE, "UTF-8");
if (rv) {
DBG_ERROR(0, "Could not set codeset (%d)", rv);
}
}
db=GWEN_DB_Group_new("arguments");
rv=GWEN_Args_Check(argc, argv, 1,
GWEN_ARGS_MODE_ALLOW_FREEPARAM |
GWEN_ARGS_MODE_STOP_AT_FREEPARAM,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments main\n");
GWEN_DB_Group_free(db);
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
GWEN_Buffer_AppendString(ubuf, I18N("This is version "));
GWEN_Buffer_AppendString(ubuf, AQBANKING_VERSION_STRING "\n");
GWEN_Buffer_AppendString(ubuf,
I18N("Usage: "));
GWEN_Buffer_AppendString(ubuf, argv[0]);
GWEN_Buffer_AppendString(ubuf,
I18N(" [GLOBAL OPTIONS] COMMAND "
"[LOCAL OPTIONS]\n"));
GWEN_Buffer_AppendString(ubuf,
I18N("\nGlobal Options:\n"));
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
GWEN_DB_Group_free(db);
return 1;
}
GWEN_Buffer_AppendString(ubuf, "\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
argc=0; /* only show help */
}
if (rv>1) {
argc-=rv-1;
argv+=rv-1;
}
else {
/* no command */
argc=0;
}
nonInteractive=GWEN_DB_GetIntValue(db, "nonInteractive", 0, 0);
acceptValidCerts=GWEN_DB_GetIntValue(db, "acceptValidCerts", 0, 0);
cfgDir=GWEN_DB_GetCharValue(db, "cfgdir", 0, 0);
gui=GWEN_Gui_CGui_new();
s=GWEN_DB_GetCharValue(db, "charset", 0, NULL);
if (s && *s)
GWEN_Gui_SetCharSet(gui, s);
if (nonInteractive)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
if (acceptValidCerts)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
pinFile=GWEN_DB_GetCharValue(db, "pinFile", 0, NULL);
if (pinFile) {
GWEN_DB_NODE *dbPins;
dbPins=GWEN_DB_Group_new("pins");
if (GWEN_DB_ReadFile(dbPins, pinFile,
GWEN_DB_FLAGS_DEFAULT |
GWEN_PATH_FLAGS_CREATE_GROUP)) {
fprintf(stderr, "Error reading pinfile \"%s\"\n", pinFile);
GWEN_DB_Group_free(dbPins);
GWEN_DB_Group_free(db);
return 2;
}
GWEN_Gui_SetPasswordDb(gui, dbPins, 1);
}
GWEN_Gui_SetGui(gui);
ab=AB_Banking_new("aqbanking-cli", cfgDir, 0);
AB_Gui_Extend(gui, ab);
rv=doControl(ab, db, argc, argv);
GWEN_DB_Group_free(db);
return rv;
}
int doControl(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
int rv;
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
rv=AB_Banking_ProviderControl(ab, "aqpaypal", argc, argv);
if (rv!=0) {
DBG_ERROR(0, "Error calling control function (%d)", rv);
AB_Banking_Fini(ab);
return 4;
}
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/listtrans.c 0000664 0001750 0001750 00000037374 14546575650 020122 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
int listTrans(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const char *ctxFile;
AB_IMEXPORTER_CONTEXT *ctx=0;
AB_IMEXPORTER_ACCOUNTINFO *iea=0;
uint32_t aid;
const char *bankId;
const char *accountId;
const char *subAccountId;
const char *iban;
int transactionType=0;
int transactionCommand=0;
const char *tmplString;
const char *s;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read command line arguments */
aid=(uint32_t)GWEN_DB_GetIntValue(db, "uniqueAccountId", 0, 0);
bankId=GWEN_DB_GetCharValue(db, "bankId", 0, 0);
accountId=GWEN_DB_GetCharValue(db, "accountId", 0, 0);
subAccountId=GWEN_DB_GetCharValue(db, "subAccountId", 0, 0);
iban=GWEN_DB_GetCharValue(db, "iban", 0, 0);
tmplString=GWEN_DB_GetCharValue(db, "template", 0,
"$(dateOrValutaDateAsString)\t"
"$(valueAsString)\t"
"$(localBankcode)\t"
"$(localAccountNumber)\t"
"$(localIban)\t"
"$(remoteName)\t"
"$(remoteIban)\t"
"$(purposeInOneLine)");
s=GWEN_DB_GetCharValue(db, "transactionType", 0, NULL);
if (s && *s) {
transactionType=AB_Transaction_Type_fromString(s);
if (transactionType==AB_Transaction_TypeUnknown) {
fprintf(stderr, "ERROR: Invalid transaction type \"%s\"\n", s);
return 1;
}
}
s=GWEN_DB_GetCharValue(db, "transactionCommand", 0, NULL);
if (s && *s) {
transactionCommand=AB_Transaction_Command_fromString(s);
if (transactionCommand==AB_Transaction_CommandUnknown) {
fprintf(stderr, "ERROR: Invalid transaction command \"%s\"\n", s);
return 1;
}
}
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* load ctx file */
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
rv=readContext(ctxFile, &ctx, 1);
if (rv<0) {
DBG_ERROR(0, "Error reading context (%d)", rv);
AB_ImExporterContext_free(ctx);
return 4;
}
/* copy context, but only keep wanted accounts and transactions */
iea=AB_ImExporterContext_GetFirstAccountInfo(ctx);
while (iea) {
if (AB_ImExporterAccountInfo_Matches(iea,
aid, /* unique account id */
"*",
bankId,
accountId,
subAccountId,
iban,
"*", /* currency */
AB_AccountType_Unknown)) {
AB_TRANSACTION_LIST *tl;
tl=AB_ImExporterAccountInfo_GetTransactionList(iea);
if (tl) {
const AB_TRANSACTION *t;
GWEN_BUFFER *dbuf;
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
t=AB_Transaction_List_FindFirstByType(tl, transactionType, transactionCommand);
while (t) {
rv=addTransactionToBufferByTemplate(t, tmplString, dbuf);
if (rv<0) {
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(dbuf));
GWEN_Buffer_Reset(dbuf);
t=AB_Transaction_List_FindNextByType(t, transactionType, transactionCommand);
}
GWEN_Buffer_free(dbuf);
}
}
iea=AB_ImExporterAccountInfo_List_Next(iea);
} /* while */
AB_ImExporterContext_free(ctx);
/* deinit */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"Specify the bank code", /* short description */
"Specify the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"Specify the account number", /* short description */
"Specify the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"transactionType", /* name */
0, /* minnum */
1, /* maxnum */
"tt", /* short option */
"transactiontype", /* long option */
"Specify the transaction type to filter", /* short description */
"Specify the transaction type to filter" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"transactionCommand", /* name */
0, /* minnum */
1, /* maxnum */
"tc", /* short option */
"transactioncommand", /* long option */
"Specify the transaction command to filter", /* short description */
"Specify the transaction command to filter" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"template", /* name */
0, /* minnum */
1, /* maxnum */
"T", /* short option */
"template", /* long option */
"Specify the template for the transaction list output", /* short description */
"Specify the template for the transaction list output" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
GWEN_Buffer_AppendString(ubuf, "\n");
GWEN_Buffer_AppendString(ubuf, "The template string given to \"-T\" may contain variables to specify the output.\n");
GWEN_Buffer_AppendString(ubuf, "Default is (all in one line): \n");
GWEN_Buffer_AppendString(ubuf, " $(dateOrValutaDateAsString)\\t$(valueAsString)\\t$(localBankcode)\\t\n");
GWEN_Buffer_AppendString(ubuf,
" $(localAccountNumber)\\t$(localIban)\\t$(remoteName)\\t$(remoteIban)\\t$(purposeInOneLine)\n");
GWEN_Buffer_AppendString(ubuf, "\n");
GWEN_Buffer_AppendString(ubuf, "Often used variables are:\n");
GWEN_Buffer_AppendString(ubuf, " $(status) : Transaction status\n");
GWEN_Buffer_AppendString(ubuf, " $(idForApplication) : Transaction id assigned by the application\n");
GWEN_Buffer_AppendString(ubuf, " $(fiId) : Transaction id assigned by the bank\n");
GWEN_Buffer_AppendString(ubuf, " $(localIban) : Local IBAN\n");
GWEN_Buffer_AppendString(ubuf, " $(localBic) : Local BIC\n");
GWEN_Buffer_AppendString(ubuf, " $(localBankcode) : Local bank code (Bankleitzahl)\n");
GWEN_Buffer_AppendString(ubuf, " $(localAccountnumber) : Local account number\n");
GWEN_Buffer_AppendString(ubuf, " $(remoteIban) : Remote IBAN\n");
GWEN_Buffer_AppendString(ubuf, " $(remoteBic) : Remote account number\n");
GWEN_Buffer_AppendString(ubuf, " $(remoteBankcode) : Remote bank code (Bankleitzahl)\n");
GWEN_Buffer_AppendString(ubuf, " $(remoteAccountnumber) : Remote account number\n");
GWEN_Buffer_AppendString(ubuf, " $(dateAsString) : Date of the transaction in format ");
GWEN_Buffer_AppendString(ubuf, I18N("DD.MM.YYYY"));
GWEN_Buffer_AppendString(ubuf, " \n");
GWEN_Buffer_AppendString(ubuf, " $(valutaDateAsString) : Valuta Date of the transaction in format ");
GWEN_Buffer_AppendString(ubuf, I18N("DD.MM.YYYY"));
GWEN_Buffer_AppendString(ubuf, " \n");
GWEN_Buffer_AppendString(ubuf,
" $(dateOrValutaDateAsString) : Date (or if missing: valuta date) of the transaction in format ");
GWEN_Buffer_AppendString(ubuf, I18N("DD.MM.YYYY"));
GWEN_Buffer_AppendString(ubuf, " \n");
GWEN_Buffer_AppendString(ubuf, " $(valueAsString) : Amount of the transaction\n");
GWEN_Buffer_AppendString(ubuf, " $(purpose) : Memo/purpose (\"Verwendungszweck\")\n");
GWEN_Buffer_AppendString(ubuf, " $(purposeLine[n]) : Memo/purpose line n (\"Verwendungszweckzeile\")\n");
GWEN_Buffer_AppendString(ubuf, " $(purposeInOneLine) : Full purpose in one line (\"Verwendungszweckzeile\")\n");
GWEN_Buffer_AppendString(ubuf, " $(customerReference) : Customer reference\n");
GWEN_Buffer_AppendString(ubuf, " $(bankReference) : Bank reference\n");
GWEN_Buffer_AppendString(ubuf, " $(endToEndReference) : SEPA end to end reference\n");
GWEN_Buffer_AppendString(ubuf,
" $(ultimateCreditor) : Ultimate creditor e.g. when payment handled by a service provider\n");
GWEN_Buffer_AppendString(ubuf,
" $(ultimateDebtor) : Ultimate debitor e.g. when payment handled by a service provider\n");
GWEN_Buffer_AppendString(ubuf, "\n");
GWEN_Buffer_AppendString(ubuf, "Variables used with debit notes:\n");
GWEN_Buffer_AppendString(ubuf, " $(creditorSchemeId) : Creditor Schema Id\n");
GWEN_Buffer_AppendString(ubuf, " $(originatorId) : Originator Id\n");
GWEN_Buffer_AppendString(ubuf, " $(mandateId) : Mandate Id\n");
GWEN_Buffer_AppendString(ubuf, " $(sequence) : (once, first, following, final)\n");
GWEN_Buffer_AppendString(ubuf, "\n");
GWEN_Buffer_AppendString(ubuf, "Variables seldomly used:\n");
GWEN_Buffer_AppendString(ubuf, " $(type) : Transaction type\n");
GWEN_Buffer_AppendString(ubuf, " $(subType) : Transaction subtype\n");
GWEN_Buffer_AppendString(ubuf, " $(command) : Command (for banking jobs, normally \"none\"\n");
GWEN_Buffer_AppendString(ubuf,
" $(uniqueAccountId) : Unique id of the account to which this Transaction belongs\n");
GWEN_Buffer_AppendString(ubuf, " $(uniqueId) : Unique id of the transaction (mostly unused)\n");
GWEN_Buffer_AppendString(ubuf,
" $(refUniqueId) : Unique id of another transaction this one refers to (mostly unused)\n");
GWEN_Buffer_AppendString(ubuf, " $(transactionText) : Transaction text (e.g. \"Gehalt\")\n");
GWEN_Buffer_AppendString(ubuf, " $(transactionKey) : Some other value assigned by the bank\n");
GWEN_Buffer_AppendString(ubuf, "\n");
GWEN_Buffer_AppendString(ubuf, "\n");
GWEN_Buffer_AppendString(ubuf, "The following transaction types can be used with \"-tt\":\n");
GWEN_Buffer_AppendString(ubuf, " statement : standard bank statements\n");
GWEN_Buffer_AppendString(ubuf,
" notedStatement : statements not yet booked but planned to be booked by the bank\n");
GWEN_Buffer_AppendString(ubuf, " transfer : transfer (pay to someone else)\n");
GWEN_Buffer_AppendString(ubuf, " debitNote : debit note (request someone to pay to you)\n");
GWEN_Buffer_AppendString(ubuf, " standingOrder : standing order (periodical payment to someone else)\n");
GWEN_Buffer_AppendString(ubuf, " internalTransfer : transfer between two of your accounts at one bank\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/addtransaction.c 0000664 0001750 0001750 00000032236 14043610745 021050 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
/* tool includes */
#include "globals.h"
/* aqbanking includes */
#include
/* gwenhywfar includes */
#include
/* forward declarations */
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
int addTransaction(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
AB_ACCOUNT_SPEC *as;
int rv;
const char *ctxFile;
AB_TRANSACTION *t;
int noCheck;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read arguments */
noCheck=GWEN_DB_GetIntValue(db, "noCheck", 0, 0);
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* get account to work with */
as=getSingleSelectedAccount(ab, db);
if (as==NULL) {
AB_Banking_Fini(ab);
return 2;
}
/* create transaction from arguments */
t=mkSepaTransfer(db, AB_Transaction_CommandSepaTransfer);
if (t==NULL) {
DBG_ERROR(0, "Could not create SEPA transaction from arguments");
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return 2;
}
AB_Transaction_SetType(t, AB_Transaction_TypeTransfer);
AB_Transaction_SetUniqueAccountId(t, AB_AccountSpec_GetUniqueId(as));
/* set local account info from selected AB_ACCOUNT_SPEC */
AB_Banking_FillTransactionFromAccountSpec(t, as);
/* some checks */
rv=checkTransactionIbans(t);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
/* probably check against transaction limits */
if (!noCheck) {
rv=checkTransactionLimits(t,
AB_AccountSpec_GetTransactionLimitsForCommand(as, AB_Transaction_GetCommand(t)),
AQBANKING_TOOL_LIMITFLAGS_PURPOSE |
AQBANKING_TOOL_LIMITFLAGS_NAMES |
AQBANKING_TOOL_LIMITFLAGS_DATE |
AQBANKING_TOOL_LIMITFLAGS_SEPA);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
}
AB_AccountSpec_free(as);
/* add to context file */
rv=addTransactionToContextFile(t, ctxFile);
if (rv!=0) {
DBG_ERROR(0, "Error adding to context (%d)", rv);
AB_Transaction_free(t);
AB_Banking_Fini(ab);
return 4;
}
AB_Transaction_free(t);
/* that's it */
rv=AB_Banking_Fini(ab);
if (rv<0) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"backendName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"backend", /* long option */
"Specify the name of the backend for your account", /* short description */
"Specify the name of the backend for your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"country", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"country", /* long option */
"Specify the country for your account (e.g. \"de\")", /* short description */
"Specify the country for your account (e.g. \"de\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"overwrite the bank code", /* short description */
"overwrite the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"overwrite the account number", /* short description */
"overwrite the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"at", /* short option */
"accounttype", /* long option */
"Specify the account type", /* short description */
"Specify the account type" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteBIC", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"rbic", /* long option */
"Specify the remote SWIFT BIC",/* short description */
"Specify the remote SWIFT BIC" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteIBAN", /* name */
1, /* minnum */
1, /* maxnum */
0, /* short option */
"riban", /* long option */
"Specify the remote IBAN", /* short description */
"Specify the remote IBAN" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"value", /* name */
1, /* minnum */
1, /* maxnum */
"v", /* short option */
"value", /* long option */
"Specify the transfer amount", /* short description */
"Specify the transfer amount" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"name", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"name", /* long option */
"Specify your name", /* short description */
"Specify your name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteName", /* name */
1, /* minnum */
2, /* maxnum */
0, /* short option */
"rname", /* long option */
"Specify the remote name", /* short description */
"Specify the remote name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"purpose", /* name */
1, /* minnum */
6, /* maxnum */
"p", /* short option */
"purpose", /* long option */
"Specify the purpose", /* short description */
"Specify the purpose" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"endToEndReference", /* name */
0, /* minnum */
1, /* maxnum */
"E", /* short option */
"endtoendid", /* long option */
"Specify the SEPA End-to-end-reference", /* short description */
"Specify the SEPA End-to-end-reference" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"executionDate", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"execdate", /* long option */
"Specify the execution date (YYYYMMDD)", /* short */
"Specify the execution date (YYYYMMDD)" /* long */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"noCheck", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"noCheck", /* long option */
"Dont check transaction limits", /* short description */
"Dont check transaction limits"
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/Makefile.am 0000664 0001750 0001750 00000004170 14377702650 017745 0000000 0000000 #EXTRA_DIST=
AM_CPPFLAGS = -I$(top_srcdir)/src/libs -I$(top_builddir)/src/libs $(gwenhywfar_includes) -I$(srcdir)/..
AM_CFLAGS=@visibility_cflags@
bin_PROGRAMS=\
aqbanking-cli\
aqhbci-tool4 \
aqpaypal-tool \
aqebics-tool \
aqofxconnect-tool
aqbanking_cli_LDADD= \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs) -lstdc++
aqbanking_cli_SOURCES= \
main.c \
addsepadebitnote.c \
addtransaction.c \
chkiban.c \
fillgaps.c \
import.c \
export.c \
listaccs.c \
listbal.c \
listprofiles.c \
listtrans.c \
listdoc.c \
getdoc.c \
request.c \
util.c \
versions.c \
sepatransfer.c \
sepainternaltransfer.c \
sepadebitnote.c \
sepamultijobs.c \
separecurtransfer.c \
updateconf.c \
control.c \
accountcmds.c
aqbanking_cli_LDFLAGS=
aqhbci_tool4_LDFLAGS=
aqpaypal_tool_LDFLAGS=
aqebics_tool_LDFLAGS=
aqofxconnect_tool_LDFLAGS=
#-Wl,-static
DEFS += -DLOCALEDIR=\"$(localedir)\" -DAQBANKING_CLI_VERSION_STRING=\"@AQBANKING_CLI_VERSION_STRING@\"
noinst_HEADERS=globals.h
#EXTRA_DIST=
aqhbci_tool4_SOURCES=aqhbci-tool.c
aqhbci_tool4_LDADD= \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs)
aqpaypal_tool_SOURCES=aqpaypal-tool.c
aqpaypal_tool_LDADD= \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs)
aqebics_tool_SOURCES=aqebics-tool.c
aqebics_tool_LDADD= \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs)
aqofxconnect_tool_SOURCES=aqofxconnect-tool.c
aqofxconnect_tool_LDADD= \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs)
if IS_WINDOWS
aqbanking_cli_LDFLAGS+=-mconsole
aqhbci_tool4_LDFLAGS+=-mconsole
aqpaypal_tool_LDFLAGS+=-mconsole
aqebics_tool_LDFLAGS+=-mconsole
aqofxconnect_tool_LDFLAGS+=-mconsole
endif
sources:
for f in $(aqbanking_cli_SOURCES) $(aqhbci_tool4_SOURCES) $(aqpaypal_tool_SOURCES) $(aqebics_tool_SOURCES); $(aqofxconnect_tool_SOURCES); do \
echo $(subdir)/$$f >>$(top_srcdir)/i18nsources; \
done
built_sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d built_sources; \
done ;
typefiles:
typedefs:
cppcheck:
for f in $(aqbanking_cli_SOURCES); do \
cppcheck --force $$f ; \
done
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
aqbanking-6.7.7beta/src/tools/aqbanking-cli/export.c 0000664 0001750 0001750 00000026371 14043610745 017376 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
#include
#include
#include
#include
#include
#include
int exportCtx(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const char *ctxFile;
const char *outFile;
const char *exporterName;
const char *profileName;
const char *profileFile;
AB_IMEXPORTER_CONTEXT *ctx=0;
AB_IMEXPORTER_CONTEXT *nctx=0;
AB_IMEXPORTER_ACCOUNTINFO *iea=0;
uint32_t aid;
const char *bankId;
const char *accountId;
const char *subAccountId;
const char *iban;
int transactionType=0;
int transactionCommand=0;
const char *s;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"Specify the bank code", /* short description */
"Specify the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"Specify the account number", /* short description */
"Specify the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"transactionType", /* name */
0, /* minnum */
1, /* maxnum */
"tt", /* short option */
"transactiontype", /* long option */
"Specify the transaction type to filter", /* short description */
"Specify the transaction type to filter" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"transactionCommand", /* name */
0, /* minnum */
1, /* maxnum */
"tc", /* short option */
"transactioncommand", /* long option */
"Specify the transaction command to filter", /* short description */
"Specify the transaction command to filter" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"outFile", /* name */
0, /* minnum */
1, /* maxnum */
"o", /* short option */
"outfile", /* long option */
"Specify the file to store the data in", /* short description */
"Specify the file to store the data in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"exporterName", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"exporter", /* long option */
"Specify the exporter to use", /* short description */
"Specify the exporter to use" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"profileName", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"profile", /* long option */
"Specify the export profile to use", /* short description */
"Specify the export profile to use" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"profileFile", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"profile-file", /* long option */
"Specify the file to load the export profile from",/* short description */
"Specify the file to load the export profile from" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return 1;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return 0;
}
/* read command line arguments */
exporterName=GWEN_DB_GetCharValue(db, "exporterName", 0, "csv");
profileName=GWEN_DB_GetCharValue(db, "profileName", 0, "default");
profileFile=GWEN_DB_GetCharValue(db, "profileFile", 0, NULL);
aid=(uint32_t)GWEN_DB_GetIntValue(db, "uniqueAccountId", 0, 0);
bankId=GWEN_DB_GetCharValue(db, "bankId", 0, 0);
accountId=GWEN_DB_GetCharValue(db, "accountId", 0, 0);
subAccountId=GWEN_DB_GetCharValue(db, "subAccountId", 0, 0);
iban=GWEN_DB_GetCharValue(db, "iban", 0, 0);
outFile=GWEN_DB_GetCharValue(db, "outFile", 0, 0);
s=GWEN_DB_GetCharValue(db, "transactionType", 0, NULL);
if (s && *s) {
transactionType=AB_Transaction_Type_fromString(s);
if (transactionType==AB_Transaction_TypeUnknown) {
fprintf(stderr, "ERROR: Invalid transaction type \"%s\"\n", s);
return 1;
}
}
s=GWEN_DB_GetCharValue(db, "transactionCommand", 0, NULL);
if (s && *s) {
transactionCommand=AB_Transaction_Command_fromString(s);
if (transactionCommand==AB_Transaction_CommandUnknown) {
fprintf(stderr, "ERROR: Invalid transaction command \"%s\"\n", s);
return 1;
}
}
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* load ctx file */
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
rv=readContext(ctxFile, &ctx, 1);
if (rv!=0) {
DBG_ERROR(0, "Error reading context (%d)", rv);
AB_ImExporterContext_free(ctx);
return 4;
}
/* copy context, but only keep wanted accounts and transactions */
nctx=AB_ImExporterContext_new();
iea=AB_ImExporterContext_GetFirstAccountInfo(ctx);
while (iea) {
if (AB_ImExporterAccountInfo_Matches(iea,
aid, /* unique account id */
"*",
bankId,
accountId,
subAccountId,
iban,
"*", /* currency */
AB_AccountType_Unknown)) {
AB_IMEXPORTER_ACCOUNTINFO *nai;
AB_TRANSACTION_LIST *tl;
nai=AB_ImExporterAccountInfo_dup(iea);
tl=AB_ImExporterAccountInfo_GetTransactionList(nai);
if (tl)
AB_Transaction_List_KeepByType(tl, transactionType, transactionCommand);
AB_ImExporterContext_AddAccountInfo(nctx, nai);
}
iea=AB_ImExporterAccountInfo_List_Next(iea);
} /* while */
AB_ImExporterContext_free(ctx); /* old context */
/* export new context */
rv=AB_Banking_ExportToFileLoadProfile(ab, exporterName, nctx, outFile, profileName, profileFile);
if (rv<0) {
DBG_ERROR(0, "Error exporting (%d).", rv);
AB_ImExporterContext_free(nctx);
return 4;
}
AB_ImExporterContext_free(nctx);
/* deinit */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/separecurtransfer.c 0000664 0001750 0001750 00000045042 14043610745 021607 0000000 0000000 /***************************************************************************
begin : Sat Dec 28 2013
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
/* tool includes */
#include "globals.h"
/* aqbanking includes */
#include
/* gwenhywfar includes */
#include
/* forward declarations */
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
int sepaRecurTransfer(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
AB_ACCOUNT_SPEC *as;
int rv;
int rvExec=0;
const char *ctxFile;
AB_TRANSACTION *t;
int stoCommand=AB_Transaction_CommandUnknown;
int noCheck;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read arguments */
if (GWEN_DB_GetIntValue(db, "createSto", 0, 0))
stoCommand=AB_Transaction_CommandSepaCreateStandingOrder;
if (GWEN_DB_GetIntValue(db, "modifySto", 0, 0)) {
if (stoCommand!=AB_Transaction_CommandUnknown) {
DBG_ERROR(0, "Contradicting command line arguments");
return 1;
}
stoCommand=AB_Transaction_CommandSepaModifyStandingOrder;
}
if (GWEN_DB_GetIntValue(db, "deleteSto", 0, 0)) {
if (stoCommand!=AB_Transaction_CommandUnknown) {
DBG_ERROR(0, "Contradicting command line arguments");
return 1;
}
stoCommand=AB_Transaction_CommandSepaDeleteStandingOrder;
}
if (stoCommand==AB_Transaction_CommandUnknown) {
DBG_ERROR(0, "Missing Option: '--create', '--delete' or '--modify'");
return 1;
}
noCheck=GWEN_DB_GetIntValue(db, "noCheck", 0, 0);
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* get account to work with */
as=getSingleSelectedAccount(ab, db);
if (as==NULL) {
AB_Banking_Fini(ab);
return 2;
}
/* create transaction from arguments */
t=mkSepaTransfer(db, stoCommand);
if (t==NULL) {
DBG_ERROR(0, "Could not create SEPA standing order from arguments");
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return 2;
}
AB_Transaction_SetUniqueAccountId(t, AB_AccountSpec_GetUniqueId(as));
/* set local account info from selected AB_ACCOUNT_SPEC */
AB_Banking_FillTransactionFromAccountSpec(t, as);
/* some checks */
rv=checkTransactionIbans(t);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
/* probably check against transaction limits */
if (!noCheck) {
rv=checkTransactionLimits(t,
AB_AccountSpec_GetTransactionLimitsForCommand(as, AB_Transaction_GetCommand(t)),
AQBANKING_TOOL_LIMITFLAGS_PURPOSE |
AQBANKING_TOOL_LIMITFLAGS_NAMES |
AQBANKING_TOOL_LIMITFLAGS_DATE |
AQBANKING_TOOL_LIMITFLAGS_SEPA);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
}
AB_AccountSpec_free(as);
/* execute job */
rv=execSingleBankingJob(ab, t, ctxFile);
if (rv) {
fprintf(stderr, "Error on executeQueue (%d)\n", rv);
rvExec=rv;
}
/* cleanup */
AB_Transaction_free(t);
/* that's it */
rv=AB_Banking_Fini(ab);
if (rv<0) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
if (rvExec==0)
rvExec=5;
}
return rvExec;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"createSto", /* name */
0, /* minnum */
1, /* maxnum */
NULL,
"create",
"Create standing orders",
"Create standing orders"
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"modifySto", /* name */
0, /* minnum */
1, /* maxnum */
NULL,
"modify",
"Modify standing orders",
"Modify standing orders"
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"deleteSto", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"delete", /* long option */
"Delete standing orders", /* short */
"Delete standing orders" /* long */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"backendName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"backend", /* long option */
"Specify the name of the backend for your account", /* short description */
"Specify the name of the backend for your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"country", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"country", /* long option */
"Specify the country for your account (e.g. \"de\")", /* short description */
"Specify the country for your account (e.g. \"de\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"overwrite the bank code", /* short description */
"overwrite the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"overwrite the account number", /* short description */
"overwrite the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"at", /* short option */
"accounttype", /* long option */
"Specify the account type", /* short description */
"Specify the account type" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteBIC", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"rbic", /* long option */
"Specify the remote SWIFT BIC",/* short description */
"Specify the remote SWIFT BIC" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteIBAN", /* name */
1, /* minnum */
1, /* maxnum */
NULL, /* short option */
"riban", /* long option */
"Specify the remote IBAN", /* short description */
"Specify the remote IBAN" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"value", /* name */
1, /* minnum */
1, /* maxnum */
"v", /* short option */
"value", /* long option */
"Specify the transfer amount", /* short description */
"Specify the transfer amount" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"name", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"name", /* long option */
"Specify your name", /* short description */
"Specify your name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteName", /* name */
1, /* minnum */
2, /* maxnum */
NULL, /* short option */
"rname", /* long option */
"Specify the remote name", /* short description */
"Specify the remote name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"purpose", /* name */
1, /* minnum */
6, /* maxnum */
"p", /* short option */
"purpose", /* long option */
"Specify the purpose", /* short description */
"Specify the purpose" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"endToEndReference", /* name */
0, /* minnum */
1, /* maxnum */
"E", /* short option */
"endtoendid", /* long option */
"Specify the SEPA End-to-end-reference", /* short description */
"Specify the SEPA End-to-end-reference" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"firstExecutionDate", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"firstExecutionDate", /* long option */
"Set date of first execution (YYYYMMDD)", /* short description */
"Set date of first execution (YYYYMMDD)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"nextExecutionDate", /* HKCDL and HKCDN only */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"nextExecutionDate", /* long option */
"Set date of next execution (YYYYMMDD)", /* short description */
"Set this date given from the command request --sepaSto (delete and modify sto only)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"lastExecutionDate", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"lastExecutionDate", /* long option */
"Set date of last execution (YYYYMMDD)", /* short description */
"Set date of last execution (YYYYMMDD)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"executionDay", /* name */
1, /* minnum */
1, /* maxnum */
NULL, /* short option */
"executionDay", /* long option */
"Set day of execution", /* short description */
"Set day of execution" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"executionCycle", /* name */
1, /* minnum */
1, /* maxnum */
NULL, /* short option */
"executionCycle", /* long option */
"Set execution cycle", /* short description */
"Set execution cycle" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"executionPeriod", /* name */
1, /* minnum */
1, /* maxnum */
NULL, /* short option */
"executionPeriod", /* long option */
"Set execution period (monthly / weekly)", /* short description */
"Set execution period (monthly / weekly)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"fiId", /* HKCDL */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"fiId", /* long option */
"Set the fiId (standing orders)", /* short description */
"Set the fiId (standing orders) - Auftragsidentifikation for HKCDL or HKCDN" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"executionDate", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"execdate", /* long option */
"Specify the execution date (YYYYMMDD)", /* short */
"Specify the execution date (YYYYMMDD)" /* long */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"noCheck", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"noCheck", /* long option */
"Dont check transaction limits", /* short description */
"Dont check transaction limits" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/main.c 0000664 0001750 0001750 00000035426 14576404066 017012 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "globals.h"
static void cmdAddHelpStr(GWEN_BUFFER *ubuf,
const char *cmdname,
const char *cmdhelp)
{
// Indentation of the command: one space
GWEN_Buffer_AppendString(ubuf, " ");
GWEN_Buffer_AppendString(ubuf, cmdname);
GWEN_Buffer_AppendString(ubuf, ":\n");
// Indentation of the help: three spaces
GWEN_Buffer_AppendString(ubuf, " ");
GWEN_Buffer_AppendString(ubuf, cmdhelp);
GWEN_Buffer_AppendString(ubuf, "\n");
}
int main(int argc, char **argv)
{
GWEN_DB_NODE *db;
const char *cmd;
int rv;
AB_BANKING *ab;
GWEN_GUI *gui;
const char *ctrlBackend=NULL;
int nonInteractive=0;
int acceptValidCerts=0;
const char *pinFile;
const char *cfgDir;
const char *s;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"cfgdir", /* name */
0, /* minnum */
1, /* maxnum */
"D", /* short option */
"cfgdir", /* long option */
I18S("Specify the configuration folder"),
I18S("Specify the configuration folder")
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"nonInteractive", /* name */
0, /* minnum */
1, /* maxnum */
"n", /* short option */
"noninteractive", /* long option */
"Select non-interactive mode",/* short description */
"Select non-interactive mode.\n" /* long description */
"This automatically returns a confirmative answer to any non-critical\n"
"message."
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"acceptValidCerts", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"acceptvalidcerts", /* long option */
"Automatically accept all valid TLS certificate",
"Automatically accept all valid TLS certificate"
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"charset", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"charset", /* long option */
"Specify the output character set", /* short description */
"Specify the output character set" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"pinfile", /* name */
0, /* minnum */
1, /* maxnum */
"P", /* short option */
"pinfile", /* long option */
"Specify the PIN file", /* short description */
"Specify the PIN file" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"opticalTan", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"opticaltan", /* long option */
"Tool for optical TAN challenges", /* short description */
"Specify an external tool to display optical TAN challenges" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"control", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"control", /* long option */
"backend for control function", /* short description */
"Call the CONTROL function of the given backend" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help",
I18S("Show this help screen. For help on commands, "
"run aqbanking-cli --help."),
I18S("Show this help screen. For help on commands, run aqbanking-cli --help.")
}
};
rv=GWEN_Init();
if (rv) {
fprintf(stderr, "ERROR: Unable to init Gwen.\n");
exit(2);
}
GWEN_Logger_Open(0, "aqbanking-cli", 0,
GWEN_LoggerType_Console,
GWEN_LoggerFacility_User);
GWEN_Logger_SetLevel(0, GWEN_LoggerLevel_Warning);
rv=GWEN_I18N_BindTextDomain_Dir(PACKAGE, LOCALEDIR);
if (rv) {
DBG_ERROR(0, "Could not bind textdomain (%d)", rv);
}
else {
rv=GWEN_I18N_BindTextDomain_Codeset(PACKAGE, "UTF-8");
if (rv) {
DBG_ERROR(0, "Could not set codeset (%d)", rv);
}
}
db=GWEN_DB_Group_new("arguments");
rv=GWEN_Args_Check(argc, argv, 1,
GWEN_ARGS_MODE_ALLOW_FREEPARAM |
GWEN_ARGS_MODE_STOP_AT_FREEPARAM,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments main\n");
GWEN_DB_Group_free(db);
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
GWEN_Buffer_AppendString(ubuf, I18N("This is version "));
GWEN_Buffer_AppendString(ubuf, AQBANKING_VERSION_STRING "\n");
GWEN_Buffer_AppendString(ubuf,
I18N("Usage: "));
GWEN_Buffer_AppendString(ubuf, argv[0]);
GWEN_Buffer_AppendString(ubuf,
I18N(" [GLOBAL OPTIONS] COMMAND "
"[LOCAL OPTIONS]\n"));
GWEN_Buffer_AppendString(ubuf,
I18N("\nGlobal Options:\n"));
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
GWEN_DB_Group_free(db);
return 1;
}
GWEN_Buffer_AppendString(ubuf,
I18N("\nCommands:\n"));
cmdAddHelpStr(ubuf, "listaccs",
I18N("Prints the list of accounts"));
cmdAddHelpStr(ubuf, "listbal",
I18N("Export balances from a context file."));
cmdAddHelpStr(ubuf, "listtrans",
I18N("List transactions or transfers from a context file."));
cmdAddHelpStr(ubuf, "listtransfers",
I18N("Export transactions from a context file which match certain status."));
cmdAddHelpStr(ubuf, "request",
I18N("Requests transactions, balances, standing orders etc."));
cmdAddHelpStr(ubuf, "chkiban",
I18N("Check an IBAN"));
cmdAddHelpStr(ubuf, "import",
I18N("Import a file into an import context file"));
cmdAddHelpStr(ubuf, "export",
I18N("Export an import context file into a file (previously \"listtrans\")"));
cmdAddHelpStr(ubuf, "sepatransfer",
I18N("Issue a single SEPA transfer (data from command line)"));
cmdAddHelpStr(ubuf, "sepainternaltransfer",
I18N("Issue a single SEPA transfer (data from command line)"));
cmdAddHelpStr(ubuf, "sepatransfers",
I18N("Issue a number of SEPA transfers (data from a file)"));
cmdAddHelpStr(ubuf, "sepadebitnote",
I18N("Issue a single SEPA debit note (data from command line)"));
cmdAddHelpStr(ubuf, "sepaflashdebitnote",
I18N("Issue a single flash SEPA debit note COR1 (data from command line)"));
cmdAddHelpStr(ubuf, "sepadebitnotes",
I18N("Issue a number of SEPA debit notes (data from a file)"));
cmdAddHelpStr(ubuf, "addtrans",
I18N("Add a transfer to an existing import context file"));
cmdAddHelpStr(ubuf, "addsepadebitnote",
I18N("Add a SEPA debit note to an existing import context file"));
cmdAddHelpStr(ubuf, "addflashsepadebitnote",
I18N("Add a flash SEPA debit note to an existing import context file"));
cmdAddHelpStr(ubuf, "sepasto",
I18N("Manage SEPA standing orders"));
cmdAddHelpStr(ubuf, "fillgaps",
I18N("Fill gaps in an import context file from configuration settings"));
cmdAddHelpStr(ubuf, "listprofiles",
I18N("Print existing profiles"));
cmdAddHelpStr(ubuf, "accountcmds",
I18N("Print available jobs for given (or all) accounts"));
cmdAddHelpStr(ubuf, "versions",
I18N("Print the program and library versions"));
GWEN_Buffer_AppendString(ubuf, "\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
GWEN_DB_Group_free(db);
return 0;
}
if (rv) {
argc-=rv-1;
argv+=rv-1;
}
nonInteractive=GWEN_DB_GetIntValue(db, "nonInteractive", 0, 0);
acceptValidCerts=GWEN_DB_GetIntValue(db, "acceptValidCerts", 0, 0);
cfgDir=GWEN_DB_GetCharValue(db, "cfgdir", 0, 0);
ctrlBackend=GWEN_DB_GetCharValue(db, "control", 0, 0);
gui=GWEN_Gui_CGui_new();
s=GWEN_DB_GetCharValue(db, "charset", 0, NULL);
if (s && *s)
GWEN_Gui_SetCharSet(gui, s);
if (nonInteractive)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
if (acceptValidCerts)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
pinFile=GWEN_DB_GetCharValue(db, "pinFile", 0, NULL);
if (pinFile) {
GWEN_DB_NODE *dbPins;
dbPins=GWEN_DB_Group_new("pins");
if (GWEN_DB_ReadFile(dbPins, pinFile,
GWEN_DB_FLAGS_DEFAULT |
GWEN_PATH_FLAGS_CREATE_GROUP)) {
fprintf(stderr, "Error reading pinfile \"%s\"\n", pinFile);
GWEN_DB_Group_free(dbPins);
GWEN_DB_Group_free(db);
return 2;
}
GWEN_Gui_SetPasswordDb(gui, dbPins, 1);
}
GWEN_Gui_SetGui(gui);
ab=AB_Banking_new("aqbanking-cli", cfgDir, 0);
AB_Banking_RuntimeConfig_SetCharValue(ab, "fintsRegistrationKey", "32F8A67FE34B57AB8D7E4FE70");
AB_Banking_RuntimeConfig_SetCharValue(ab, "fintsApplicationVersionString", AQBANKING_FINTS_VERSION_STRING);
AB_Gui_Extend(gui, ab);
s = GWEN_DB_GetCharValue(db, "opticalTan", 0, NULL);
if ((NULL != s) && ('\0' != s [0]) && (0 != AB_Gui_SetCliCallbackForOpticalTan(gui, s))) {
fprintf(stderr, "Error registering \"%s\".\n", s);
GWEN_DB_Group_free(db);
return 2;
}
if (ctrlBackend && *ctrlBackend) {
rv=control(ab, ctrlBackend, db, argc, argv);
}
else {
cmd=GWEN_DB_GetCharValue(db, "params", 0, 0);
if (!cmd) {
fprintf(stderr, "ERROR: Command needed.\n");
GWEN_DB_Group_free(db);
return 1;
}
if (strcasecmp(cmd, "listaccs")==0 ||
strcasecmp(cmd, "listaccounts")==0) {
rv=listAccs(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "listbal")==0) {
rv=listBal(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "listtrans")==0) {
rv=listTrans(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "listtransfers")==0) {
fprintf(stderr,
"ERROR: Please use the commands \"listtrans\" or \"export\" and specify the transaction type via \"-tt TYPE\"\n");
GWEN_DB_Group_free(db);
return 1;
}
else if (strcasecmp(cmd, "listdoc")==0) {
rv=listDoc(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "getdoc")==0) {
rv=getDoc(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "request")==0) {
rv=request(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "chkiban")==0) {
rv=chkIban(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "import")==0) {
rv=import(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "export")==0) {
rv=exportCtx(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "sepatransfer")==0) {
rv=sepaTransfer(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "sepainternaltransfer")==0) {
rv=sepaInternalTransfer(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "sepatransfers")==0) {
rv=sepaMultiJobs(ab, db, argc, argv, AQBANKING_TOOL_SEPA_TRANSFERS);
}
else if (strcasecmp(cmd, "sepadebitnote")==0) {
rv=sepaDebitNote(ab, db, argc, argv, 0);
}
else if (strcasecmp(cmd, "sepaFlashDebitNote")==0) {
rv=sepaDebitNote(ab, db, argc, argv, 1);
}
else if (strcasecmp(cmd, "sepadebitnotes")==0) {
rv=sepaMultiJobs(ab, db, argc, argv, AQBANKING_TOOL_SEPA_DEBITNOTES);
}
else if (strcasecmp(cmd, "addtrans")==0) {
rv=addTransaction(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "addsepadebitnote")==0) {
rv=addSepaDebitNote(ab, db, argc, argv, 0);
}
else if (strcasecmp(cmd, "addFlashSepadebitnote")==0) {
rv=addSepaDebitNote(ab, db, argc, argv, 1);
}
else if (strcasecmp(cmd, "sepasto")==0) {
rv=sepaRecurTransfer(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "fillgaps")==0) {
rv=fillGaps(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "listprofiles")==0) {
rv=listProfiles(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "accountcmds")==0) {
rv=showAccountCommands(ab, db, argc, argv);
}
else if (strcasecmp(cmd, "versions")==0) {
rv=versions(ab, db, argc, argv);
}
else {
fprintf(stderr, "ERROR: Unknown command \"%s\".\n", cmd);
rv=1;
}
}
AB_Banking_free(ab);
GWEN_Gui_SetGui(NULL);
GWEN_Gui_free(gui);
GWEN_Fini();
GWEN_DB_Group_free(db);
return rv;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/util.c 0000664 0001750 0001750 00000107714 14546575650 017050 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
#include
#include
#include
static int GWENHYWFAR_CB _replaceVarsCb(void *cbPtr, const char *name, int index, int maxLen, GWEN_BUFFER *dstBuf);
/* ========================================================================================================================
* readContext
* ========================================================================================================================
*/
int readContext(const char *ctxFile,
AB_IMEXPORTER_CONTEXT **pCtx,
int mustExist)
{
AB_IMEXPORTER_CONTEXT *ctx;
GWEN_SYNCIO *sio;
GWEN_DB_NODE *dbCtx;
int rv;
if (ctxFile==NULL) {
sio=GWEN_SyncIo_File_fromStdin();
GWEN_SyncIo_AddFlags(sio,
GWEN_SYNCIO_FLAGS_DONTCLOSE |
GWEN_SYNCIO_FILE_FLAGS_READ);
}
else {
sio=GWEN_SyncIo_File_new(ctxFile, GWEN_SyncIo_File_CreationMode_OpenExisting);
GWEN_SyncIo_AddFlags(sio, GWEN_SYNCIO_FILE_FLAGS_READ);
rv=GWEN_SyncIo_Connect(sio);
if (rv<0) {
if (!mustExist) {
ctx=AB_ImExporterContext_new();
*pCtx=ctx;
GWEN_SyncIo_free(sio);
return 0;
}
GWEN_SyncIo_free(sio);
return 4;
}
}
/* actually read */
dbCtx=GWEN_DB_Group_new("context");
rv=GWEN_DB_ReadFromIo(dbCtx, sio,
GWEN_DB_FLAGS_DEFAULT |
GWEN_PATH_FLAGS_CREATE_GROUP);
if (rv<0) {
DBG_ERROR(0, "Error reading context file (%d)", rv);
GWEN_DB_Group_free(dbCtx);
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
return rv;
}
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
ctx=AB_ImExporterContext_fromDb(dbCtx);
if (!ctx) {
DBG_ERROR(0, "No context in input data");
GWEN_DB_Group_free(dbCtx);
return GWEN_ERROR_BAD_DATA;
}
GWEN_DB_Group_free(dbCtx);
*pCtx=ctx;
return 0;
}
/* ========================================================================================================================
* writeContext
* ========================================================================================================================
*/
int writeContext(const char *ctxFile, const AB_IMEXPORTER_CONTEXT *ctx)
{
GWEN_DB_NODE *dbCtx;
GWEN_SYNCIO *sio;
int rv;
if (ctxFile==NULL) {
sio=GWEN_SyncIo_File_fromStdout();
GWEN_SyncIo_AddFlags(sio,
GWEN_SYNCIO_FLAGS_DONTCLOSE |
GWEN_SYNCIO_FILE_FLAGS_WRITE);
}
else {
sio=GWEN_SyncIo_File_new(ctxFile, GWEN_SyncIo_File_CreationMode_CreateAlways);
GWEN_SyncIo_AddFlags(sio,
GWEN_SYNCIO_FILE_FLAGS_READ |
GWEN_SYNCIO_FILE_FLAGS_WRITE |
GWEN_SYNCIO_FILE_FLAGS_UREAD |
GWEN_SYNCIO_FILE_FLAGS_UWRITE |
GWEN_SYNCIO_FILE_FLAGS_GREAD |
GWEN_SYNCIO_FILE_FLAGS_GWRITE);
rv=GWEN_SyncIo_Connect(sio);
if (rv<0) {
DBG_ERROR(0, "Error selecting output file: %s",
strerror(errno));
GWEN_SyncIo_free(sio);
return 4;
}
}
dbCtx=GWEN_DB_Group_new("context");
rv=AB_ImExporterContext_toDb(ctx, dbCtx);
if (rv<0) {
DBG_ERROR(0, "Error writing context to db (%d)", rv);
GWEN_DB_Group_free(dbCtx);
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
return rv;
}
rv=GWEN_DB_WriteToIo(dbCtx, sio, GWEN_DB_FLAGS_DEFAULT);
if (rv<0) {
DBG_ERROR(0, "Error writing context (%d)", rv);
}
else
rv=0;
GWEN_DB_Group_free(dbCtx);
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
return rv;
}
/* ========================================================================================================================
* mkSepaTransfer
* ========================================================================================================================
*/
AB_TRANSACTION *mkSepaTransfer(GWEN_DB_NODE *db, int cmd)
{
AB_TRANSACTION *t;
const char *s;
int i;
GWEN_DATE *d;
assert(db);
t=AB_Transaction_new();
AB_Transaction_SetCommand(t, cmd);
AB_Transaction_SetType(t, AB_Transaction_TypeTransfer);
s=GWEN_DB_GetCharValue(db, "name", 0, 0);
if (s && *s)
AB_Transaction_SetLocalName(t, s);
/* remote account */
s=GWEN_DB_GetCharValue(db, "remoteBankId", 0, 0);
if (s && *s)
AB_Transaction_SetRemoteBankCode(t, s);
s=GWEN_DB_GetCharValue(db, "remoteAccountId", 0, 0);
if (s && *s)
AB_Transaction_SetRemoteAccountNumber(t, s);
s=GWEN_DB_GetCharValue(db, "remoteIban", 0, 0);
if (s && *s)
AB_Transaction_SetRemoteIban(t, s);
else {
DBG_ERROR(0, "No remote IBAN given");
AB_Transaction_free(t);
return NULL;
}
s=GWEN_DB_GetCharValue(db, "remoteBic", 0, 0);
if (s && *s)
AB_Transaction_SetRemoteBic(t, s);
s=GWEN_DB_GetCharValue(db, "remoteName", 0, 0);
if (s && *s)
AB_Transaction_SetRemoteName(t, s);
else {
DBG_ERROR(0, "No remote name given");
AB_Transaction_free(t);
return NULL;
}
/* transfer data */
for (i=0; i<20; i++) {
s=GWEN_DB_GetCharValue(db, "purpose", i, 0);
if (!s)
break;
if (*s)
AB_Transaction_AddPurposeLine(t, s);
}
if (i<1) {
DBG_ERROR(0, "No purpose given");
AB_Transaction_free(t);
return NULL;
}
s=GWEN_DB_GetCharValue(db, "value", 0, 0);
if (s && *s) {
AB_VALUE *v;
v=AB_Value_fromString(s);
assert(v);
if (AB_Value_IsNegative(v) || AB_Value_IsZero(v)) {
DBG_ERROR(0, "Only positive non-zero amount allowed");
AB_Transaction_free(t);
return NULL;
}
AB_Transaction_SetValue(t, v);
AB_Value_free(v);
}
else {
DBG_ERROR(0, "No value given");
AB_Transaction_free(t);
return NULL;
}
s=GWEN_DB_GetCharValue(db, "endToEndReference", 0, 0);
if (s && *s)
AB_Transaction_SetEndToEndReference(t, s);
/* dated transfer, SEPA debit notes */
s=GWEN_DB_GetCharValue(db, "executionDate", 0, 0);
if (s && *s) {
GWEN_BUFFER *dbuf;
dbuf=GWEN_Buffer_new(0, 32, 0, 1);
GWEN_Buffer_AppendString(dbuf, s);
GWEN_Buffer_AppendString(dbuf, "-00:00");
d=GWEN_Date_fromStringWithTemplate(GWEN_Buffer_GetStart(dbuf), "YYYYMMDD");
GWEN_Buffer_free(dbuf);
if (d==0) {
DBG_ERROR(0, "Invalid execution date value \"%s\"", s);
AB_Transaction_free(t);
return NULL;
}
AB_Transaction_SetDate(t, d);
GWEN_Date_free(d);
}
/* standing orders */
if (cmd==AB_Transaction_CommandSepaCreateStandingOrder) {
s=GWEN_DB_GetCharValue(db, "firstExecutionDate", 0, 0);
if (!(s && *s)) {
DBG_ERROR(0, "Missing first execution date");
return NULL;
}
}
if (cmd==AB_Transaction_CommandSepaModifyStandingOrder ||
cmd==AB_Transaction_CommandSepaDeleteStandingOrder) {
/* not in the Specs, but the banks ask for it) */
s=GWEN_DB_GetCharValue(db, "nextExecutionDate", 0, 0);
if (!(s && *s)) {
DBG_ERROR(0, "Missing next execution date");
return NULL;
}
}
if (s && *s) {
GWEN_BUFFER *dbuf;
dbuf=GWEN_Buffer_new(0, 32, 0, 1);
GWEN_Buffer_AppendString(dbuf, s);
GWEN_Buffer_AppendString(dbuf, "-00:00");
d=GWEN_Date_fromStringWithTemplate(GWEN_Buffer_GetStart(dbuf), "YYYYMMDD");
GWEN_Buffer_free(dbuf);
if (d==0) {
DBG_ERROR(0, "Invalid first or next execution date value \"%s\"", s);
AB_Transaction_free(t);
return NULL;
}
AB_Transaction_SetFirstDate(t, d); /*next execution date, too */
GWEN_Date_free(d);
}
s=GWEN_DB_GetCharValue(db, "lastExecutionDate", 0, 0);
if (s && *s) {
GWEN_BUFFER *dbuf;
dbuf=GWEN_Buffer_new(0, 32, 0, 1);
GWEN_Buffer_AppendString(dbuf, s);
GWEN_Buffer_AppendString(dbuf, "-00:00");
d=GWEN_Date_fromStringWithTemplate(GWEN_Buffer_GetStart(dbuf), "YYYYMMDD");
GWEN_Buffer_free(dbuf);
if (d==0) {
DBG_ERROR(0, "Invalid last execution date value \"%s\"", s);
AB_Transaction_free(t);
return NULL;
}
AB_Transaction_SetLastDate(t, d);
GWEN_Date_free(d);
}
if (cmd==AB_Transaction_CommandSepaCreateStandingOrder ||
cmd==AB_Transaction_CommandSepaModifyStandingOrder ||
cmd==AB_Transaction_CommandSepaDeleteStandingOrder) {
const char *s;
AB_TRANSACTION_PERIOD period=AB_Transaction_PeriodUnknown;
/* only needed for standing orders */
AB_Transaction_SetSubType(t, AB_Transaction_SubTypeStandingOrder);
s=GWEN_DB_GetCharValue(db, "executionPeriod", 0, 0);
if (s && *s) {
period=AB_Transaction_Period_fromString(s);
if (period==AB_Transaction_PeriodUnknown) {
DBG_ERROR(0, "Invalid execution period value \"%s\"", s);
AB_Transaction_free(t);
return NULL;
}
}
else {
DBG_ERROR(0, "Missing execution period value");
return NULL;
}
AB_Transaction_SetPeriod(t, period);
i=GWEN_DB_GetIntValue(db, "executionCycle", 0, -1);
if (i <= 0) {
DBG_ERROR(0, "Invalid execution cycle value \"%d\"", i);
AB_Transaction_free(t);
return NULL;
}
AB_Transaction_SetCycle(t, i);
i=GWEN_DB_GetIntValue(db, "executionDay", 0, -1);
if (i <= 0 || (period == AB_Transaction_PeriodWeekly && i > 7) ||
(period == AB_Transaction_PeriodMonthly && i > 30 &&
(i < 97 || i > 99))) {
DBG_ERROR(0, "Invalid execution day value \"%d\"", i);
AB_Transaction_free(t);
return NULL;
}
AB_Transaction_SetExecutionDay(t, i);
/* SetFiId */
s=GWEN_DB_GetCharValue(db, "fiId", 0, 0);
if (s && *s)
AB_Transaction_SetFiId(t, s);
}
return t;
}
/* ========================================================================================================================
* mkSepaDebitNote
* ========================================================================================================================
*/
AB_TRANSACTION *mkSepaDebitNote(GWEN_DB_NODE *db, int cmd)
{
AB_TRANSACTION *t;
const char *s;
t=mkSepaTransfer(db, cmd);
if (t==NULL) {
DBG_INFO(0, "here");
return NULL;
}
AB_Transaction_SetType(t, AB_Transaction_TypeDebitNote);
/* read some additional fields */
s=GWEN_DB_GetCharValue(db, "creditorSchemeId", 0, 0);
if (!(s && *s)) {
DBG_ERROR(0, "Missing creditor scheme id");
AB_Transaction_free(t);
return NULL;
}
AB_Transaction_SetCreditorSchemeId(t, s);
s=GWEN_DB_GetCharValue(db, "mandateId", 0, 0);
if (!(s && *s)) {
DBG_ERROR(0, "Missing mandate id");
AB_Transaction_free(t);
return NULL;
}
AB_Transaction_SetMandateId(t, s);
s=GWEN_DB_GetCharValue(db, "mandateDate", 0, 0);
if (!(s && *s)) {
DBG_ERROR(0, "Missing mandate date");
AB_Transaction_free(t);
return NULL;
}
else {
GWEN_DATE *dt;
dt=GWEN_Date_fromString(s);
if (dt==NULL) {
DBG_ERROR(0, "Bad date format for mandate date");
AB_Transaction_free(t);
return NULL;
}
AB_Transaction_SetMandateDate(t, dt);
GWEN_Date_free(dt);
}
s=GWEN_DB_GetCharValue(db, "sequenceType", 0, "once");
if (s && *s) {
AB_TRANSACTION_SEQUENCE st;
st=AB_Transaction_Sequence_fromString(s);
if (st!=AB_Transaction_SequenceUnknown)
AB_Transaction_SetSequence(t, st);
else {
DBG_ERROR(0, "Unknown sequence type [%s]", s);
AB_Transaction_free(t);
return NULL;
}
}
else
AB_Transaction_SetSequence(t, AB_Transaction_SequenceOnce);
return t;
}
/* ========================================================================================================================
* getSelectedAccounts
* ========================================================================================================================
*/
AB_ACCOUNT_SPEC_LIST *getSelectedAccounts(AB_BANKING *ab, GWEN_DB_NODE *db)
{
AB_ACCOUNT_SPEC_LIST *asl=NULL;
uint32_t uniqueAccountId;
int rv;
asl=AB_AccountSpec_List_new();
uniqueAccountId=(uint32_t) GWEN_DB_GetIntValue(db, "uniqueAccountId", 0, 0);
if (uniqueAccountId) {
AB_ACCOUNT_SPEC *as=NULL;
/* specific unique id given, use that exclusively */
rv=AB_Banking_GetAccountSpecByUniqueId(ab, uniqueAccountId, &as);
if (rv<0) {
DBG_ERROR(0, "Could not load account spec %lu (%d)", (unsigned long int) uniqueAccountId, rv);
AB_AccountSpec_List_free(asl);
return NULL;
}
AB_AccountSpec_List_Add(as, asl);
}
else {
/* no unique account id given, try match parameters */
rv=AB_Banking_GetAccountSpecList(ab, &asl);
if (rv<0) {
if (rv==GWEN_ERROR_NOT_FOUND) {
DBG_INFO(0, "No account specs (%d)", rv);
}
else {
DBG_ERROR(0, "Could not load account specs (%d)", rv);
}
AB_AccountSpec_List_free(asl);
return NULL;
}
else {
const char *backendName;
const char *country;
const char *bankId;
const char *accountId;
const char *subAccountId;
const char *iban;
const char *s;
AB_ACCOUNT_TYPE aType=AB_AccountType_Unknown;
AB_ACCOUNT_SPEC *as;
backendName=GWEN_DB_GetCharValue(db, "backendName", 0, "*");
country=GWEN_DB_GetCharValue(db, "country", 0, "*");
bankId=GWEN_DB_GetCharValue(db, "bankId", 0, "*");
accountId=GWEN_DB_GetCharValue(db, "accountId", 0, "*");
subAccountId=GWEN_DB_GetCharValue(db, "subAccountId", 0, "*");
iban=GWEN_DB_GetCharValue(db, "iban", 0, "*");
s=GWEN_DB_GetCharValue(db, "accountType", 0, NULL);
if (s && *s)
aType=AB_AccountType_fromChar(s);
if (aType==AB_AccountType_Invalid) {
DBG_ERROR(0, "Invalid Could not load account specs (%d)", rv);
AB_AccountSpec_List_free(asl);
return NULL;
}
as=AB_AccountSpec_List_First(asl);
while (as) {
AB_ACCOUNT_SPEC *asNext;
asNext=AB_AccountSpec_List_Next(as);
if (AB_AccountSpec_Matches(as, backendName,
country, bankId, accountId, subAccountId,
iban,
"*", /* currency */
aType)<1) {
/* doesn't match, remove from list */
AB_AccountSpec_List_Del(as);
AB_AccountSpec_free(as);
}
as=asNext;
}
}
}
if (AB_AccountSpec_List_GetCount(asl)<1) {
AB_AccountSpec_List_free(asl);
return NULL;
}
return asl;
}
/* ========================================================================================================================
* getSingleSelectedAccount
* ========================================================================================================================
*/
AB_ACCOUNT_SPEC *getSingleSelectedAccount(AB_BANKING *ab, GWEN_DB_NODE *db)
{
AB_ACCOUNT_SPEC_LIST *al=NULL;
AB_ACCOUNT_SPEC *as;
al=getSelectedAccounts(ab, db);
if (al==NULL) {
DBG_INFO(0, "No matching accounts");
return NULL;
}
if (AB_AccountSpec_List_GetCount(al)>1) {
DBG_ERROR(0, "Ambiguous account specification (%d accounts matching)", AB_AccountSpec_List_GetCount(al));
AB_AccountSpec_List_free(al);
return NULL;
}
as=AB_AccountSpec_List_First(al);
assert(as);
AB_AccountSpec_List_Del(as);
AB_AccountSpec_List_free(al);
return as;
}
/* ========================================================================================================================
* pickAccountSpecForArgs
* ========================================================================================================================
*/
AB_ACCOUNT_SPEC *pickAccountSpecForArgs(const AB_ACCOUNT_SPEC_LIST *accountSpecList, GWEN_DB_NODE *db)
{
uint32_t uaid;
AB_ACCOUNT_SPEC *accountSpec=NULL;
assert(accountSpecList);
assert(db);
uaid=(uint32_t) GWEN_DB_GetIntValue(db, "uniqueAccountId", 0, 0);
if (uaid>0) {
accountSpec=AB_AccountSpec_List_GetByUniqueId(accountSpecList, uaid);
if (accountSpec==NULL) {
DBG_ERROR(0, "ERROR: No account spec with unique id %" PRIu32, uaid);
return NULL;
}
}
else {
const char *backendName;
const char *country;
const char *bankId;
const char *accountId;
const char *subAccountId;
const char *iban;
const char *s;
AB_ACCOUNT_TYPE aType=AB_AccountType_Unknown;
backendName=GWEN_DB_GetCharValue(db, "backendName", 0, "*");
country=GWEN_DB_GetCharValue(db, "country", 0, "*");
bankId=GWEN_DB_GetCharValue(db, "bankId", 0, "*");
accountId=GWEN_DB_GetCharValue(db, "accountId", 0, "*");
subAccountId=GWEN_DB_GetCharValue(db, "subAccountId", 0, "*");
iban=GWEN_DB_GetCharValue(db, "iban", 0, "*");
s=GWEN_DB_GetCharValue(db, "accountType", 0, NULL);
if (s && *s)
aType=AB_AccountType_fromChar(s);
if (aType==AB_AccountType_Invalid) {
DBG_ERROR(0, "Invalid account type (%s)", s);
return NULL;
}
accountSpec=AB_AccountSpec_List_FindFirst(accountSpecList,
backendName,
country,
bankId,
accountId,
subAccountId,
iban,
"*", /* currency */
aType);
if (accountSpec==NULL) {
DBG_ERROR(0, "ERROR: No matching account spec found");
return NULL;
}
if (AB_AccountSpec_List_FindNext(accountSpec,
backendName,
country,
bankId,
accountId,
subAccountId,
iban,
"*", /* currency */
aType)) {
DBG_ERROR(0, "ERROR: Ambiguous account specification");
return NULL;
}
}
return accountSpec;
}
/* ========================================================================================================================
* pickAccountSpecForTransaction
* ========================================================================================================================
*/
AB_ACCOUNT_SPEC *pickAccountSpecForTransaction(const AB_ACCOUNT_SPEC_LIST *accountSpecList, const AB_TRANSACTION *t)
{
uint32_t uaid;
AB_ACCOUNT_SPEC *accountSpec=NULL;
assert(accountSpecList);
assert(t);
uaid=AB_Transaction_GetUniqueAccountId(t);
if (uaid>0) {
accountSpec=AB_AccountSpec_List_GetByUniqueId(accountSpecList, uaid);
if (accountSpec==NULL) {
DBG_ERROR(0, "ERROR: No account spec with unique id %" PRIu32, uaid);
return NULL;
}
}
else {
const char *country;
const char *bankCode;
const char *accountNumber;
const char *accountSuffix;
const char *iban;
country=AB_Transaction_GetLocalCountry(t);
bankCode=AB_Transaction_GetLocalBankCode(t);
accountNumber=AB_Transaction_GetLocalAccountNumber(t);
accountSuffix=AB_Transaction_GetLocalSuffix(t);
iban=AB_Transaction_GetLocalIban(t);
accountSpec=AB_AccountSpec_List_FindFirst(accountSpecList,
"*", /* backend */
(country && *country)?country:"*",
(bankCode && *bankCode)?bankCode:"*",
(accountNumber && *accountNumber)?accountNumber:"*",
(accountSuffix && *accountSuffix)?accountSuffix:"*",
(iban && *iban)?iban:"*",
"*", /* currency */
AB_AccountType_Unknown);
if (accountSpec==NULL) {
DBG_ERROR(0, "ERROR: No matching account spec found");
return NULL;
}
if (AB_AccountSpec_List_FindNext(accountSpec,
"*", /* backend */
(country && *country)?country:"*",
(bankCode && *bankCode)?bankCode:"*",
(accountNumber && *accountNumber)?accountNumber:"*",
(accountSuffix && *accountSuffix)?accountSuffix:"*",
(iban && *iban)?iban:"*",
"*", /* currency */
AB_AccountType_Unknown)) {
DBG_ERROR(0, "ERROR: Ambiguous account specification");
return NULL;
}
}
return accountSpec;
}
/* ========================================================================================================================
* checkTransactionIbans
* ========================================================================================================================
*/
int checkTransactionIbans(const AB_TRANSACTION *t)
{
const char *rIBAN;
const char *lIBAN;
#if 0
const char *lBIC;
const char *rBIC;
#endif
int rv;
assert(t);
/* some checks */
rIBAN=AB_Transaction_GetRemoteIban(t);
lIBAN=AB_Transaction_GetLocalIban(t);
#if 0
rBIC=AB_Transaction_GetRemoteBic(t);
if (!rIBAN || !(*rIBAN)) {
fprintf(stderr, "Missing remote IBAN\n");
return 1;
}
#endif
rv=AB_Banking_CheckIban(rIBAN);
if (rv != 0) {
fprintf(stderr, "Invalid remote IBAN (%s)\n", rIBAN);
return 3;
}
#if 0
lBIC=AB_Transaction_GetLocalBic(t);
if (!lBIC || !(*lBIC)) {
fprintf(stderr, "Missing local BIC\n");
return 1;
}
#endif
if (!lIBAN || !(*lIBAN)) {
fprintf(stderr, "Missing local IBAN\n");
return 1;
}
rv=AB_Banking_CheckIban(lIBAN);
if (rv != 0) {
fprintf(stderr, "Invalid local IBAN (%s)\n", lIBAN);
return 3;
}
#if 0
if (strncmp(lIBAN, rIBAN, 2) && (!rBIC || !*rBIC)) {
DBG_ERROR(0, "Remote BIC id required for international transaction");
return 1;
}
#endif
return 0;
}
/* ========================================================================================================================
* checkTransactionLimits
* ========================================================================================================================
*/
int checkTransactionLimits(const AB_TRANSACTION *t, const AB_TRANSACTION_LIMITS *lim, uint32_t flags)
{
if (lim==NULL) {
fprintf(stderr, "ERROR: Job not supported with this account.\n");
return 3;
}
if (flags & AQBANKING_TOOL_LIMITFLAGS_PURPOSE)
if (AB_Banking_CheckTransactionAgainstLimits_Purpose(t, lim)) {
fprintf(stderr, "ERROR: Purpose violates job limits.\n");
return 3;
}
if (flags & AQBANKING_TOOL_LIMITFLAGS_NAMES)
if (AB_Banking_CheckTransactionAgainstLimits_Names(t, lim)) {
fprintf(stderr, "ERROR: Names violate job limits.\n");
return 3;
}
if (flags & AQBANKING_TOOL_LIMITFLAGS_SEQUENCE)
if (AB_Banking_CheckTransactionAgainstLimits_Sequence(t, lim)) {
fprintf(stderr, "ERROR: Sequence violate job limits.\n");
return 3;
}
if (flags & AQBANKING_TOOL_LIMITFLAGS_DATE)
if (AB_Banking_CheckTransactionAgainstLimits_Date(t, lim)) {
fprintf(stderr, "ERROR: Date violate job limits.\n");
return 3;
}
if (flags & AQBANKING_TOOL_LIMITFLAGS_SEPA)
if (AB_Banking_CheckTransactionForSepaConformity(t, 0)) {
fprintf(stderr, "ERROR: Transaction fails SEPA conformity check.\n");
return 3;
}
return 0;
}
/* ========================================================================================================================
* addTransactionToContextFile
* ========================================================================================================================
*/
int addTransactionToContextFile(const AB_TRANSACTION *t, const char *ctxFile)
{
int rv;
AB_IMEXPORTER_CONTEXT *ctx=NULL;
/* load ctx file */
rv=readContext(ctxFile, &ctx, 0);
if (rv<0) {
DBG_ERROR(0, "Error reading context (%d)", rv);
return 4;
}
/* add transaction to */
AB_ImExporterContext_AddTransaction(ctx, AB_Transaction_dup(t));
/* write result back */
rv=writeContext(ctxFile, ctx);
AB_ImExporterContext_free(ctx);
if (rv<0) {
DBG_ERROR(0, "Error writing context file (%d)", rv);
return 4;
}
return 0;
}
/* ========================================================================================================================
* execBankingJobs
* ========================================================================================================================
*/
int execBankingJobs(AB_BANKING *ab, AB_TRANSACTION_LIST2 *tList, const char *ctxFile)
{
int rv;
int rvExec=0;
AB_IMEXPORTER_CONTEXT *ctx=NULL;
/* execute job */
ctx=AB_ImExporterContext_new();
rv=AB_Banking_SendCommands(ab, tList, ctx);
if (rv) {
fprintf(stderr, "Error on executeQueue (%d)\n", rv);
rvExec=3;
}
/* write result */
rv=writeContext(ctxFile, ctx);
AB_ImExporterContext_free(ctx);
if (rv<0) {
DBG_ERROR(0, "Error writing context file (%d)", rv);
if (rvExec==0)
return 4;
}
return rvExec;
}
/* ========================================================================================================================
* execSingleBankingJob
* ========================================================================================================================
*/
int execSingleBankingJob(AB_BANKING *ab, AB_TRANSACTION *t, const char *ctxFile)
{
AB_TRANSACTION_LIST2 *jobList;
int rv;
jobList=AB_Transaction_List2_new();
AB_Transaction_List2_PushBack(jobList, t);
rv=execBankingJobs(ab, jobList, ctxFile);
AB_Transaction_List2_free(jobList);
return rv;
}
/* ========================================================================================================================
* writeJobsAsContextFile
* ========================================================================================================================
*/
int writeJobsAsContextFile(AB_TRANSACTION_LIST2 *tList, const char *ctxFile)
{
int rv;
AB_TRANSACTION_LIST2_ITERATOR *it;
AB_IMEXPORTER_CONTEXT *ctx=NULL;
ctx=AB_ImExporterContext_new();
it=AB_Transaction_List2_First(tList);
if (it) {
AB_TRANSACTION *t;
t=AB_Transaction_List2Iterator_Data(it);
while (t) {
AB_ImExporterContext_AddTransaction(ctx, AB_Transaction_dup(t));
t=AB_Transaction_List2Iterator_Next(it);
}
AB_Transaction_List2Iterator_free(it);
}
/* write result */
rv=writeContext(ctxFile, ctx);
AB_ImExporterContext_free(ctx);
if (rv<0) {
DBG_ERROR(0, "Error writing context file (%d)", rv);
return 4;
}
return 0;
}
/* ========================================================================================================================
* createAndCheckRequest
* ========================================================================================================================
*/
AB_TRANSACTION *createAndCheckRequest(AB_BANKING *ab, AB_ACCOUNT_SPEC *as, AB_TRANSACTION_COMMAND cmd)
{
if (AB_AccountSpec_GetTransactionLimitsForCommand(as, cmd)) {
AB_TRANSACTION *j;
j=AB_Transaction_new();
AB_Transaction_SetUniqueAccountId(j, AB_AccountSpec_GetUniqueId(as));
AB_Transaction_SetCommand(j, cmd);
return j;
}
else {
return NULL;
}
}
/* ========================================================================================================================
* createAndAddRequest
* ========================================================================================================================
*/
int createAndAddRequest(AB_BANKING *ab,
AB_TRANSACTION_LIST2 *tList,
AB_ACCOUNT_SPEC *as,
AB_TRANSACTION_COMMAND cmd,
const GWEN_DATE *fromDate,
const GWEN_DATE *toDate,
int ignoreUnsupported,
AB_TRANSACTION_ACK ackMethod,
uint32_t number)
{
uint32_t aid;
AB_TRANSACTION *j;
assert(as);
aid=AB_AccountSpec_GetUniqueId(as);
j=createAndCheckRequest(ab, as, cmd);
if (j) {
if (cmd==AB_Transaction_CommandGetTransactions) {
if (fromDate)
AB_Transaction_SetFirstDate(j, fromDate);
if (toDate)
AB_Transaction_SetLastDate(j, toDate);
}
else if (cmd==AB_Transaction_CommandGetEStatements) {
if (fromDate)
AB_Transaction_SetFirstDate(j, fromDate);
if (number>0)
AB_Transaction_SetEstatementNumber(j, number);
}
AB_Transaction_SetAcknowledge(j, ackMethod);
AB_Transaction_List2_PushBack(tList, j);
return 0;
}
else {
if (ignoreUnsupported) {
fprintf(stderr, "Warning: Ignoring request \"%s\" for %lu, not supported.\n",
AB_Transaction_Command_toString(cmd),
(unsigned long int) aid);
return 0;
}
else {
fprintf(stderr, "Error: Request \"%s\" for %lu not supported.\n",
AB_Transaction_Command_toString(cmd),
(unsigned long int) aid);
return GWEN_ERROR_GENERIC;
}
}
}
/* ========================================================================================================================
* createAndAddRequests
* ========================================================================================================================
*/
int createAndAddRequests(AB_BANKING *ab,
AB_TRANSACTION_LIST2 *tList,
AB_ACCOUNT_SPEC *as,
const GWEN_DATE *fromDate,
const GWEN_DATE *toDate,
uint32_t requestFlags,
uint32_t number)
{
int ignoreUnsupported=requestFlags & AQBANKING_TOOL_REQUEST_IGNORE_UNSUP;
int ackMethod=AB_Transaction_AckNever;
int rv;
assert(ab);
assert(tList);
assert(as);
if (requestFlags & AQBANKING_TOOL_REQUEST_ACKNOWLEDGE) {
ackMethod=AB_Transaction_AckJobsWithAckCode;
}
/* create and add requests */
if (requestFlags & AQBANKING_TOOL_REQUEST_BALANCE) {
rv=createAndAddRequest(ab, tList, as, AB_Transaction_CommandGetBalance, fromDate, toDate, ignoreUnsupported, ackMethod,
number);
if (rv)
return rv;
}
if (requestFlags & AQBANKING_TOOL_REQUEST_STATEMENTS) {
rv=createAndAddRequest(ab, tList, as, AB_Transaction_CommandGetTransactions, fromDate, toDate, ignoreUnsupported,
ackMethod, number);
if (rv)
return rv;
}
if (requestFlags & AQBANKING_TOOL_REQUEST_SEPASTO) {
rv=createAndAddRequest(ab, tList, as, AB_Transaction_CommandSepaGetStandingOrders, fromDate, toDate, ignoreUnsupported,
ackMethod, number);
if (rv)
return rv;
}
if (requestFlags & AQBANKING_TOOL_REQUEST_ESTATEMENTS) {
rv=createAndAddRequest(ab, tList, as, AB_Transaction_CommandGetEStatements, fromDate, toDate, ignoreUnsupported,
ackMethod, number);
if (rv)
return rv;
}
if (requestFlags & AQBANKING_TOOL_REQUEST_DEPOT) {
rv=createAndAddRequest(ab, tList, as, AB_Transaction_CommandGetDepot, fromDate, toDate, ignoreUnsupported, ackMethod,
number);
if (rv)
return rv;
}
return 0;
}
/* ========================================================================================================================
* addTransactionToBufferByTemplate
* ========================================================================================================================
*/
int addTransactionToBufferByTemplate(const AB_TRANSACTION *t, const char *tmplString, GWEN_BUFFER *dbuf)
{
GWEN_DB_NODE *dbTransaction;
const AB_VALUE *v;
const GWEN_DATE *dt;
const char *s;
int rv;
dbTransaction=GWEN_DB_Group_new("transaction");
AB_Transaction_toDb(t, dbTransaction);
/* translate value */
v=AB_Transaction_GetValue(t);
if (v) {
AB_Value_toHumanReadableString(v, dbuf, 2, 0);
GWEN_DB_SetCharValue(dbTransaction, GWEN_DB_FLAGS_OVERWRITE_VARS, "valueAsString", GWEN_Buffer_GetStart(dbuf));
GWEN_Buffer_Reset(dbuf);
}
/* translate date */
dt=AB_Transaction_GetDate(t);
if (dt) {
rv=GWEN_Date_toStringWithTemplate(dt, I18N("DD.MM.YYYY"), dbuf);
if (rv>=0) {
GWEN_DB_SetCharValue(dbTransaction, GWEN_DB_FLAGS_OVERWRITE_VARS, "dateAsString", GWEN_Buffer_GetStart(dbuf));
}
GWEN_Buffer_Reset(dbuf);
}
/* translate valuta date */
dt=AB_Transaction_GetValutaDate(t);
if (dt) {
rv=GWEN_Date_toStringWithTemplate(dt, I18N("DD.MM.YYYY"), dbuf);
if (rv>=0) {
GWEN_DB_SetCharValue(dbTransaction, GWEN_DB_FLAGS_OVERWRITE_VARS, "valutaDateAsString", GWEN_Buffer_GetStart(dbuf));
}
GWEN_Buffer_Reset(dbuf);
}
/* translate date or valuta date */
dt=AB_Transaction_GetDate(t);
if (dt==NULL)
dt=AB_Transaction_GetValutaDate(t);
if (dt) {
rv=GWEN_Date_toStringWithTemplate(dt, I18N("DD.MM.YYYY"), dbuf);
if (rv>=0) {
GWEN_DB_SetCharValue(dbTransaction, GWEN_DB_FLAGS_OVERWRITE_VARS, "dateOrValutaDateAsString",
GWEN_Buffer_GetStart(dbuf));
}
GWEN_Buffer_Reset(dbuf);
}
/* translate purpose into "purposeLine" entries */
s=AB_Transaction_GetPurpose(t);
if (s && *s) {
GWEN_STRINGLIST *stringList;
GWEN_DB_DeleteVar(dbTransaction, "purposeLine");
stringList=GWEN_StringList_fromString(s, "\n", 0);
if (stringList) {
GWEN_STRINGLISTENTRY *sEntry;
sEntry=GWEN_StringList_FirstEntry(stringList);
while (sEntry) {
const char *entryString;
entryString=GWEN_StringListEntry_Data(sEntry);
if (entryString && *entryString) {
GWEN_DB_SetCharValue(dbTransaction, 0, "purposeLine", entryString);
}
sEntry=GWEN_StringListEntry_Next(sEntry);
}
}
}
rv=GWEN_Text_ReplaceVars(tmplString, dbuf, _replaceVarsCb, dbTransaction);
if (rv<0) {
DBG_ERROR(0, "Error on GWEN_DB_ReplaceVars(): %d", rv);
GWEN_DB_Group_free(dbTransaction);
return rv;
}
GWEN_DB_Group_free(dbTransaction);
return 0;
}
int GWENHYWFAR_CB _replaceVarsCb(void *cbPtr, const char *name, int index, int maxLen, GWEN_BUFFER *dstBuf)
{
GWEN_DB_NODE *db;
db=(GWEN_DB_NODE *) cbPtr;
if (strcasecmp(name, "purposeInOneLine")==0) {
const char *s;
s=GWEN_DB_GetCharValue(db, "purpose", 0, NULL);
if (!(s && *s))
return GWEN_ERROR_NO_DATA;
else {
char *sCopy;
sCopy=strdup(s);
assert(sCopy);
if (sCopy==NULL)
return GWEN_ERROR_MEMORY_FULL;
else {
char *p;
/* replace control characters */
p=sCopy;
while (*p) {
if (iscntrl(*p))
*p=' ';
p++;
} /* while */
GWEN_Buffer_AppendString(dstBuf, sCopy);
free(sCopy);
return 0;
}
}
}
return GWEN_DB_WriteVarValueToBuffer(db, name, index, dstBuf);
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/request.c 0000664 0001750 0001750 00000040041 14116665246 017542 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
/* tool includes */
#include "globals.h"
/* aqbanking includes */
#include
/* gwenhywfar includes */
#include
/* forward declarations */
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
static int _createAndAndSendRequests(AB_BANKING *ab,
AB_ACCOUNT_SPEC_LIST *asl,
const GWEN_DATE *fromDate,
const GWEN_DATE *toDate,
uint32_t requestFlags,
const char *ctxFile,
uint32_t number);
int request(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
AB_ACCOUNT_SPEC_LIST *al=NULL;
uint32_t requestFlags=0;
uint32_t number;
const char *s;
int rv;
const char *ctxFile;
GWEN_DATE *fromDate=0;
GWEN_DATE *toDate=0;
/* parse command line */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return 1;
}
/* read arguments */
if (GWEN_DB_GetIntValue(db, "reqTrans", 0, 0))
requestFlags|=AQBANKING_TOOL_REQUEST_STATEMENTS;
if (GWEN_DB_GetIntValue(db, "reqBalance", 0, 0))
requestFlags|=AQBANKING_TOOL_REQUEST_BALANCE;
if (GWEN_DB_GetIntValue(db, "reqSepaSto", 0, 0))
requestFlags|=AQBANKING_TOOL_REQUEST_SEPASTO;
if (GWEN_DB_GetIntValue(db, "reqEStatements", 0, 0))
requestFlags|=AQBANKING_TOOL_REQUEST_ESTATEMENTS;
if (GWEN_DB_GetIntValue(db, "reqDepot", 0, 0))
requestFlags|=AQBANKING_TOOL_REQUEST_DEPOT;
if (GWEN_DB_GetIntValue(db, "ignoreUnsupported", 0, 0))
requestFlags|=AQBANKING_TOOL_REQUEST_IGNORE_UNSUP;
if (GWEN_DB_GetIntValue(db, "acknowledge", 0, 0))
requestFlags|=AQBANKING_TOOL_REQUEST_ACKNOWLEDGE;
/* read command line arguments */
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
s=GWEN_DB_GetCharValue(db, "fromDate", 0, 0);
if (s && *s) {
fromDate=GWEN_Date_fromStringWithTemplate(s, "YYYYMMDD");
if (fromDate==NULL) {
DBG_ERROR(0, "Invalid fromdate value \"%s\"", s);
return 1;
}
}
s=GWEN_DB_GetCharValue(db, "toDate", 0, 0);
if (s && *s) {
toDate=GWEN_Date_fromStringWithTemplate(s, "YYYYMMDD");
if (toDate==NULL) {
DBG_ERROR(0, "Invalid todate value \"%s\"", s);
GWEN_Date_free(fromDate);
return 1;
}
}
number = GWEN_DB_GetIntValue(db, "number", 0, 0);
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
GWEN_Date_free(toDate);
GWEN_Date_free(fromDate);
return 2;
}
/* get accounts */
al=getSelectedAccounts(ab, db);
if (al==NULL) {
DBG_ERROR(0, "No matching accounts");
GWEN_Date_free(toDate);
GWEN_Date_free(fromDate);
AB_Banking_Fini(ab);
return 2;
}
/* create requests for every account spec and send them */
rv=_createAndAndSendRequests(ab, al, fromDate, toDate, requestFlags, ctxFile, number);
if (rv) {
AB_AccountSpec_List_free(al);
GWEN_Date_free(toDate);
GWEN_Date_free(fromDate);
AB_Banking_Fini(ab);
return 3;
}
/* cleanup */
AB_AccountSpec_List_free(al);
GWEN_Date_free(toDate);
GWEN_Date_free(fromDate);
/* deinit */
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
int _createAndAndSendRequests(AB_BANKING *ab,
AB_ACCOUNT_SPEC_LIST *asl,
const GWEN_DATE *fromDate,
const GWEN_DATE *toDate,
uint32_t requestFlags,
const char *ctxFile,
uint32_t number)
{
AB_ACCOUNT_SPEC *as;
AB_TRANSACTION_LIST2 *jobList;
/* sample jobs */
jobList=AB_Transaction_List2_new();
as=AB_AccountSpec_List_First(asl);
while (as) {
int rv;
rv=createAndAddRequests(ab, jobList, as, fromDate, toDate, requestFlags, number);
if (rv) {
AB_Transaction_List2_free(jobList);
return 3;
}
/* next */
as=AB_AccountSpec_List_Next(as);
} /* while (as) */
/* send jobs */
if (AB_Transaction_List2_GetSize(jobList)) {
int rv;
rv=execBankingJobs(ab, jobList, ctxFile);
if (rv) {
fprintf(stderr, "Error on sendCommands (%d)\n", rv);
AB_Transaction_List2_free(jobList);
return 3;
}
}
else {
DBG_ERROR(0, "No requests created");
AB_Transaction_List2_free(jobList);
return 4;
}
AB_Transaction_List2_free(jobList);
return 0;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"backendName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"backend", /* long option */
"Specify the name of the backend for your account", /* short description */
"Specify the name of the backend for your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"country", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"country", /* long option */
"Specify the country for your account (e.g. \"de\")", /* short description */
"Specify the country for your account (e.g. \"de\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"Specify the bank code", /* short description */
"Specify the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"Specify the account number", /* short description */
"Specify the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"at", /* short option */
"accounttype", /* long option */
"Specify the type of your account", /* short description */
"Specify the type of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"reqTrans", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"transactions", /* long option */
"Request transactions", /* short description */
"Request transactions" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"reqBalance", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"balance", /* long option */
"Request balance", /* short description */
"Request balance" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"reqSto", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"sto", /* long option */
"Request standing orders", /* short description */
"Request standing orders" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"reqSepaSto", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"sepaSto", /* long option */
"Request SEPA standing orders", /* short description */
"Request SEPA standing orders" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"reqEStatements", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"estatements", /* long option */
"Request electronic statements", /* short description */
"Request electronic statements" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"reqDepot", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"depot", /* long option */
"Request depot (security list)", /* short description */
"Request depot (security list)" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"acknowledge", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"acknowledge", /* long option */
"Acknowledge jobs", /* short description */
"Acknowledge each job where the bank supports." /* long description */
},
{
0,
GWEN_ArgsType_Int,
"ignoreUnsupported",
0,
1,
0,
"ignoreUnsupported",
"let AqBanking ignore unsupported requests for accounts",
"let AqBanking ignore unsupported requests for accounts",
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"fromDate", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"fromdate", /* long option */
"Specify the first date for which transactions are wanted (YYYYMMDD)", /* short */
"Specify the first date for which transactions are wanted (YYYYMMDD)" /* long */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"toDate", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"todate", /* long option */
"Specify the last date for which transactions are wanted (YYYYMMDD)", /* short */
"Specify the last date for which transactions are wanted (YYYYMMDD)" /* long */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"number", /* name */
0, /* minnum */
0, /* maxnum */
0, /* short option */
"docnumber", /* long option */
"Document number", /* short description */
"Fetch a specific document number" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/globals.h 0000664 0001750 0001750 00000014734 14275012617 017506 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef AQB_TOOL_GLOBALS_H
#define AQB_TOOL_GLOBALS_H
#include
#include
#include
#include
#include
#include
#include
#include
#define I18N(msg) GWEN_I18N_Translate(PACKAGE, msg)
#define I18S(msg) msg
typedef enum {
AQBANKING_TOOL_SEPA_TRANSFERS,
AQBANKING_TOOL_SEPA_DEBITNOTES
} AQBANKING_TOOL_MULTISEPA_TYPE;
#define AQBANKING_TOOL_LIMITFLAGS_PURPOSE 0x0001
#define AQBANKING_TOOL_LIMITFLAGS_NAMES 0x0002
#define AQBANKING_TOOL_LIMITFLAGS_SEQUENCE 0x0004
#define AQBANKING_TOOL_LIMITFLAGS_DATE 0x0008
#define AQBANKING_TOOL_LIMITFLAGS_SEPA 0x0010
#define AQBANKING_TOOL_REQUEST_BALANCE 0x0001
#define AQBANKING_TOOL_REQUEST_STATEMENTS 0x0002
#define AQBANKING_TOOL_REQUEST_SEPASTO 0x0004
#define AQBANKING_TOOL_REQUEST_ESTATEMENTS 0x0008
#define AQBANKING_TOOL_REQUEST_DEPOT 0x0010
#define AQBANKING_TOOL_REQUEST_ACKNOWLEDGE 0x4000
#define AQBANKING_TOOL_REQUEST_IGNORE_UNSUP 0x8000
/* ========================================================================================================================
* util.c
* ========================================================================================================================
*/
int readContext(const char *ctxFile, AB_IMEXPORTER_CONTEXT **pCtx, int mustExist);
int writeContext(const char *ctxFile, const AB_IMEXPORTER_CONTEXT *ctx);
AB_TRANSACTION *mkSepaTransfer(GWEN_DB_NODE *db, int cmd);
AB_TRANSACTION *mkSepaDebitNote(GWEN_DB_NODE *db, int cmd);
/**
* Get selected AqBanking account sepcs matching the user given parameters in command line db.
*/
AB_ACCOUNT_SPEC_LIST *getSelectedAccounts(AB_BANKING *ab, GWEN_DB_NODE *db);
/**
* Return a single account spec matching the user given parameters in command line db.
* If multiple candidates match NULL will be returned
*/
AB_ACCOUNT_SPEC *getSingleSelectedAccount(AB_BANKING *ab, GWEN_DB_NODE *db);
AB_ACCOUNT_SPEC *pickAccountSpecForArgs(const AB_ACCOUNT_SPEC_LIST *accountSpecList, GWEN_DB_NODE *db);
AB_ACCOUNT_SPEC *pickAccountSpecForTransaction(const AB_ACCOUNT_SPEC_LIST *as, const AB_TRANSACTION *t);
int checkTransactionIbans(const AB_TRANSACTION *t);
int checkTransactionLimits(const AB_TRANSACTION *t, const AB_TRANSACTION_LIMITS *lim, uint32_t flags);
int addTransactionToContextFile(const AB_TRANSACTION *t, const char *ctxFile);
int writeJobsAsContextFile(AB_TRANSACTION_LIST2 *tList, const char *ctxFile);
int execBankingJobs(AB_BANKING *ab, AB_TRANSACTION_LIST2 *tList, const char *ctxFile);
int execSingleBankingJob(AB_BANKING *ab, AB_TRANSACTION *t, const char *ctxFile);
AB_TRANSACTION *createAndCheckRequest(AB_BANKING *ab, AB_ACCOUNT_SPEC *as, AB_TRANSACTION_COMMAND cmd);
int createAndAddRequest(AB_BANKING *ab,
AB_TRANSACTION_LIST2 *tList,
AB_ACCOUNT_SPEC *as,
AB_TRANSACTION_COMMAND cmd,
const GWEN_DATE *fromDate,
const GWEN_DATE *toDate,
int ignoreUnsupported,
AB_TRANSACTION_ACK ackMethod,
uint32_t number);
/**
* Create requests (getBalance, getStatements etc.) according to the given flags.
*
* @return 0 if ok, !=0 on error
*/
int createAndAddRequests(AB_BANKING *ab,
AB_TRANSACTION_LIST2 *tList,
AB_ACCOUNT_SPEC *as,
const GWEN_DATE *fromDate,
const GWEN_DATE *toDate,
uint32_t requestFlags,
uint32_t number);
int addTransactionToBufferByTemplate(const AB_TRANSACTION *t, const char *tmplString, GWEN_BUFFER *dbuf);
/* ========================================================================================================================
* Commands
* ========================================================================================================================
*/
int addSepaDebitNote(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv, int use_flash_debitnote);
int addTransaction(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int chkAcc(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int chkIban(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int control(AB_BANKING *ab, const char *ctrlBackend, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int fillGaps(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int import(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int exportCtx(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int listAccs(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int listBal(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int listTrans(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int listDoc(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int getDoc(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int listProfiles(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int request(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int sepaDebitNote(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv, int use_flash_debitnote);
int sepaMultiJobs(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv,
AQBANKING_TOOL_MULTISEPA_TYPE multisepa_type);
int sepaRecurTransfer(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int sepaTransfer(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int sepaInternalTransfer(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int updateConf(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int versions(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int showAccountCommands(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
#endif
aqbanking-6.7.7beta/src/tools/aqbanking-cli/aqofxconnect-tool.c 0000664 0001750 0001750 00000017444 14377702650 021530 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "globals.h"
static int doControl(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int main(int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
AB_BANKING *ab;
GWEN_GUI *gui;
int nonInteractive=0;
int acceptValidCerts=0;
const char *pinFile;
const char *cfgDir;
const char *s;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"cfgdir", /* name */
0, /* minnum */
1, /* maxnum */
"D", /* short option */
"cfgdir", /* long option */
I18S("Specify the configuration folder"),
I18S("Specify the configuration folder")
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"nonInteractive", /* name */
0, /* minnum */
1, /* maxnum */
"n", /* short option */
"noninteractive", /* long option */
"Select non-interactive mode",/* short description */
"Select non-interactive mode.\n" /* long description */
"This automatically returns a confirmative answer to any non-critical\n"
"message."
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"acceptValidCerts", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"acceptvalidcerts", /* long option */
"Automatically accept all valid TLS certificate",
"Automatically accept all valid TLS certificate"
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"charset", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"charset", /* long option */
"Specify the output character set", /* short description */
"Specify the output character set" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"pinfile", /* name */
0, /* minnum */
1, /* maxnum */
"P", /* short option */
"pinfile", /* long option */
"Specify the PIN file", /* short description */
"Specify the PIN file" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help",
I18S("Show this help screen. For help on commands, "
"run aqbanking-cli --help."),
I18S("Show this help screen. For help on commands, run aqbanking-cli --help.")
}
};
rv=GWEN_Init();
if (rv) {
fprintf(stderr, "ERROR: Unable to init Gwen.\n");
exit(2);
}
GWEN_Logger_Open(0, "aqofxconnect-tool", 0,
GWEN_LoggerType_Console,
GWEN_LoggerFacility_User);
GWEN_Logger_SetLevel(0, GWEN_LoggerLevel_Warning);
rv=GWEN_I18N_BindTextDomain_Dir(PACKAGE, LOCALEDIR);
if (rv) {
DBG_ERROR(0, "Could not bind textdomain (%d)", rv);
}
else {
rv=GWEN_I18N_BindTextDomain_Codeset(PACKAGE, "UTF-8");
if (rv) {
DBG_ERROR(0, "Could not set codeset (%d)", rv);
}
}
db=GWEN_DB_Group_new("arguments");
rv=GWEN_Args_Check(argc, argv, 1,
GWEN_ARGS_MODE_ALLOW_FREEPARAM |
GWEN_ARGS_MODE_STOP_AT_FREEPARAM,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments main\n");
GWEN_DB_Group_free(db);
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
GWEN_Buffer_AppendString(ubuf, I18N("This is version "));
GWEN_Buffer_AppendString(ubuf, AQBANKING_VERSION_STRING "\n");
GWEN_Buffer_AppendString(ubuf,
I18N("Usage: "));
GWEN_Buffer_AppendString(ubuf, argv[0]);
GWEN_Buffer_AppendString(ubuf,
I18N(" [GLOBAL OPTIONS] COMMAND "
"[LOCAL OPTIONS]\n"));
GWEN_Buffer_AppendString(ubuf,
I18N("\nGlobal Options:\n"));
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
GWEN_DB_Group_free(db);
return 1;
}
GWEN_Buffer_AppendString(ubuf, "\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
argc=0; /* only show help */
}
if (rv>1) {
argc-=rv-1;
argv+=rv-1;
}
else {
/* no command */
argc=0;
}
nonInteractive=GWEN_DB_GetIntValue(db, "nonInteractive", 0, 0);
acceptValidCerts=GWEN_DB_GetIntValue(db, "acceptValidCerts", 0, 0);
cfgDir=GWEN_DB_GetCharValue(db, "cfgdir", 0, 0);
gui=GWEN_Gui_CGui_new();
s=GWEN_DB_GetCharValue(db, "charset", 0, NULL);
if (s && *s)
GWEN_Gui_SetCharSet(gui, s);
if (nonInteractive)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
if (acceptValidCerts)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
pinFile=GWEN_DB_GetCharValue(db, "pinFile", 0, NULL);
if (pinFile) {
GWEN_DB_NODE *dbPins;
dbPins=GWEN_DB_Group_new("pins");
if (GWEN_DB_ReadFile(dbPins, pinFile,
GWEN_DB_FLAGS_DEFAULT |
GWEN_PATH_FLAGS_CREATE_GROUP)) {
fprintf(stderr, "Error reading pinfile \"%s\"\n", pinFile);
GWEN_DB_Group_free(dbPins);
GWEN_DB_Group_free(db);
return 2;
}
GWEN_Gui_SetPasswordDb(gui, dbPins, 1);
}
GWEN_Gui_SetGui(gui);
ab=AB_Banking_new("aqbanking-cli", cfgDir, 0);
AB_Gui_Extend(gui, ab);
rv=doControl(ab, db, argc, argv);
GWEN_DB_Group_free(db);
return rv;
}
int doControl(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
int rv;
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
rv=AB_Banking_ProviderControl(ab, "aqofxconnect", argc, argv);
if (rv!=0) {
DBG_ERROR(0, "Error calling control function (%d)", rv);
AB_Banking_Fini(ab);
return 4;
}
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/aqebics-tool.c 0000664 0001750 0001750 00000017447 14043610745 020443 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "globals.h"
static int doControl(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv);
int main(int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
AB_BANKING *ab;
GWEN_GUI *gui;
int nonInteractive=0;
int acceptValidCerts=0;
const char *pinFile;
const char *cfgDir;
const char *s;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"cfgdir", /* name */
0, /* minnum */
1, /* maxnum */
"D", /* short option */
"cfgdir", /* long option */
I18S("Specify the configuration folder"),
I18S("Specify the configuration folder")
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"nonInteractive", /* name */
0, /* minnum */
1, /* maxnum */
"n", /* short option */
"noninteractive", /* long option */
"Select non-interactive mode",/* short description */
"Select non-interactive mode.\n" /* long description */
"This automatically returns a confirmative answer to any non-critical\n"
"message."
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"acceptValidCerts", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"acceptvalidcerts", /* long option */
"Automatically accept all valid TLS certificate",
"Automatically accept all valid TLS certificate"
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"charset", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"charset", /* long option */
"Specify the output character set", /* short description */
"Specify the output character set" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"pinfile", /* name */
0, /* minnum */
1, /* maxnum */
"P", /* short option */
"pinfile", /* long option */
"Specify the PIN file", /* short description */
"Specify the PIN file" /* long description */
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help",
I18S("Show this help screen. For help on commands, "
"run aqbanking-cli --help."),
I18S("Show this help screen. For help on commands, run aqbanking-cli --help.")
}
};
rv=GWEN_Init();
if (rv) {
fprintf(stderr, "ERROR: Unable to init Gwen.\n");
exit(2);
}
GWEN_Logger_Open(0, "aqebics-tool", 0,
GWEN_LoggerType_Console,
GWEN_LoggerFacility_User);
GWEN_Logger_SetLevel(0, GWEN_LoggerLevel_Warning);
#if 0
rv=GWEN_I18N_BindTextDomain_Dir(PACKAGE, LOCALEDIR);
if (rv) {
DBG_ERROR(0, "Could not bind textdomain (%d)", rv);
}
else {
rv=GWEN_I18N_BindTextDomain_Codeset(PACKAGE, "UTF-8");
if (rv) {
DBG_ERROR(0, "Could not set codeset (%d)", rv);
}
}
#endif
db=GWEN_DB_Group_new("arguments");
rv=GWEN_Args_Check(argc, argv, 1,
GWEN_ARGS_MODE_ALLOW_FREEPARAM |
GWEN_ARGS_MODE_STOP_AT_FREEPARAM,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments main\n");
GWEN_DB_Group_free(db);
return 1;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
GWEN_Buffer_AppendString(ubuf, I18N("This is version "));
GWEN_Buffer_AppendString(ubuf, AQBANKING_VERSION_STRING "\n");
GWEN_Buffer_AppendString(ubuf,
I18N("Usage: "));
GWEN_Buffer_AppendString(ubuf, argv[0]);
GWEN_Buffer_AppendString(ubuf,
I18N(" [GLOBAL OPTIONS] COMMAND "
"[LOCAL OPTIONS]\n"));
GWEN_Buffer_AppendString(ubuf,
I18N("\nGlobal Options:\n"));
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
GWEN_DB_Group_free(db);
return 1;
}
GWEN_Buffer_AppendString(ubuf, "\n");
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
argc=0; /* only show help */
}
if (rv>1) {
argc-=rv-1;
argv+=rv-1;
}
else {
/* no command */
argc=0;
}
nonInteractive=GWEN_DB_GetIntValue(db, "nonInteractive", 0, 0);
acceptValidCerts=GWEN_DB_GetIntValue(db, "acceptValidCerts", 0, 0);
cfgDir=GWEN_DB_GetCharValue(db, "cfgdir", 0, 0);
gui=GWEN_Gui_CGui_new();
s=GWEN_DB_GetCharValue(db, "charset", 0, NULL);
if (s && *s)
GWEN_Gui_SetCharSet(gui, s);
if (nonInteractive)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_NONINTERACTIVE);
if (acceptValidCerts)
GWEN_Gui_AddFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
else
GWEN_Gui_SubFlags(gui, GWEN_GUI_FLAGS_ACCEPTVALIDCERTS);
pinFile=GWEN_DB_GetCharValue(db, "pinFile", 0, NULL);
if (pinFile) {
GWEN_DB_NODE *dbPins;
dbPins=GWEN_DB_Group_new("pins");
if (GWEN_DB_ReadFile(dbPins, pinFile,
GWEN_DB_FLAGS_DEFAULT |
GWEN_PATH_FLAGS_CREATE_GROUP)) {
fprintf(stderr, "Error reading pinfile \"%s\"\n", pinFile);
GWEN_DB_Group_free(dbPins);
GWEN_DB_Group_free(db);
return 2;
}
GWEN_Gui_SetPasswordDb(gui, dbPins, 1);
}
GWEN_Gui_SetGui(gui);
ab=AB_Banking_new("aqbanking-cli", cfgDir, 0);
AB_Gui_Extend(gui, ab);
rv=doControl(ab, db, argc, argv);
GWEN_DB_Group_free(db);
return rv;
}
int doControl(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
int rv;
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
rv=AB_Banking_ProviderControl(ab, "aqebics", argc, argv);
if (rv!=0) {
DBG_ERROR(0, "Error calling control function (%d)", rv);
AB_Banking_Fini(ab);
return 4;
}
rv=AB_Banking_Fini(ab);
if (rv) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
return 5;
}
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/sepadebitnote.c 0000664 0001750 0001750 00000036535 14043610745 020706 0000000 0000000 /***************************************************************************
begin : Sat Dec 28 2013
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
/* tool includes */
#include "globals.h"
/* aqbanking includes */
#include
/* gwenhywfar includes */
#include
/* forward declarations */
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
int sepaDebitNote(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv, int use_flash_debitnote)
{
GWEN_DB_NODE *db;
AB_ACCOUNT_SPEC *as;
int rv;
int rvExec=0;
const char *ctxFile;
AB_TRANSACTION *t;
int noCheck;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read arguments */
noCheck=GWEN_DB_GetIntValue(db, "noCheck", 0, 0);
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* get account to work with */
as=getSingleSelectedAccount(ab, db);
if (as==NULL) {
AB_Banking_Fini(ab);
return 2;
}
/* create transaction from arguments */
t=mkSepaDebitNote(db, use_flash_debitnote?AB_Transaction_CommandSepaFlashDebitNote:AB_Transaction_CommandSepaDebitNote);
if (t==NULL) {
DBG_ERROR(0, "Could not create SEPA transaction from arguments");
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return 2;
}
AB_Transaction_SetType(t, AB_Transaction_TypeDebitNote);
AB_Transaction_SetUniqueAccountId(t, AB_AccountSpec_GetUniqueId(as));
/* set local account info from selected AB_ACCOUNT_SPEC */
AB_Banking_FillTransactionFromAccountSpec(t, as);
/* some checks */
rv=checkTransactionIbans(t);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
/* probably check against transaction limits */
if (!noCheck) {
rv=checkTransactionLimits(t,
AB_AccountSpec_GetTransactionLimitsForCommand(as, AB_Transaction_GetCommand(t)),
AQBANKING_TOOL_LIMITFLAGS_PURPOSE |
AQBANKING_TOOL_LIMITFLAGS_NAMES |
AQBANKING_TOOL_LIMITFLAGS_SEQUENCE |
AQBANKING_TOOL_LIMITFLAGS_DATE |
AQBANKING_TOOL_LIMITFLAGS_SEPA);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
}
AB_AccountSpec_free(as);
/* execute job */
rv=execSingleBankingJob(ab, t, ctxFile);
if (rv) {
fprintf(stderr, "Error on executeQueue (%d)\n", rv);
rvExec=rv;
}
/* cleanup */
AB_Transaction_free(t);
/* that's it */
rv=AB_Banking_Fini(ab);
if (rv<0) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
if (rvExec==0)
rvExec=5;
}
return rvExec;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"backendName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"backend", /* long option */
"Specify the name of the backend for your account", /* short description */
"Specify the name of the backend for your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"country", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"country", /* long option */
"Specify the country for your account (e.g. \"de\")", /* short description */
"Specify the country for your account (e.g. \"de\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"overwrite the bank code", /* short description */
"overwrite the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"overwrite the account number", /* short description */
"overwrite the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"at", /* short option */
"accounttype", /* long option */
"Specify the account type", /* short description */
"Specify the account type" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteBIC", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"rbic", /* long option */
"Specify the remote SWIFT BIC",/* short description */
"Specify the remote SWIFT BIC" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteIBAN", /* name */
1, /* minnum */
1, /* maxnum */
0, /* short option */
"riban", /* long option */
"Specify the remote IBAN", /* short description */
"Specify the remote IBAN" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"value", /* name */
1, /* minnum */
1, /* maxnum */
"v", /* short option */
"value", /* long option */
"Specify the transfer amount", /* short description */
"Specify the transfer amount" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"name", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"name", /* long option */
"Specify your name", /* short description */
"Specify your name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteName", /* name */
1, /* minnum */
2, /* maxnum */
0, /* short option */
"rname", /* long option */
"Specify the remote name", /* short description */
"Specify the remote name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"purpose", /* name */
1, /* minnum */
6, /* maxnum */
"p", /* short option */
"purpose", /* long option */
"Specify the purpose", /* short description */
"Specify the purpose" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"endToEndReference", /* name */
0, /* minnum */
1, /* maxnum */
"E", /* short option */
"endtoendid", /* long option */
"Specify the SEPA End-to-end-reference", /* short description */
"Specify the SEPA End-to-end-reference" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"executionDate", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"execdate", /* long option */
"Specify the execution date (YYYYMMDD)", /* short */
"Specify the execution date (YYYYMMDD)" /* long */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"creditorSchemeId", /* name */
1, /* minnum */
1, /* maxnum */
0, /* short option */
"creditorSchemeId", /* long option */
"Specify the creditor scheme id (\"Glaeubiger-ID\")", /* short description */
"Specify the creditor scheme id (\"Glaeubiger-ID\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"mandateId", /* name */
1, /* minnum */
1, /* maxnum */
0, /* short option */
"mandateId", /* long option */
"Specify the mandate id", /* short description */
"Specify the mandate id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"mandateDate", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"mandateDate", /* long option */
"Specify the date when the mandate was issued", /* short description */
"Specify the date when the mandate was issued" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"sequenceType", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"sequenceType", /* long option */
"Specify the sequence type (once, first, following)", /* short description */
"Specify the sequence type (once, first, following)" /* long description */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"noCheck", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"noCheck", /* long option */
"Dont check transaction limits", /* short description */
"Dont check transaction limits"
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/versions.c 0000664 0001750 0001750 00000002352 14043610745 017716 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "globals.h"
#include
#include
int versions(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
int vmajor, vminor, vpatchLevel, vbuild;
fprintf(stdout, "Versions:\n");
fprintf(stdout, " AqBanking-CLI: %s\n",
AQBANKING_CLI_VERSION_STRING);
GWEN_Version(&vmajor,
&vminor,
&vpatchLevel,
&vbuild);
fprintf(stdout, " Gwenhywfar : %d.%d.%d.%d\n",
vmajor, vminor, vpatchLevel, vbuild);
AB_Banking_GetVersion(&vmajor,
&vminor,
&vpatchLevel,
&vbuild);
fprintf(stdout, " AqBanking : %d.%d.%d.%d\n",
vmajor, vminor, vpatchLevel, vbuild);
return 0;
}
aqbanking-6.7.7beta/src/tools/aqbanking-cli/Makefile.in 0000644 0001750 0001750 00000105156 15075177042 017757 0000000 0000000 # Makefile.in generated by automake 1.16.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
#EXTRA_DIST=
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
bin_PROGRAMS = aqbanking-cli$(EXEEXT) aqhbci-tool4$(EXEEXT) \
aqpaypal-tool$(EXEEXT) aqebics-tool$(EXEEXT) \
aqofxconnect-tool$(EXEEXT)
@IS_WINDOWS_TRUE@am__append_1 = -mconsole
@IS_WINDOWS_TRUE@am__append_2 = -mconsole
@IS_WINDOWS_TRUE@am__append_3 = -mconsole
@IS_WINDOWS_TRUE@am__append_4 = -mconsole
@IS_WINDOWS_TRUE@am__append_5 = -mconsole
subdir = src/tools/aqbanking-cli
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx_compile_warn.m4 \
$(top_srcdir)/m4/as-scrub-include.m4 \
$(top_srcdir)/m4/distri.m4 $(top_srcdir)/m4/gwenhywfar.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/os.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
$(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__installdirs = "$(DESTDIR)$(bindir)"
PROGRAMS = $(bin_PROGRAMS)
am_aqbanking_cli_OBJECTS = main.$(OBJEXT) addsepadebitnote.$(OBJEXT) \
addtransaction.$(OBJEXT) chkiban.$(OBJEXT) fillgaps.$(OBJEXT) \
import.$(OBJEXT) export.$(OBJEXT) listaccs.$(OBJEXT) \
listbal.$(OBJEXT) listprofiles.$(OBJEXT) listtrans.$(OBJEXT) \
listdoc.$(OBJEXT) getdoc.$(OBJEXT) request.$(OBJEXT) \
util.$(OBJEXT) versions.$(OBJEXT) sepatransfer.$(OBJEXT) \
sepainternaltransfer.$(OBJEXT) sepadebitnote.$(OBJEXT) \
sepamultijobs.$(OBJEXT) separecurtransfer.$(OBJEXT) \
updateconf.$(OBJEXT) control.$(OBJEXT) accountcmds.$(OBJEXT)
aqbanking_cli_OBJECTS = $(am_aqbanking_cli_OBJECTS)
am__DEPENDENCIES_1 =
aqbanking_cli_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
aqbanking_cli_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(aqbanking_cli_LDFLAGS) $(LDFLAGS) -o $@
am_aqebics_tool_OBJECTS = aqebics-tool.$(OBJEXT)
aqebics_tool_OBJECTS = $(am_aqebics_tool_OBJECTS)
aqebics_tool_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
aqebics_tool_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(aqebics_tool_LDFLAGS) $(LDFLAGS) -o $@
am_aqhbci_tool4_OBJECTS = aqhbci-tool.$(OBJEXT)
aqhbci_tool4_OBJECTS = $(am_aqhbci_tool4_OBJECTS)
aqhbci_tool4_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
aqhbci_tool4_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(aqhbci_tool4_LDFLAGS) $(LDFLAGS) -o $@
am_aqofxconnect_tool_OBJECTS = aqofxconnect-tool.$(OBJEXT)
aqofxconnect_tool_OBJECTS = $(am_aqofxconnect_tool_OBJECTS)
aqofxconnect_tool_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
aqofxconnect_tool_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
$(AM_CFLAGS) $(CFLAGS) $(aqofxconnect_tool_LDFLAGS) $(LDFLAGS) \
-o $@
am_aqpaypal_tool_OBJECTS = aqpaypal-tool.$(OBJEXT)
aqpaypal_tool_OBJECTS = $(am_aqpaypal_tool_OBJECTS)
aqpaypal_tool_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1)
aqpaypal_tool_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(aqpaypal_tool_LDFLAGS) $(LDFLAGS) -o $@
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/accountcmds.Po \
./$(DEPDIR)/addsepadebitnote.Po ./$(DEPDIR)/addtransaction.Po \
./$(DEPDIR)/aqebics-tool.Po ./$(DEPDIR)/aqhbci-tool.Po \
./$(DEPDIR)/aqofxconnect-tool.Po ./$(DEPDIR)/aqpaypal-tool.Po \
./$(DEPDIR)/chkiban.Po ./$(DEPDIR)/control.Po \
./$(DEPDIR)/export.Po ./$(DEPDIR)/fillgaps.Po \
./$(DEPDIR)/getdoc.Po ./$(DEPDIR)/import.Po \
./$(DEPDIR)/listaccs.Po ./$(DEPDIR)/listbal.Po \
./$(DEPDIR)/listdoc.Po ./$(DEPDIR)/listprofiles.Po \
./$(DEPDIR)/listtrans.Po ./$(DEPDIR)/main.Po \
./$(DEPDIR)/request.Po ./$(DEPDIR)/sepadebitnote.Po \
./$(DEPDIR)/sepainternaltransfer.Po \
./$(DEPDIR)/sepamultijobs.Po ./$(DEPDIR)/separecurtransfer.Po \
./$(DEPDIR)/sepatransfer.Po ./$(DEPDIR)/updateconf.Po \
./$(DEPDIR)/util.Po ./$(DEPDIR)/versions.Po
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(aqbanking_cli_SOURCES) $(aqebics_tool_SOURCES) \
$(aqhbci_tool4_SOURCES) $(aqofxconnect_tool_SOURCES) \
$(aqpaypal_tool_SOURCES)
DIST_SOURCES = $(aqbanking_cli_SOURCES) $(aqebics_tool_SOURCES) \
$(aqhbci_tool4_SOURCES) $(aqofxconnect_tool_SOURCES) \
$(aqpaypal_tool_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
HEADERS = $(noinst_HEADERS)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
ADD_ACLOCAL_FLAGS = @ADD_ACLOCAL_FLAGS@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AQBANKING_CLI_VERSION_STRING = @AQBANKING_CLI_VERSION_STRING@
AQBANKING_FINTS_VERSION_STRING = @AQBANKING_FINTS_VERSION_STRING@
AQBANKING_SO_AGE = @AQBANKING_SO_AGE@
AQBANKING_SO_CURRENT = @AQBANKING_SO_CURRENT@
AQBANKING_SO_EFFECTIVE = @AQBANKING_SO_EFFECTIVE@
AQBANKING_SO_REVISION = @AQBANKING_SO_REVISION@
AQBANKING_VERSION_BUILD = @AQBANKING_VERSION_BUILD@
AQBANKING_VERSION_FULL_STRING = @AQBANKING_VERSION_FULL_STRING@
AQBANKING_VERSION_MAJOR = @AQBANKING_VERSION_MAJOR@
AQBANKING_VERSION_MINOR = @AQBANKING_VERSION_MINOR@
AQBANKING_VERSION_PATCHLEVEL = @AQBANKING_VERSION_PATCHLEVEL@
AQBANKING_VERSION_RELEASE_STRING = @AQBANKING_VERSION_RELEASE_STRING@
AQBANKING_VERSION_STRING = @AQBANKING_VERSION_STRING@
AQBANKING_VERSION_TAG = @AQBANKING_VERSION_TAG@
AQEBICS_CFLAGS = @AQEBICS_CFLAGS@
AQEBICS_LIBS = @AQEBICS_LIBS@
AR = @AR@
AS = @AS@
ASTYLE = @ASTYLE@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CSCOPE = @CSCOPE@
CTAGS = @CTAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DATETIME = @DATETIME@
#-Wl,-static
DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\" \
-DAQBANKING_CLI_VERSION_STRING=\"@AQBANKING_CLI_VERSION_STRING@\"
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN_DEFINE = @DOXYGEN_DEFINE@
DOXYGEN_EXCLUDE_PATTERNS = @DOXYGEN_EXCLUDE_PATTERNS@
DOXYGEN_FILE_PATTERNS = @DOXYGEN_FILE_PATTERNS@
DOXYGEN_INPUT = @DOXYGEN_INPUT@
DOXYGEN_TAGFILES = @DOXYGEN_TAGFILES@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
ETAGS = @ETAGS@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
FILECMD = @FILECMD@
GREP = @GREP@
GTK2_CFLAGS = @GTK2_CFLAGS@
GTK2_LIBS = @GTK2_LIBS@
GWENGUI_GTK2_CFLAGS = @GWENGUI_GTK2_CFLAGS@
GWENGUI_GTK2_LIBS = @GWENGUI_GTK2_LIBS@
GWENHYWFAR_MINIMUM_VERSION = @GWENHYWFAR_MINIMUM_VERSION@
HAVE_GWENGUI_GTK2 = @HAVE_GWENGUI_GTK2@
HAVE_I18N = @HAVE_I18N@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DLL_TARGET = @INSTALL_DLL_TARGET@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBXML_CFLAGS = @LIBXML_CFLAGS@
LIBXML_LIBS = @LIBXML_LIBS@
LIBXSLT_CFLAGS = @LIBXSLT_CFLAGS@
LIBXSLT_LIBS = @LIBXSLT_LIBS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MAKE_DLL_TARGET = @MAKE_DLL_TARGET@
MAKE_I18N_FILES = @MAKE_I18N_FILES@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MSGFMT = @MSGFMT@
MSGFMT_SUPPORTS_QT = @MSGFMT_SUPPORTS_QT@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSYSTEM = @OSYSTEM@
OS_TYPE = @OS_TYPE@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
RC = @RC@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
STRIPALL = @STRIPALL@
TUTORIALS = @TUTORIALS@
USE_DOT = @USE_DOT@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
XMLMERGE = @XMLMERGE@
XMLSEC_CFLAGS = @XMLSEC_CFLAGS@
XMLSEC_LIBS = @XMLSEC_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
aq_distrib_name = @aq_distrib_name@
aq_distrib_tag = @aq_distrib_tag@
aq_distrib_version = @aq_distrib_version@
aqbanking_backends = @aqbanking_backends@
aqbanking_cfg_searchdir = @aqbanking_cfg_searchdir@
aqbanking_data_searchdir = @aqbanking_data_searchdir@
aqbanking_headerdir = @aqbanking_headerdir@
aqbanking_headerdir_am = @aqbanking_headerdir_am@
aqbanking_includes = @aqbanking_includes@
aqbanking_internal_libs = @aqbanking_internal_libs@
aqbanking_ldflags = @aqbanking_ldflags@
aqbanking_libs = @aqbanking_libs@
aqbanking_locale_searchdir = @aqbanking_locale_searchdir@
aqbanking_modules = @aqbanking_modules@
aqbanking_pkgdatadir = @aqbanking_pkgdatadir@
aqbanking_plugin_searchdir = @aqbanking_plugin_searchdir@
aqbanking_plugindir = @aqbanking_plugindir@
aqbanking_plugins_backends_dirs = @aqbanking_plugins_backends_dirs@
aqbanking_plugins_backends_libs = @aqbanking_plugins_backends_libs@
aqbanking_plugins_bankinfo_dirs = @aqbanking_plugins_bankinfo_dirs@
aqbanking_plugins_bankinfo_libs = @aqbanking_plugins_bankinfo_libs@
aqbanking_plugins_imexporters_dirs = @aqbanking_plugins_imexporters_dirs@
aqbanking_plugins_imexporters_libs = @aqbanking_plugins_imexporters_libs@
aqbanking_plugins_parsers_dirs = @aqbanking_plugins_parsers_dirs@
aqbanking_symlinkdir = @aqbanking_symlinkdir@
aqbanking_sys_is_windows = @aqbanking_sys_is_windows@
aqbankingpp_modules = @aqbankingpp_modules@
aqebics_datadir = @aqebics_datadir@
aqebics_includes = @aqebics_includes@
aqebics_internal_libs = @aqebics_internal_libs@
aqebics_ldflags = @aqebics_ldflags@
aqebics_libs = @aqebics_libs@
aqfints_datadir = @aqfints_datadir@
aqhbci_datadir = @aqhbci_datadir@
aqhbci_includes = @aqhbci_includes@
aqhbci_internal_libs = @aqhbci_internal_libs@
aqhbci_ldflags = @aqhbci_ldflags@
aqhbci_libs = @aqhbci_libs@
aqofxconnect_includes = @aqofxconnect_includes@
aqofxconnect_internal_libs = @aqofxconnect_internal_libs@
aqofxconnect_libs = @aqofxconnect_libs@
aqpaypal_includes = @aqpaypal_includes@
aqpaypal_internal_libs = @aqpaypal_internal_libs@
aqpaypal_libs = @aqpaypal_libs@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
docpath = @docpath@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
gmp_libs = @gmp_libs@
gwenhywfar_bindir = @gwenhywfar_bindir@
gwenhywfar_dir = @gwenhywfar_dir@
gwenhywfar_has_crypt = @gwenhywfar_has_crypt@
gwenhywfar_headers = @gwenhywfar_headers@
gwenhywfar_includes = @gwenhywfar_includes@
gwenhywfar_libs = @gwenhywfar_libs@
gwenhywfar_plugins = @gwenhywfar_plugins@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
i18n_libs = @i18n_libs@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
typemaker2_exe = @typemaker2_exe@
visibility_cflags = @visibility_cflags@
with_aqebics = @with_aqebics@
with_aqhbci = @with_aqhbci@
AM_CPPFLAGS = -I$(top_srcdir)/src/libs -I$(top_builddir)/src/libs $(gwenhywfar_includes) -I$(srcdir)/..
AM_CFLAGS = @visibility_cflags@
aqbanking_cli_LDADD = \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs) -lstdc++
aqbanking_cli_SOURCES = \
main.c \
addsepadebitnote.c \
addtransaction.c \
chkiban.c \
fillgaps.c \
import.c \
export.c \
listaccs.c \
listbal.c \
listprofiles.c \
listtrans.c \
listdoc.c \
getdoc.c \
request.c \
util.c \
versions.c \
sepatransfer.c \
sepainternaltransfer.c \
sepadebitnote.c \
sepamultijobs.c \
separecurtransfer.c \
updateconf.c \
control.c \
accountcmds.c
aqbanking_cli_LDFLAGS = $(am__append_1)
aqhbci_tool4_LDFLAGS = $(am__append_2)
aqpaypal_tool_LDFLAGS = $(am__append_3)
aqebics_tool_LDFLAGS = $(am__append_4)
aqofxconnect_tool_LDFLAGS = $(am__append_5)
noinst_HEADERS = globals.h
#EXTRA_DIST=
aqhbci_tool4_SOURCES = aqhbci-tool.c
aqhbci_tool4_LDADD = \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs)
aqpaypal_tool_SOURCES = aqpaypal-tool.c
aqpaypal_tool_LDADD = \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs)
aqebics_tool_SOURCES = aqebics-tool.c
aqebics_tool_LDADD = \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs)
aqofxconnect_tool_SOURCES = aqofxconnect-tool.c
aqofxconnect_tool_LDADD = \
$(aqbanking_internal_libs) \
$(gwenhywfar_libs)
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/tools/aqbanking-cli/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu src/tools/aqbanking-cli/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
$(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
fi; \
for p in $$list; do echo "$$p $$p"; done | \
sed 's/$(EXEEXT)$$//' | \
while read p p1; do if test -f $$p \
|| test -f $$p1 \
; then echo "$$p"; echo "$$p"; else :; fi; \
done | \
sed -e 'p;s,.*/,,;n;h' \
-e 's|.*|.|' \
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
sed 'N;N;N;s,\n, ,g' | \
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
if ($$2 == $$4) files[d] = files[d] " " $$1; \
else { print "f", $$3 "/" $$4, $$1; } } \
END { for (d in files) print "f", d, files[d] }' | \
while read type dir files; do \
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
test -z "$$files" || { \
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
} \
; done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
files=`for p in $$list; do echo "$$p"; done | \
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
-e 's/$$/$(EXEEXT)/' \
`; \
test -n "$$list" || exit 0; \
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
cd "$(DESTDIR)$(bindir)" && rm -f $$files
clean-binPROGRAMS:
@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
echo " rm -f" $$list; \
rm -f $$list || exit $$?; \
test -n "$(EXEEXT)" || exit 0; \
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
echo " rm -f" $$list; \
rm -f $$list
aqbanking-cli$(EXEEXT): $(aqbanking_cli_OBJECTS) $(aqbanking_cli_DEPENDENCIES) $(EXTRA_aqbanking_cli_DEPENDENCIES)
@rm -f aqbanking-cli$(EXEEXT)
$(AM_V_CCLD)$(aqbanking_cli_LINK) $(aqbanking_cli_OBJECTS) $(aqbanking_cli_LDADD) $(LIBS)
aqebics-tool$(EXEEXT): $(aqebics_tool_OBJECTS) $(aqebics_tool_DEPENDENCIES) $(EXTRA_aqebics_tool_DEPENDENCIES)
@rm -f aqebics-tool$(EXEEXT)
$(AM_V_CCLD)$(aqebics_tool_LINK) $(aqebics_tool_OBJECTS) $(aqebics_tool_LDADD) $(LIBS)
aqhbci-tool4$(EXEEXT): $(aqhbci_tool4_OBJECTS) $(aqhbci_tool4_DEPENDENCIES) $(EXTRA_aqhbci_tool4_DEPENDENCIES)
@rm -f aqhbci-tool4$(EXEEXT)
$(AM_V_CCLD)$(aqhbci_tool4_LINK) $(aqhbci_tool4_OBJECTS) $(aqhbci_tool4_LDADD) $(LIBS)
aqofxconnect-tool$(EXEEXT): $(aqofxconnect_tool_OBJECTS) $(aqofxconnect_tool_DEPENDENCIES) $(EXTRA_aqofxconnect_tool_DEPENDENCIES)
@rm -f aqofxconnect-tool$(EXEEXT)
$(AM_V_CCLD)$(aqofxconnect_tool_LINK) $(aqofxconnect_tool_OBJECTS) $(aqofxconnect_tool_LDADD) $(LIBS)
aqpaypal-tool$(EXEEXT): $(aqpaypal_tool_OBJECTS) $(aqpaypal_tool_DEPENDENCIES) $(EXTRA_aqpaypal_tool_DEPENDENCIES)
@rm -f aqpaypal-tool$(EXEEXT)
$(AM_V_CCLD)$(aqpaypal_tool_LINK) $(aqpaypal_tool_OBJECTS) $(aqpaypal_tool_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/accountcmds.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/addsepadebitnote.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/addtransaction.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aqebics-tool.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aqhbci-tool.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aqofxconnect-tool.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aqpaypal-tool.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chkiban.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/control.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/export.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fillgaps.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdoc.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/import.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listaccs.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listbal.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listdoc.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listprofiles.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listtrans.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/request.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sepadebitnote.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sepainternaltransfer.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sepamultijobs.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/separecurtransfer.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sepatransfer.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/updateconf.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/versions.Po@am__quote@ # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
am--depfiles: $(am__depfiles_remade)
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS) $(HEADERS)
installdirs:
for dir in "$(DESTDIR)$(bindir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
-rm -f ./$(DEPDIR)/accountcmds.Po
-rm -f ./$(DEPDIR)/addsepadebitnote.Po
-rm -f ./$(DEPDIR)/addtransaction.Po
-rm -f ./$(DEPDIR)/aqebics-tool.Po
-rm -f ./$(DEPDIR)/aqhbci-tool.Po
-rm -f ./$(DEPDIR)/aqofxconnect-tool.Po
-rm -f ./$(DEPDIR)/aqpaypal-tool.Po
-rm -f ./$(DEPDIR)/chkiban.Po
-rm -f ./$(DEPDIR)/control.Po
-rm -f ./$(DEPDIR)/export.Po
-rm -f ./$(DEPDIR)/fillgaps.Po
-rm -f ./$(DEPDIR)/getdoc.Po
-rm -f ./$(DEPDIR)/import.Po
-rm -f ./$(DEPDIR)/listaccs.Po
-rm -f ./$(DEPDIR)/listbal.Po
-rm -f ./$(DEPDIR)/listdoc.Po
-rm -f ./$(DEPDIR)/listprofiles.Po
-rm -f ./$(DEPDIR)/listtrans.Po
-rm -f ./$(DEPDIR)/main.Po
-rm -f ./$(DEPDIR)/request.Po
-rm -f ./$(DEPDIR)/sepadebitnote.Po
-rm -f ./$(DEPDIR)/sepainternaltransfer.Po
-rm -f ./$(DEPDIR)/sepamultijobs.Po
-rm -f ./$(DEPDIR)/separecurtransfer.Po
-rm -f ./$(DEPDIR)/sepatransfer.Po
-rm -f ./$(DEPDIR)/updateconf.Po
-rm -f ./$(DEPDIR)/util.Po
-rm -f ./$(DEPDIR)/versions.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am: install-binPROGRAMS
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f ./$(DEPDIR)/accountcmds.Po
-rm -f ./$(DEPDIR)/addsepadebitnote.Po
-rm -f ./$(DEPDIR)/addtransaction.Po
-rm -f ./$(DEPDIR)/aqebics-tool.Po
-rm -f ./$(DEPDIR)/aqhbci-tool.Po
-rm -f ./$(DEPDIR)/aqofxconnect-tool.Po
-rm -f ./$(DEPDIR)/aqpaypal-tool.Po
-rm -f ./$(DEPDIR)/chkiban.Po
-rm -f ./$(DEPDIR)/control.Po
-rm -f ./$(DEPDIR)/export.Po
-rm -f ./$(DEPDIR)/fillgaps.Po
-rm -f ./$(DEPDIR)/getdoc.Po
-rm -f ./$(DEPDIR)/import.Po
-rm -f ./$(DEPDIR)/listaccs.Po
-rm -f ./$(DEPDIR)/listbal.Po
-rm -f ./$(DEPDIR)/listdoc.Po
-rm -f ./$(DEPDIR)/listprofiles.Po
-rm -f ./$(DEPDIR)/listtrans.Po
-rm -f ./$(DEPDIR)/main.Po
-rm -f ./$(DEPDIR)/request.Po
-rm -f ./$(DEPDIR)/sepadebitnote.Po
-rm -f ./$(DEPDIR)/sepainternaltransfer.Po
-rm -f ./$(DEPDIR)/sepamultijobs.Po
-rm -f ./$(DEPDIR)/separecurtransfer.Po
-rm -f ./$(DEPDIR)/sepatransfer.Po
-rm -f ./$(DEPDIR)/updateconf.Po
-rm -f ./$(DEPDIR)/util.Po
-rm -f ./$(DEPDIR)/versions.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-binPROGRAMS
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
ctags ctags-am distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-binPROGRAMS \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-info install-info-am install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
installcheck installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
.PRECIOUS: Makefile
sources:
for f in $(aqbanking_cli_SOURCES) $(aqhbci_tool4_SOURCES) $(aqpaypal_tool_SOURCES) $(aqebics_tool_SOURCES); $(aqofxconnect_tool_SOURCES); do \
echo $(subdir)/$$f >>$(top_srcdir)/i18nsources; \
done
built_sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d built_sources; \
done ;
typefiles:
typedefs:
cppcheck:
for f in $(aqbanking_cli_SOURCES); do \
cppcheck --force $$f ; \
done
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
aqbanking-6.7.7beta/src/tools/aqbanking-cli/sepatransfer.c 0000664 0001750 0001750 00000032407 14043610745 020547 0000000 0000000 /***************************************************************************
begin : Tue May 03 2005
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
/* tool includes */
#include "globals.h"
/* aqbanking includes */
#include
/* gwenhywfar includes */
#include
/* forward declarations */
static GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv);
int sepaTransfer(AB_BANKING *ab, GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
AB_ACCOUNT_SPEC *as;
int rv;
int rvExec=0;
const char *ctxFile;
AB_TRANSACTION *t;
int noCheck;
/* parse command line arguments */
db=_readCommandLine(dbArgs, argc, argv);
if (db==NULL) {
/* error in command line */
return 1;
}
/* read arguments */
noCheck=GWEN_DB_GetIntValue(db, "noCheck", 0, 0);
ctxFile=GWEN_DB_GetCharValue(db, "ctxfile", 0, 0);
/* init AqBanking */
rv=AB_Banking_Init(ab);
if (rv) {
DBG_ERROR(0, "Error on init (%d)", rv);
return 2;
}
/* get account to work with */
as=getSingleSelectedAccount(ab, db);
if (as==NULL) {
AB_Banking_Fini(ab);
return 2;
}
/* create transaction from arguments */
t=mkSepaTransfer(db, AB_Transaction_CommandSepaTransfer);
if (t==NULL) {
DBG_ERROR(0, "Could not create SEPA transaction from arguments");
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return 2;
}
AB_Transaction_SetUniqueAccountId(t, AB_AccountSpec_GetUniqueId(as));
/* check for date; if given create a dated transfer */
if (AB_Transaction_GetDate(t))
AB_Transaction_SetCommand(t, AB_Transaction_CommandCreateDatedTransfer);
/* set local account info from selected AB_ACCOUNT_SPEC */
AB_Banking_FillTransactionFromAccountSpec(t, as);
/* some checks */
rv=checkTransactionIbans(t);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
/* probably check against transaction limits */
if (!noCheck) {
rv=checkTransactionLimits(t,
AB_AccountSpec_GetTransactionLimitsForCommand(as, AB_Transaction_GetCommand(t)),
AQBANKING_TOOL_LIMITFLAGS_PURPOSE |
AQBANKING_TOOL_LIMITFLAGS_NAMES |
AQBANKING_TOOL_LIMITFLAGS_DATE |
AQBANKING_TOOL_LIMITFLAGS_SEPA);
if (rv!=0) {
AB_Transaction_free(t);
AB_AccountSpec_free(as);
AB_Banking_Fini(ab);
return rv;
}
}
AB_AccountSpec_free(as);
/* execute job */
rv=execSingleBankingJob(ab, t, ctxFile);
if (rv) {
fprintf(stderr, "Error on executeQueue (%d)\n", rv);
rvExec=rv;
}
/* cleanup */
AB_Transaction_free(t);
/* that's it */
rv=AB_Banking_Fini(ab);
if (rv<0) {
fprintf(stderr, "ERROR: Error on deinit (%d)\n", rv);
if (rvExec==0)
rvExec=5;
}
return rvExec;
}
/* parse command line */
GWEN_DB_NODE *_readCommandLine(GWEN_DB_NODE *dbArgs, int argc, char **argv)
{
GWEN_DB_NODE *db;
int rv;
const GWEN_ARGS args[]= {
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"ctxFile", /* name */
0, /* minnum */
1, /* maxnum */
"c", /* short option */
"ctxfile", /* long option */
"Specify the file to store the context in", /* short description */
"Specify the file to store the context in" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Int, /* type */
"uniqueAccountId", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"aid", /* long option */
"Specify the unique account id", /* short description */
"Specify the unique account id" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"backendName", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"backend", /* long option */
"Specify the name of the backend for your account", /* short description */
"Specify the name of the backend for your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"country", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"country", /* long option */
"Specify the country for your account (e.g. \"de\")", /* short description */
"Specify the country for your account (e.g. \"de\")" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"bankId", /* name */
0, /* minnum */
1, /* maxnum */
"b", /* short option */
"bank", /* long option */
"overwrite the bank code", /* short description */
"overwrite the bank code" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountId", /* name */
0, /* minnum */
1, /* maxnum */
"a", /* short option */
"account", /* long option */
"overwrite the account number", /* short description */
"overwrite the account number" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"subAccountId", /* name */
0, /* minnum */
1, /* maxnum */
"aa", /* short option */
"subaccount", /* long option */
"Specify the sub account id (Unterkontomerkmal)", /* short description */
"Specify the sub account id (Unterkontomerkmal)" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"accountType", /* name */
0, /* minnum */
1, /* maxnum */
"at", /* short option */
"accounttype", /* long option */
"Specify the account type", /* short description */
"Specify the account type" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"iban", /* name */
0, /* minnum */
1, /* maxnum */
"A", /* short option */
"iban", /* long option */
"Specify the iban of your account", /* short description */
"Specify the iban of your account" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteBIC", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"rbic", /* long option */
"Specify the remote SWIFT BIC",/* short description */
"Specify the remote SWIFT BIC" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteIBAN", /* name */
1, /* minnum */
1, /* maxnum */
0, /* short option */
"riban", /* long option */
"Specify the remote IBAN", /* short description */
"Specify the remote IBAN" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"value", /* name */
1, /* minnum */
1, /* maxnum */
"v", /* short option */
"value", /* long option */
"Specify the transfer amount", /* short description */
"Specify the transfer amount" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"name", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"name", /* long option */
"Specify your name", /* short description */
"Specify your name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"remoteName", /* name */
1, /* minnum */
2, /* maxnum */
0, /* short option */
"rname", /* long option */
"Specify the remote name", /* short description */
"Specify the remote name" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"purpose", /* name */
1, /* minnum */
6, /* maxnum */
"p", /* short option */
"purpose", /* long option */
"Specify the purpose", /* short description */
"Specify the purpose" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"endToEndReference", /* name */
0, /* minnum */
1, /* maxnum */
"E", /* short option */
"endtoendid", /* long option */
"Specify the SEPA End-to-end-reference", /* short description */
"Specify the SEPA End-to-end-reference" /* long description */
},
{
GWEN_ARGS_FLAGS_HAS_ARGUMENT, /* flags */
GWEN_ArgsType_Char, /* type */
"executionDate", /* name */
0, /* minnum */
1, /* maxnum */
0, /* short option */
"execdate", /* long option */
"Specify the execution date (YYYYMMDD)", /* short */
"Specify the execution date (YYYYMMDD)" /* long */
},
{
0, /* flags */
GWEN_ArgsType_Int, /* type */
"noCheck", /* name */
0, /* minnum */
1, /* maxnum */
NULL, /* short option */
"noCheck", /* long option */
"Dont check transaction limits", /* short description */
"Dont check transaction limits"
},
{
GWEN_ARGS_FLAGS_HELP | GWEN_ARGS_FLAGS_LAST, /* flags */
GWEN_ArgsType_Int, /* type */
"help", /* name */
0, /* minnum */
0, /* maxnum */
"h", /* short option */
"help", /* long option */
"Show this help screen", /* short description */
"Show this help screen" /* long description */
}
};
db=GWEN_DB_GetGroup(dbArgs, GWEN_DB_FLAGS_DEFAULT, "local");
rv=GWEN_Args_Check(argc, argv, 1,
0 /*GWEN_ARGS_MODE_ALLOW_FREEPARAM*/,
args,
db);
if (rv==GWEN_ARGS_RESULT_ERROR) {
fprintf(stderr, "ERROR: Could not parse arguments\n");
return NULL;
}
else if (rv==GWEN_ARGS_RESULT_HELP) {
GWEN_BUFFER *ubuf;
ubuf=GWEN_Buffer_new(0, 1024, 0, 1);
if (GWEN_Args_Usage(args, ubuf, GWEN_ArgsOutType_Txt)) {
fprintf(stderr, "ERROR: Could not create help string\n");
return NULL;
}
fprintf(stdout, "%s\n", GWEN_Buffer_GetStart(ubuf));
GWEN_Buffer_free(ubuf);
return NULL;
}
return db;
}
aqbanking-6.7.7beta/src/tools/mkdeinfo/ 0000755 0001750 0001750 00000000000 15075177326 015063 5 0000000 0000000 aqbanking-6.7.7beta/src/tools/mkdeinfo/Makefile.am 0000664 0001750 0001750 00000001025 14043610745 017026 0000000 0000000 AM_CPPFLAGS = -I$(top_srcdir)/src/libs -I$(top_builddir)/src/libs $(gwenhywfar_includes) -I$(srcdir)/..
if IS_WINDOWS
# Doesn't link on windows; too lazy to fix this for now.
noinst_PROGRAMS=
else
noinst_PROGRAMS=mkdeinfo
mkdeinfo_SOURCES=mkdeinfo.c
mkdeinfo_LDADD = $(aqbanking_internal_libs) $(gwenhywfar_libs)
endif
# IS_WINDOWS
built_sources:
typefiles:
typedefs:
sources:
cppcheck:
for f in $(mkdeinfo_SOURCES); do \
cppcheck --force $$f ; \
done
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
aqbanking-6.7.7beta/src/tools/mkdeinfo/mkdeinfo.c 0000664 0001750 0001750 00000157365 14043610745 016755 0000000 0000000 /***************************************************************************
begin : Mon Mar 01 2004
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#ifndef GWEN_DIR_SEPARATOR_S
/* for gwenyhwfar < 2.5.4 */
# define GWEN_DIR_SEPARATOR '/'
# define GWEN_DIR_SEPARATOR_S "/"
#endif
#define FUZZY_SHIFT 10
#define FUZZY_THRESHOLD 850
static AB_BANKINFO_LIST *bis=0;
static GWEN_DB_NODE *dbIdx=0;
int readCSVFile(const char *fname, const char *pname, GWEN_DB_NODE *db)
{
GWEN_DB_NODE *dbParams;
dbParams=GWEN_DB_Group_new("params");
if (GWEN_DB_ReadFile(dbParams, pname, GWEN_DB_FLAGS_DEFAULT)) {
DBG_ERROR(0, "Error reading profile file \"%s\"", pname);
GWEN_DB_Group_free(dbParams);
return -1;
}
if (GWEN_DB_ReadFileAs(db, fname, "csv", dbParams, GWEN_PATH_FLAGS_CREATE_GROUP)) {
DBG_ERROR(0, "Error reading data file \"%s\"", fname);
GWEN_DB_Group_free(dbParams);
return -1;
}
GWEN_DB_Group_free(dbParams);
return 0;
}
AB_BANKINFO *findBankInfo(AB_BANKINFO *bi,
const char *blz,
const char *location)
{
while (bi) {
const char *lblz;
const char *lloc;
lblz=AB_BankInfo_GetBankId(bi);
lloc=AB_BankInfo_GetLocation(bi);
if (lblz && blz) {
if (GWEN_Text_ComparePattern(lblz, blz, 0)!=-1) {
if (!location ||
(location && lloc &&
GWEN_Text_ComparePattern(lloc, location, 0)!=-1))
break;
}
}
bi=AB_BankInfo_List_Next(bi);
}
return bi;
}
AB_BANKINFO *findFirstBankInfo(const char *blz, const char *location)
{
AB_BANKINFO *bi;
bi=AB_BankInfo_List_First(bis);
return findBankInfo(bi, blz, location);
}
AB_BANKINFO *findNextBankInfo(AB_BANKINFO *bi,
const char *blz,
const char *location)
{
bi=AB_BankInfo_List_Next(bi);
return findBankInfo(bi, blz, location);
}
void isoToUtf8(const char *p,
int size,
GWEN_BUFFER *buf)
{
while (*p) {
unsigned int c;
if (!size)
break;
c=(unsigned char)(*(p++));
switch (c) {
case 0xc4: /* AE */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0x84);
break;
case 0xe4: /* ae */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xa4);
break;
case 0xd6: /* OE */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0x96);
break;
case 0xf6: /* oe */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xb6);
break;
case 0xdc: /* UE */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0x9c);
break;
case 0xfc: /* ue */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xbc);
break;
case 0xdf: /* sz */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0x9f);
break;
case 0xa7: /* section sign */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0x67);
break;
/* english chars */
case 0xa3: /* pound swign */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0x63);
break;
/* french chars */
case 0xc7: /* C cedille */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0x87);
break;
case 0xe0: /* a accent grave */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xa0);
break;
case 0xe1: /* a accent aigu */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xa1);
break;
case 0xe2: /* a accent circumflex */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xa2);
break;
case 0xe7: /* c cedille */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xa7);
break;
case 0xe8: /* e accent grave */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xa8);
break;
case 0xe9: /* e accent aigu */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xa9);
break;
case 0xea: /* e accent circumflex */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xaa);
break;
case 0xec: /* i accent grave (never heard of this) */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xac);
break;
case 0xed: /* i accent aigu (never heard of this, either) */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xad);
break;
case 0xee: /* i accent circumflex (never heard of this, either) */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xae);
break;
case 0xf2: /* o accent grave */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xb2);
break;
case 0xf3: /* o accent aigu */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xb3);
break;
case 0xf4: /* o accent circumflex */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xb4);
break;
case 0xf9: /* u accent grave */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xb9);
break;
case 0xfa: /* u accent aigu */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xba);
break;
case 0xfb: /* u accent circumflex */
GWEN_Buffer_AppendByte(buf, 0xc3);
GWEN_Buffer_AppendByte(buf, 0xbb);
break;
default:
GWEN_Buffer_AppendByte(buf, c);
}
if (size!=-1)
size--;
} /* while */
}
uint32_t _word_similarity(const char *a, const char *b)
{
uint32_t score = 0;
size_t l = 0;
while (*a && *b) {
if (*a == *b)
score += 1 << FUZZY_SHIFT;
else if (*a == b[1]) {
score += 1 << (FUZZY_SHIFT-2);
b++;
}
else if (a[1] == *b) {
score += 1 << (FUZZY_SHIFT-2);
a++;
l++;
}
a++;
b++;
l++;
}
if ('\0' != *a)
l += strlen(a);
return score / l;
}
int _is_ascii_alnum(unsigned char c)
{
return ((c>='A' || c<='Z') ||
(c>='a' || c<='z') ||
(c>='0' || c<='9') ||
c>=128);
}
GWEN_STRINGLIST *_make_word_list(const char *str)
{
GWEN_STRINGLIST *sl;
sl=GWEN_StringList_new();
while (*str) {
const char *p;
size_t size;
while (*str && !_is_ascii_alnum(*str))
str++;
p=str;
while (*str && _is_ascii_alnum(*str)) {
str++;
}
size=(str-p);
if (*p) {
char *wptr;
char *t;
size_t i;
wptr=(char *)malloc(size+1);
t=wptr;
for (i=0; i0)?(score/n):0;
}
uint32_t _find_score(GWEN_STRINGLIST *a,
GWEN_STRINGLIST *b)
{
uint32_t score = 0;
uint32_t n = 0;
GWEN_STRINGLISTENTRY *se;
se=GWEN_StringList_FirstEntry(a);
while (se) {
const char *p;
n++;
p=GWEN_StringListEntry_Data(se);
assert(p);
score+=_cmp_word_list(p, b);
se=GWEN_StringListEntry_Next(se);
}
return (n>0)?(score/n):0;
}
uint32_t FuzzyCompare(const char *str1, const char *str2)
{
GWEN_STRINGLIST *a;
GWEN_STRINGLIST *b;
uint32_t score;
a=_make_word_list(str1);
b=_make_word_list(str2);
score=(_find_score(a, b) + _find_score(b, a))/2;
GWEN_StringList_free(b);
GWEN_StringList_free(a);
return score;
}
int readDBBFile(const char *fname)
{
GWEN_DB_NODE *dbData;
GWEN_DB_NODE *dbT;
int count=0;
dbData=GWEN_DB_Group_new("data");
fprintf(stdout, "Reading Deutsche Bundesbank file...\n");
if (readCSVFile(fname, "dbb.conf", dbData)) {
DBG_ERROR(0, "Error reading DBB file \"%s\"", fname);
GWEN_DB_Group_free(dbData);
return -1;
}
fprintf(stdout, "Building database...\n");
dbT=GWEN_DB_FindFirstGroup(dbData, "bank");
while (dbT) {
const char *lblz;
const char *lloc;
lblz=GWEN_DB_GetCharValue(dbT, "bankId", 0, 0);
lloc=GWEN_DB_GetCharValue(dbT, "location", 0, 0);
if (lloc && lblz && isdigit(*lblz)) {
if (strcasecmp(lblz, "0")!=0) {
AB_BANKINFO *bi;
bi=AB_BankInfo_fromDb(dbT);
assert(bi);
AB_BankInfo_SetCity(bi, lloc);
AB_BankInfo_List_Add(bi, bis);
count++;
}
}
dbT=GWEN_DB_FindNextGroup(dbT, "bank");
}
GWEN_DB_Group_free(dbData);
fprintf(stdout, "Found %d banks\n", count);
return 0;
}
int readHBCIFile(const char *fname)
{
GWEN_DB_NODE *dbData;
GWEN_DB_NODE *dbT;
int count=0;
dbData=GWEN_DB_Group_new("data");
fprintf(stdout, "Reading HBCI file...\n");
if (readCSVFile(fname, "hbci.conf", dbData)) {
DBG_ERROR(0, "Error reading HBCI file \"%s\"", fname);
GWEN_DB_Group_free(dbData);
return -1;
}
if (GWEN_DB_WriteFile(dbData,
"out.conf",
GWEN_DB_FLAGS_QUOTE_VALUES | \
GWEN_DB_FLAGS_WRITE_SUBGROUPS | \
GWEN_DB_FLAGS_INDEND | \
GWEN_DB_FLAGS_ADD_GROUP_NEWLINES | \
GWEN_DB_FLAGS_ESCAPE_CHARVALUES | \
GWEN_DB_FLAGS_OMIT_TYPES)) {
DBG_ERROR(0, "Error writing bank file");
return -1;
}
fprintf(stdout, "Updating database...\n");
dbT=GWEN_DB_FindFirstGroup(dbData, "bank");
while (dbT) {
const char *lblz;
const char *lloc;
lblz=GWEN_DB_GetCharValue(dbT, "bankId", 0, 0);
lloc=GWEN_DB_GetCharValue(dbT, "location", 0, 0);
if (lblz && lloc) {
AB_BANKINFO *bi;
bi=findFirstBankInfo(lblz, lloc);
while (bi) {
const char *addr;
const char *ver;
count++;
addr=GWEN_DB_GetCharValue(dbT, "hostName", 0, 0);
if (addr==0)
addr=GWEN_DB_GetCharValue(dbT, "hostIp", 0, 0);
ver=GWEN_DB_GetCharValue(dbT, "hbciVersion", 0, 0);
if (ver) {
/* normalize version */
if (strcmp(ver, "2")==0 ||
strcmp(ver, "2.01")==0 ||
strcmp(ver, "2.0.1")==0)
ver="2.01";
else if (strcmp(ver, "2.1")==0 ||
strcmp(ver, "2.10")==0 ||
strcmp(ver, "2.1.0")==0)
ver="2.10";
else if (strcmp(ver, "2.2")==0 ||
strcmp(ver, "2.20")==0 ||
strcmp(ver, "2.2.0")==0)
ver="2.20";
else if (strcmp(ver, "3")==0 ||
strcmp(ver, "3.0")==0 ||
strcmp(ver, "3.0.0")==0)
ver="3.0";
else if (strcmp(ver, "4")==0 ||
strcmp(ver, "4.0")==0 ||
strcmp(ver, "4.0.0")==0)
ver="3.0";
}
if (addr) {
const char *s;
s=GWEN_DB_GetCharValue(dbT, "ddv", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "DDV");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if DDV */
s=GWEN_DB_GetCharValue(dbT, "rdh1", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH1");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH1 */
s=GWEN_DB_GetCharValue(dbT, "rdh2", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH2");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH2 */
s=GWEN_DB_GetCharValue(dbT, "rdh3", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH3");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH3 */
s=GWEN_DB_GetCharValue(dbT, "rdh4", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH4");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH4 */
s=GWEN_DB_GetCharValue(dbT, "rdh5", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH5");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH5 */
s=GWEN_DB_GetCharValue(dbT, "rdh6", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH6");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH6 */
s=GWEN_DB_GetCharValue(dbT, "rdh7", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH7");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH7 */
s=GWEN_DB_GetCharValue(dbT, "rdh8", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH8");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH8 */
s=GWEN_DB_GetCharValue(dbT, "rdh9", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH9");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH9 */
s=GWEN_DB_GetCharValue(dbT, "rdh10", 0, "nein");
if (strcasecmp(s, "ja")==0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, addr);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "RDH10");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* if RDH10 */
s=GWEN_DB_GetCharValue(dbT, "pinTanUrl", 0, 0);
if (s && *s) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "HBCI");
AB_BankInfoService_SetAddress(sv, s);
AB_BankInfoService_SetPversion(sv, ver);
AB_BankInfoService_SetMode(sv, "PINTAN");
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
} /* id PINTAN */
} /* if addr */
bi=findNextBankInfo(bi, lblz, lloc);
}
}
dbT=GWEN_DB_FindNextGroup(dbT, "bank");
}
GWEN_DB_Group_free(dbData);
fprintf(stdout, "Updated %d banks\n", count);
return 0;
}
int readATBLZFile(const char *fname)
{
GWEN_DB_NODE *dbData;
GWEN_DB_NODE *dbT;
int count=0;
dbData=GWEN_DB_Group_new("data");
fprintf(stdout, "Reading Austrian Bank file...\n");
if (readCSVFile(fname, "atblz.conf", dbData)) {
DBG_ERROR(0, "Error reading ATBLZ file \"%s\"", fname);
GWEN_DB_Group_free(dbData);
return -1;
}
fprintf(stdout, "Building database...\n");
dbT=GWEN_DB_FindFirstGroup(dbData, "bank");
while (dbT) {
const char *lblz;
lblz=GWEN_DB_GetCharValue(dbT, "bankId", 0, 0);
if (lblz && isdigit(*lblz)) {
if (strcasecmp(lblz, "0")!=0) {
AB_BANKINFO *bi;
bi=AB_BankInfo_fromDb(dbT);
assert(bi);
AB_BankInfo_List_Add(bi, bis);
count++;
}
}
dbT=GWEN_DB_FindNextGroup(dbT, "bank");
}
GWEN_DB_Group_free(dbData);
fprintf(stdout, "Found %d banks\n", count);
return 0;
}
int readATBLZFile2(const char *fname)
{
GWEN_DB_NODE *dbData;
GWEN_DB_NODE *dbT;
int count=0;
dbData=GWEN_DB_Group_new("data");
fprintf(stdout, "Reading KIDATEN file...\n");
if (readCSVFile(fname, "kidaten.conf", dbData)) {
DBG_ERROR(0, "Error reading KIDATEN file \"%s\"", fname);
GWEN_DB_Group_free(dbData);
return -1;
}
if (GWEN_DB_WriteFile(dbData,
"out.conf",
GWEN_DB_FLAGS_QUOTE_VALUES | \
GWEN_DB_FLAGS_WRITE_SUBGROUPS | \
GWEN_DB_FLAGS_INDEND | \
GWEN_DB_FLAGS_ADD_GROUP_NEWLINES | \
GWEN_DB_FLAGS_ESCAPE_CHARVALUES | \
GWEN_DB_FLAGS_OMIT_TYPES)) {
DBG_ERROR(0, "Error writing bank file");
return -1;
}
fprintf(stdout, "Updating database...\n");
dbT=GWEN_DB_FindFirstGroup(dbData, "bank");
while (dbT) {
const char *lblz;
const char *lloc;
lblz=GWEN_DB_GetCharValue(dbT, "bankId", 0, 0);
lloc=GWEN_DB_GetCharValue(dbT, "location", 0, 0);
if (lblz && lloc) {
AB_BANKINFO *bi;
bi=findFirstBankInfo(lblz, 0);
if (!bi) {
/* new bank, add it */
bi=AB_BankInfo_fromDb(dbT);
if (bi) {
AB_BankInfo_List_Add(bi, bis);
count++;
}
} /* if bank is new */
else {
while (bi) {
const char *s;
s=GWEN_DB_GetCharValue(dbT, "bankName", 0, 0);
if (s && *s)
AB_BankInfo_SetBankName(bi, s);
s=GWEN_DB_GetCharValue(dbT, "street", 0, 0);
if (s && *s)
AB_BankInfo_SetStreet(bi, s);
s=GWEN_DB_GetCharValue(dbT, "zipCode", 0, 0);
if (s && *s)
AB_BankInfo_SetZipcode(bi, s);
s=GWEN_DB_GetCharValue(dbT, "location", 0, 0);
if (s && *s) {
AB_BankInfo_SetLocation(bi, s);
AB_BankInfo_SetCity(bi, s);
}
count++;
bi=findNextBankInfo(bi, lblz, 0);
} /* while bi */
} /* if bank already exists */
}
dbT=GWEN_DB_FindNextGroup(dbT, "bank");
}
GWEN_DB_Group_free(dbData);
fprintf(stdout, "Updated %d banks\n", count);
return 0;
}
int readFedAchDirFile(const char *fname)
{
GWEN_DB_NODE *dbData;
GWEN_DB_NODE *dbT;
int count=0;
dbData=GWEN_DB_Group_new("data");
fprintf(stdout, "Reading Federal Reserve Bank file...\n");
if (readCSVFile(fname, "fedachdir.conf", dbData)) {
DBG_ERROR(0, "Error reading FedAchDir file \"%s\"", fname);
GWEN_DB_Group_free(dbData);
return -1;
}
fprintf(stdout, "Building database...\n");
dbT=GWEN_DB_FindFirstGroup(dbData, "bank");
while (dbT) {
const char *lblz;
const char *lloc;
int recType;
recType=GWEN_DB_GetIntValue(dbT, "xRecordType", 0, 1);
if (recType==2)
lblz=GWEN_DB_GetCharValue(dbT, "xNewBankId", 0, 0);
else
lblz=GWEN_DB_GetCharValue(dbT, "bankId", 0, 0);
lloc=GWEN_DB_GetCharValue(dbT, "location", 0, 0);
if (lloc && lblz && isdigit(*lblz)) {
AB_BANKINFO *bi;
GWEN_BUFFER *tbuf;
const char *s;
/* compose phone number */
tbuf=GWEN_Buffer_new(0, 32, 0, 1);
s=GWEN_DB_GetCharValue(dbT, "xPhoneAreaCode", 0, 0);
if (s) {
GWEN_Buffer_AppendString(tbuf, s);
GWEN_Buffer_AppendByte(tbuf, '-');
}
s=GWEN_DB_GetCharValue(dbT, "xPhonePrefix", 0, 0);
if (s)
GWEN_Buffer_AppendString(tbuf, s);
s=GWEN_DB_GetCharValue(dbT, "xPhoneSuffix", 0, 0);
if (s)
GWEN_Buffer_AppendString(tbuf, s);
GWEN_DB_SetCharValue(dbT, GWEN_DB_FLAGS_OVERWRITE_VARS,
"phone", GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_Reset(tbuf);
/* compose zipcode */
s=GWEN_DB_GetCharValue(dbT, "xZipCode", 0, 0);
if (s) {
GWEN_Buffer_AppendString(tbuf, s);
s=GWEN_DB_GetCharValue(dbT, "xZipExt", 0, 0);
if (s) {
GWEN_Buffer_AppendByte(tbuf, '-');
GWEN_Buffer_AppendString(tbuf, s);
}
GWEN_DB_SetCharValue(dbT, GWEN_DB_FLAGS_OVERWRITE_VARS,
"zipCode", GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_Reset(tbuf);
}
bi=AB_BankInfo_fromDb(dbT);
assert(bi);
AB_BankInfo_SetBankId(bi, lblz);
AB_BankInfo_SetCity(bi, lloc);
AB_BankInfo_List_Add(bi, bis);
GWEN_Buffer_free(tbuf);
count++;
}
dbT=GWEN_DB_FindNextGroup(dbT, "bank");
}
GWEN_DB_Group_free(dbData);
fprintf(stdout, "Found %d banks\n", count);
return 0;
}
const char *readCharValueXml(GWEN_XMLNODE *n, const char *name,
GWEN_BUFFER *dbuf)
{
GWEN_XMLNODE *nn;
GWEN_Buffer_Reset(dbuf);
nn=GWEN_XMLNode_FindFirstTag(n, name, 0, 0);
if (nn) {
int err;
GWEN_BUFFER *tbuf;
uint32_t len;
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
err=GWEN_XMLNode_toBuffer(nn, tbuf, GWEN_XML_FLAGS_SIMPLE);
if (err<0) {
DBG_INFO(0, "here (%d)", err);
GWEN_Buffer_free(tbuf);
return NULL;
}
len=GWEN_Buffer_GetUsedBytes(tbuf);
if (len) {
len--;
GWEN_Buffer_Crop(tbuf, 0, len);
}
if (GWEN_Text_UnescapeXmlToBuffer(GWEN_Buffer_GetStart(tbuf), dbuf)) {
DBG_ERROR(0, "Error decoding XML buffer");
GWEN_Buffer_free(tbuf);
return 0;
}
GWEN_Buffer_free(tbuf);
return GWEN_Buffer_GetStart(dbuf);
}
return 0;
}
int readMSMFiles(const char *path,
const char *ifname,
const char *country)
{
GWEN_BUFFER *pbuf;
GWEN_BUFFER *dbuf;
uint32_t pos;
GWEN_XMLNODE *nBanks;
GWEN_XMLNODE *n;
int updateCount=0;
fprintf(stdout, "Reading GnuCash bank files...\n");
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
pbuf=GWEN_Buffer_new(0, 256, 0, 1);
GWEN_Buffer_AppendString(pbuf, path);
GWEN_Buffer_AppendByte(pbuf, GWEN_DIR_SEPARATOR);
pos=GWEN_Buffer_GetPos(pbuf);
GWEN_Buffer_AppendString(pbuf, ifname);
nBanks=GWEN_XMLNode_new(GWEN_XMLNodeTypeTag, "banks");
if (GWEN_XML_ReadFile(nBanks,
GWEN_Buffer_GetStart(pbuf),
GWEN_XML_FLAGS_DEFAULT)) {
DBG_ERROR(0, "Error reading file \"%s\"",
GWEN_Buffer_GetStart(pbuf));
GWEN_XMLNode_free(nBanks);
return -1;
}
GWEN_Buffer_Crop(pbuf, 0, pos);
n=GWEN_XMLNode_FindFirstTag(nBanks, "fil", 0, 0);
if (n)
n=GWEN_XMLNode_FindFirstTag(n, "fi", 0, 0);
while (n) {
GWEN_XMLNODE *nProvider;
nProvider=GWEN_XMLNode_FindFirstTag(n, "prov", 0, 0);
if (nProvider) {
const char *guid;
//int isCross=0;
guid=GWEN_XMLNode_GetCharValue(nProvider, "CrossRefGuid", 0);
if (!guid || !*guid)
guid=GWEN_XMLNode_GetCharValue(nProvider, "guid", 0);
else {
//isCross=1;
}
if (guid) {
FILE *f;
GWEN_Buffer_AppendString(pbuf, "/fi/");
GWEN_Buffer_AppendString(pbuf, guid);
GWEN_Buffer_AppendString(pbuf, ".xml");
/*fprintf(stderr, "Reading file \"%s\"\n", GWEN_Buffer_GetStart(pbuf));*/
f=fopen(GWEN_Buffer_GetStart(pbuf), "r");
if (f) {
GWEN_XMLNODE *nBank;
GWEN_XMLNODE *b;
fclose(f);
nBank=GWEN_XMLNode_new(GWEN_XMLNodeTypeTag, "bank");
if (GWEN_XML_ReadFile(nBank,
GWEN_Buffer_GetStart(pbuf),
GWEN_XML_FLAGS_DEFAULT)) {
DBG_ERROR(0, "Error reading bank file \"%s\"",
GWEN_Buffer_GetStart(pbuf));
GWEN_XMLNode_free(nBank);
GWEN_XMLNode_free(nBanks);
return -1;
}
b=GWEN_XMLNode_FindFirstTag(nBank, "MSNOnlSvcInfo", 0, 0);
if (b)
b=GWEN_XMLNode_FindFirstTag(b, "ProviderSettings", 0, 0);
if (b) {
const char *s;
s=readCharValueXml(b, "country", dbuf);
if (s && *s) {
if (strcasecmp(s, "USA")==0 ||
strcasecmp(s, "US")==0 ||
strcasecmp(s, "Uni")==0 ||
strcasecmp(s, "United States")==0)
s="us";
else if (strcasecmp(s, "CAN")==0 ||
strcasecmp(s, "CA")==0 ||
strcasecmp(s, "Canada")==0)
s="ca";
else {
DBG_ERROR(0, "Unknown country \"%s\" in bank \"%s\"", s, guid);
GWEN_XMLNode_free(nBank);
GWEN_XMLNode_free(nBanks);
return -1;
}
}
else {
/*fprintf(stderr, "No country in bank \"%s\", ignoring\n", guid);*/
/* assume us */
s="us";
}
if (strcasecmp(s, country)==0) {
AB_BANKINFO *bi;
const char *zipCode;
const char *name;
int addIt=1;
bi=AB_BankInfo_new();
AB_BankInfo_SetCountry(bi, s);
s=readCharValueXml(nProvider, "name", dbuf);
if (s && *s)
AB_BankInfo_SetBankName(bi, s);
else {
DBG_ERROR(0, "No name in bank \"%s\"", guid);
GWEN_XMLNode_free(nBank);
GWEN_XMLNode_free(nBanks);
return -1;
}
s=readCharValueXml(b, "city", dbuf);
if (s && *s) {
AB_BankInfo_SetLocation(bi, s);
AB_BankInfo_SetCity(bi, s);
}
s=readCharValueXml(b, "address1", dbuf);
if (s && *s)
AB_BankInfo_SetStreet(bi, s);
s=readCharValueXml(b, "zip", dbuf);
if (s && *s)
AB_BankInfo_SetZipcode(bi, s);
s=readCharValueXml(b, "phone", dbuf);
if (s && *s)
AB_BankInfo_SetPhone(bi, s);
s=readCharValueXml(b, "InternetMail", dbuf);
if (s && *s)
AB_BankInfo_SetEmail(bi, s);
s=readCharValueXml(b, "website1", dbuf);
if (s && *s)
AB_BankInfo_SetWebsite(bi, s);
s=readCharValueXml(b, "driverType", dbuf);
if (s && strcasecmp(s, "O")==0) {
const char *pver;
const char *server;
pver=GWEN_XMLNode_GetCharValue(b, "OFXHeaderVer", 0);
server=readCharValueXml(b, "ProviderUrl",
dbuf);
if (pver && *pver && server && *server &&
strcasecmp(server, "http://moneycentral.msn.com/cust404.htm")!=0) {
AB_BANKINFO_SERVICE *sv;
sv=AB_BankInfoService_new();
AB_BankInfoService_SetType(sv, "OFX");
AB_BankInfoService_SetAddress(sv, server);
AB_BankInfoService_SetPversion(sv, pver);
s=readCharValueXml(b, "fid", dbuf);
if (s && *s)
AB_BankInfoService_SetAux1(sv, s);
s=readCharValueXml(b, "org", dbuf);
if (s && *s)
AB_BankInfoService_SetAux2(sv, s);
AB_BankInfoService_List_Add(sv, AB_BankInfo_GetServices(bi));
}
}
name=AB_BankInfo_GetBankName(bi);
zipCode=AB_BankInfo_GetZipcode(bi);
if (name && *name && zipCode && *zipCode) {
AB_BANKINFO *tbi;
char zbuf[32];
const char *x;
char *y;
/* make compact zip code */
assert(strlen(zipCode)FUZZY_THRESHOLD) {
fprintf(stderr,
"Updating existing entry for \"%s\" "
"(%u)\n",
lname, v);
break;
}
}
}
}
tbi=AB_BankInfo_List_Next(tbi);
} /* while existing entries */
if (tbi) {
const char *s1, *s2;
/* merge in new info */
s1=AB_BankInfo_GetEmail(bi);
s2=AB_BankInfo_GetEmail(tbi);
if ((s1 && *s1) && (!s2 || !*s2))
AB_BankInfo_SetEmail(tbi, s1);
s1=AB_BankInfo_GetWebsite(bi);
s2=AB_BankInfo_GetWebsite(tbi);
if ((s1 && *s1) && (!s2 || !*s2))
AB_BankInfo_SetWebsite(tbi, s1);
/* move new service entries to end of existing ones */
AB_BankInfoService_List_AddList(AB_BankInfo_GetServices(tbi),
AB_BankInfo_GetServices(bi));
addIt=0;
}
}
if (addIt)
AB_BankInfo_List_Add(bi, bis);
else {
AB_BankInfo_free(bi);
updateCount++;
}
} /* if matching country */
} /* if provider */
else {
fprintf(stderr,
"File \"%s\" does not contain bank descriptions\n",
GWEN_Buffer_GetStart(pbuf));
}
GWEN_XMLNode_free(nBank);
} /* if provider file exists */
else {
fprintf(stderr, "Provider file for bank \"%s\" not found\n", guid);
}
GWEN_Buffer_Crop(pbuf, 0, pos);
} /* if guid */
else {
fprintf(stderr, "File does not contain a GUID\n");
}
}
else {
fprintf(stderr, "File does not contain bank info.\n");
}
n=GWEN_XMLNode_FindNextTag(n, "fi", 0, 0);
}
fprintf(stdout, "%d banks updated.\n", updateCount);
return 0;
}
int readBcFile(const char *fname)
{
GWEN_DB_NODE *dbData;
GWEN_DB_NODE *dbT;
int count=0;
dbData=GWEN_DB_Group_new("data");
fprintf(stdout, "Reading BC Bankenstamm file...\n");
if (readCSVFile(fname, "bcbankenstamm.conf", dbData)) {
DBG_ERROR(0, "Error reading BC Bankenstamm file \"%s\"", fname);
GWEN_DB_Group_free(dbData);
return -1;
}
if (GWEN_DB_WriteFile(dbData,
"out.conf",
GWEN_DB_FLAGS_QUOTE_VALUES | \
GWEN_DB_FLAGS_WRITE_SUBGROUPS | \
GWEN_DB_FLAGS_INDEND | \
GWEN_DB_FLAGS_ADD_GROUP_NEWLINES | \
GWEN_DB_FLAGS_ESCAPE_CHARVALUES | \
GWEN_DB_FLAGS_OMIT_TYPES)) {
DBG_ERROR(0, "Error writing bank file");
return -1;
}
fprintf(stdout, "Building database...\n");
dbT=GWEN_DB_FindFirstGroup(dbData, "bank");
while (dbT) {
const char *lblz;
const char *lloc;
lblz=GWEN_DB_GetCharValue(dbT, "xNewBankId", 0, 0);
if (!lblz || !*lblz)
lblz=GWEN_DB_GetCharValue(dbT, "bankId", 0, 0);
lloc=GWEN_DB_GetCharValue(dbT, "location", 0, 0);
if (lloc && *lloc && lblz && isdigit(*lblz)) {
AB_BANKINFO *bi;
GWEN_BUFFER *tbuf;
const char *s;
/* compose phone number */
tbuf=GWEN_Buffer_new(0, 32, 0, 1);
s=GWEN_DB_GetCharValue(dbT, "xCountryPrefix", 0, 0);
if (s && *s) {
GWEN_Buffer_AppendString(tbuf, s);
GWEN_Buffer_AppendByte(tbuf, '-');
}
s=GWEN_DB_GetCharValue(dbT, "xPhone", 0, 0);
if (s && *s)
GWEN_Buffer_AppendString(tbuf, s);
GWEN_DB_SetCharValue(dbT, GWEN_DB_FLAGS_OVERWRITE_VARS,
"phone", GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_Reset(tbuf);
/* compose fax number */
s=GWEN_DB_GetCharValue(dbT, "xCountryPrefix", 0, 0);
if (s && *s) {
GWEN_Buffer_AppendString(tbuf, s);
GWEN_Buffer_AppendByte(tbuf, '-');
}
s=GWEN_DB_GetCharValue(dbT, "xFax", 0, 0);
if (s && *s)
GWEN_Buffer_AppendString(tbuf, s);
GWEN_DB_SetCharValue(dbT, GWEN_DB_FLAGS_OVERWRITE_VARS,
"fax", GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_Reset(tbuf);
/* compose bank code */
s=GWEN_DB_GetCharValue(dbT, "xNewBankId", 0, 0);
if (s && *s) {
GWEN_Buffer_AppendString(tbuf, s);
/*
GWEN_Buffer_AppendString(tbuf, "0000");
*/
GWEN_DB_SetCharValue(dbT, GWEN_DB_FLAGS_OVERWRITE_VARS,
"bankId", GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_Reset(tbuf);
}
else {
s=GWEN_DB_GetCharValue(dbT, "bankId", 0, 0);
assert(s);
GWEN_Buffer_AppendString(tbuf, s);
/*
s=GWEN_DB_GetCharValue(dbT, "xFilialId", 0, 0);
if (s)
GWEN_Buffer_AppendString(tbuf, s);
*/
GWEN_DB_SetCharValue(dbT, GWEN_DB_FLAGS_OVERWRITE_VARS,
"bankId", GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_Reset(tbuf);
}
bi=AB_BankInfo_fromDb(dbT);
assert(bi);
AB_BankInfo_SetCity(bi, lloc);
AB_BankInfo_List_Add(bi, bis);
GWEN_Buffer_free(tbuf);
count++;
}
dbT=GWEN_DB_FindNextGroup(dbT, "bank");
}
GWEN_DB_Group_free(dbData);
fprintf(stdout, "Found %d banks\n", count);
return 0;
}
int makeIndexBlz(const char *fname)
{
AB_BANKINFO *bi;
FILE *f;
uint32_t count=0;
f=fopen(fname, "w+");
if (!f) {
DBG_ERROR(0, "Error creating file \"%s\"", fname);
return -1;
}
bi=AB_BankInfo_List_First(bis);
while (bi) {
uint32_t pos;
const char *s;
char numbuf[32];
count++;
s=AB_BankInfo_GetBankId(bi);
if (s) {
snprintf(numbuf, sizeof(numbuf), "%08x", count);
pos=(uint32_t)GWEN_DB_GetIntValue(dbIdx, numbuf, 0, 0);
if (pos==0 && count!=1) {
DBG_ERROR(0, "No index given for \"%s\" (%d)", numbuf, count);
fclose(f);
return -1;
}
fprintf(f, "%s\t%08x\n", s, pos);
}
bi=AB_BankInfo_List_Next(bi);
}
if (fclose(f)) {
DBG_ERROR(0, "Error closing file \"%s\"", fname);
return -1;
}
return 0;
}
int makeIndexBic(const char *fname)
{
AB_BANKINFO *bi;
FILE *f;
uint32_t count=0;
f=fopen(fname, "w+");
if (!f) {
DBG_ERROR(0, "Error creating file \"%s\"", fname);
return -1;
}
bi=AB_BankInfo_List_First(bis);
while (bi) {
const char *s;
count++;
s=AB_BankInfo_GetBic(bi);
if (s && *s) {
uint32_t pos;
char numbuf[32];
snprintf(numbuf, sizeof(numbuf), "%08x", count);
pos=(uint32_t)GWEN_DB_GetIntValue(dbIdx, numbuf, 0, 0);
if (pos==0 && count!=1) {
DBG_ERROR(0, "No index given for \"%s\" (%d)", numbuf, count);
fclose(f);
return -1;
}
fprintf(f, "%s\t%08x\n", s, pos);
}
bi=AB_BankInfo_List_Next(bi);
}
if (fclose(f)) {
DBG_ERROR(0, "Error closing file \"%s\"", fname);
return -1;
}
return 0;
}
int makeIndexNameAndLoc(const char *fname)
{
AB_BANKINFO *bi;
FILE *f;
uint32_t count=0;
f=fopen(fname, "w+");
if (!f) {
DBG_ERROR(0, "Error creating file \"%s\"", fname);
return -1;
}
bi=AB_BankInfo_List_First(bis);
while (bi) {
const char *name;
const char *loc;
count++;
name=AB_BankInfo_GetBankName(bi);
loc=AB_BankInfo_GetLocation(bi);
if (name && *name && loc && *loc) {
uint32_t pos;
char numbuf[32];
snprintf(numbuf, sizeof(numbuf), "%08x", count);
pos=(uint32_t)GWEN_DB_GetIntValue(dbIdx, numbuf, 0, 0);
if (pos==0 && count!=1) {
DBG_ERROR(0, "No index given for \"%s\" (%d)", numbuf, count);
fclose(f);
return -1;
}
fprintf(f, "%s\t%s\t%08x\n", name, loc, pos);
}
bi=AB_BankInfo_List_Next(bi);
}
if (fclose(f)) {
DBG_ERROR(0, "Error closing file \"%s\"", fname);
return -1;
}
return 0;
}
int saveBankInfos(const char *path)
{
AB_BANKINFO *bi;
uint32_t count=0;
GWEN_BUFFER *xbuf;
GWEN_SYNCIO *sio;
int rv;
GWEN_FAST_BUFFER *fb;
fprintf(stdout, "Saving database...\n");
sio=GWEN_SyncIo_File_new(path, GWEN_SyncIo_File_CreationMode_CreateAlways);
GWEN_SyncIo_AddFlags(sio,
GWEN_SYNCIO_FILE_FLAGS_READ |
GWEN_SYNCIO_FILE_FLAGS_WRITE |
GWEN_SYNCIO_FILE_FLAGS_UREAD |
GWEN_SYNCIO_FILE_FLAGS_UWRITE);
rv=GWEN_SyncIo_Connect(sio);
if (rv<0) {
DBG_INFO(GWEN_LOGDOMAIN, "here (%d)", rv);
GWEN_SyncIo_free(sio);
return rv;
}
fb=GWEN_FastBuffer_new(512, sio);
GWEN_FASTBUFFER_WRITELINE(fb, rv, "# This is an automatically created file");
if (rv>=0) {
GWEN_FASTBUFFER_WRITELINE(fb, rv, "# All banks are separated by newlines");
}
if (rv>=0) {
GWEN_FASTBUFFER_WRITELINE(fb, rv,
"# Please do not modify this file, "
"the index files rely on exact positions.");
}
if (rv<0) {
DBG_INFO(0, "here (%d)", rv);
DBG_ERROR(0, "Error writing bank file \"%s\"", path);
GWEN_FastBuffer_free(fb);
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
return -1;
}
xbuf=GWEN_Buffer_new(0, 256, 0, 1);
bi=AB_BankInfo_List_First(bis);
while (bi) {
const char *s;
GWEN_DB_NODE *dbT;
uint32_t pos;
char numbuf[32];
count++;
/* some conversions to UTF8 */
s=AB_BankInfo_GetBankName(bi);
assert(s);
isoToUtf8(s, strlen(s), xbuf);
AB_BankInfo_SetBankName(bi, GWEN_Buffer_GetStart(xbuf));
GWEN_Buffer_Reset(xbuf);
s=AB_BankInfo_GetLocation(bi);
if (s) {
isoToUtf8(s, strlen(s), xbuf);
AB_BankInfo_SetLocation(bi, GWEN_Buffer_GetStart(xbuf));
AB_BankInfo_SetCity(bi, GWEN_Buffer_GetStart(xbuf));
GWEN_Buffer_Reset(xbuf);
}
/* create DB */
dbT=GWEN_DB_Group_new("bank");
AB_BankInfo_toDb(bi, dbT);
pos=GWEN_FastBuffer_GetBytesWritten(fb);
snprintf(numbuf, sizeof(numbuf), "%08x", count);
GWEN_DB_SetIntValue(dbIdx,
GWEN_PATH_FLAGS_CREATE_VAR,
numbuf, pos);
if (GWEN_DB_WriteToFastBuffer(dbT,
fb,
GWEN_DB_FLAGS_QUOTE_VALUES | \
GWEN_DB_FLAGS_WRITE_SUBGROUPS | \
GWEN_DB_FLAGS_INDEND | \
GWEN_DB_FLAGS_ESCAPE_CHARVALUES | \
GWEN_DB_FLAGS_OMIT_TYPES)) {
DBG_ERROR(0, "Error writing bank file \"%s\"", path);
GWEN_DB_Group_free(dbT);
GWEN_FastBuffer_free(fb);
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
return -1;
}
GWEN_FASTBUFFER_WRITELINE(fb, rv, "");
if (rv<0) {
DBG_ERROR_ERR(0, rv);
DBG_ERROR(0, "Error writing bank file \"%s\"", path);
GWEN_DB_Group_free(dbT);
GWEN_FastBuffer_free(fb);
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
return rv;
}
GWEN_DB_Group_free(dbT);
if (count & ~31) {
fprintf(stdout, "%u\r", count);
}
bi=AB_BankInfo_List_Next(bi);
} /* while bi */
/* flush fast buffer */
GWEN_FASTBUFFER_FLUSH(fb, rv);
if (rv<0) {
DBG_ERROR(0, "Error closing bank file \"%s\" (%d)", path, rv);
GWEN_FastBuffer_free(fb);
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
return rv;
}
GWEN_FastBuffer_free(fb);
/* flush and close io */
rv=GWEN_SyncIo_Disconnect(sio);
if (rv<0) {
DBG_ERROR(0, "Error closing bank file \"%s\" (%d)", path, rv);
GWEN_FastBuffer_free(fb);
GWEN_SyncIo_free(sio);
return rv;
}
GWEN_SyncIo_free(sio);
fprintf(stdout, " Written %d banks.\n", count);
return 0;
}
int makeBankInfos(const char *path)
{
AB_BANKINFO *bi;
uint32_t count=0;
char numbuf[32];
GWEN_BUFFER *dbuf;
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
bi=AB_BankInfo_List_First(bis);
while (bi) {
GWEN_DB_NODE *dbT;
count++;
/* create path */
GWEN_Buffer_AppendString(dbuf, path);
GWEN_Buffer_AppendString(dbuf, GWEN_DIR_SEPARATOR_S "banks" GWEN_DIR_SEPARATOR_S);
snprintf(numbuf, sizeof(numbuf), "%04x", count);
GWEN_Buffer_AppendBytes(dbuf, numbuf, 2);
if (GWEN_Directory_GetPath(GWEN_Buffer_GetStart(dbuf),
GWEN_PATH_FLAGS_CHECKROOT |
GWEN_DIR_FLAGS_PUBLIC_PATH |
GWEN_DIR_FLAGS_PUBLIC_NAME)) {
DBG_ERROR(0, "Error creating path \"%s\"",
GWEN_Buffer_GetStart(dbuf));
/* GWEN_DB_Group_free(dbT); -- not yet initialized */
GWEN_Buffer_free(dbuf);
return -1;
}
GWEN_Buffer_AppendByte(dbuf, GWEN_DIR_SEPARATOR);
GWEN_Buffer_AppendBytes(dbuf, numbuf+2, 2);
GWEN_Buffer_AppendString(dbuf, ".bank");
/* create DB */
dbT=GWEN_DB_Group_new("bank");
AB_BankInfo_toDb(bi, dbT);
/* write file */
if (GWEN_DB_WriteFile(dbT,
GWEN_Buffer_GetStart(dbuf),
GWEN_DB_FLAGS_QUOTE_VALUES | \
GWEN_DB_FLAGS_WRITE_SUBGROUPS | \
GWEN_DB_FLAGS_INDEND | \
GWEN_DB_FLAGS_ADD_GROUP_NEWLINES | \
GWEN_DB_FLAGS_ESCAPE_CHARVALUES | \
GWEN_DB_FLAGS_OMIT_TYPES)) {
DBG_ERROR(0, "Error writing bank file \"%s\"",
GWEN_Buffer_GetStart(dbuf));
GWEN_DB_Group_free(dbT);
GWEN_Buffer_free(dbuf);
return -1;
}
#ifndef OS_WIN32
if (chmod(GWEN_Buffer_GetStart(dbuf),
S_IRUSR | S_IWUSR
# ifdef S_IRGRP
| S_IRGRP
# endif
# ifdef S_IROTH
| S_IROTH
# endif
)) {
DBG_ERROR(0, "chmod(%s): %s",
GWEN_Buffer_GetStart(dbuf),
strerror(errno));
GWEN_DB_Group_free(dbT);
GWEN_Buffer_free(dbuf);
return -1;
}
#endif
GWEN_Buffer_Reset(dbuf);
GWEN_DB_Group_free(dbT);
bi=AB_BankInfo_List_Next(bi);
}
fprintf(stdout, " Written %d banks\n", count);
return 0;
}
int loadBanks(const char *fname, AB_BANKINFO_LIST *biList)
{
uint32_t count=0;
GWEN_SYNCIO *sio;
GWEN_FAST_BUFFER *fb;
int rv;
fprintf(stdout, "Loading database, this will take a few minutes ...\n");
sio=GWEN_SyncIo_File_new(fname, GWEN_SyncIo_File_CreationMode_OpenExisting);
GWEN_SyncIo_AddFlags(sio, GWEN_SYNCIO_FILE_FLAGS_READ);
rv=GWEN_SyncIo_Connect(sio);
if (rv<0) {
DBG_INFO(GWEN_LOGDOMAIN, "here (%d)", rv);
GWEN_SyncIo_free(sio);
return rv;
}
fb=GWEN_FastBuffer_new(512, sio);
for (;;) {
GWEN_DB_NODE *dbT;
AB_BANKINFO *bi;
int pos;
char numbuf[32];
int rv;
dbT=GWEN_DB_Group_new("bank");
pos=GWEN_FastBuffer_GetBytesRead(fb);
rv=GWEN_DB_ReadFromFastBuffer(dbT, fb,
GWEN_DB_FLAGS_DEFAULT |
GWEN_PATH_FLAGS_CREATE_GROUP|
GWEN_DB_FLAGS_UNTIL_EMPTY_LINE);
if (rv<0) {
if (rv==GWEN_ERROR_EOF)
break;
DBG_ERROR(0, "Could not load file \"%s\" (%d)", fname, rv);
GWEN_DB_Group_free(dbT);
GWEN_FastBuffer_free(fb);
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
return -1;
}
bi=AB_BankInfo_fromDb(dbT);
assert(bi);
AB_BankInfo_List_Add(bi, biList);
GWEN_DB_Group_free(dbT);
count++;
snprintf(numbuf, sizeof(numbuf), "%08x", count);
GWEN_DB_SetIntValue(dbIdx, GWEN_DB_FLAGS_OVERWRITE_VARS, numbuf, pos);
if (count & ~31) {
fprintf(stdout, "%u\r", count);
}
} /* while */
fprintf(stdout, "\n");
fprintf(stdout, " Read %d banks.\n", count);
GWEN_FastBuffer_free(fb);
GWEN_SyncIo_Disconnect(sio);
GWEN_SyncIo_free(sio);
return 0;
}
int main(int argc, char **argv)
{
if (argc<2) {
fprintf(stderr,
"Usage:\n"
"%s COMMAND\n",
argv[0]);
return 1;
}
if (strcasecmp(argv[1], "build")==0) {
const char *dbbFile, *hbciFile, *dstFile;
if (argc<5) {
fprintf(stderr,
"Usage:\n"
"%s build DBB-file HBCI-file DESTFILE\n",
argv[0]);
return 1;
}
dbbFile=argv[2];
hbciFile=argv[3];
dstFile=argv[4];
bis=AB_BankInfo_List_new();
dbIdx=GWEN_DB_Group_new("indexList");
if (readDBBFile(dbbFile)) {
DBG_ERROR(0, "Error.");
return 2;
}
if (readHBCIFile(hbciFile)) {
DBG_ERROR(0, "Error.");
return 2;
}
if (saveBankInfos(dstFile)) {
return 3;
}
}
else if (strcasecmp(argv[1], "build-at")==0) {
const char *blzFile;
const char *dstFile;
if (argc<4) {
fprintf(stderr,
"Usage:\n"
"%s build-at BLZ-file DESTFILE\n",
argv[0]);
return 1;
}
blzFile=argv[2];
dstFile=argv[3];
bis=AB_BankInfo_List_new();
dbIdx=GWEN_DB_Group_new("indexList");
if (readATBLZFile(blzFile)) {
DBG_ERROR(0, "Error.");
return 2;
}
if (saveBankInfos(dstFile)) {
return 3;
}
}
else if (strcasecmp(argv[1], "build-ch")==0) {
const char *blzFile, *dstFile;
if (argc<4) {
fprintf(stderr,
"Usage:\n"
"%s build-ch BLZ-file DESTFILE\n",
argv[0]);
return 1;
}
blzFile=argv[2];
dstFile=argv[3];
bis=AB_BankInfo_List_new();
dbIdx=GWEN_DB_Group_new("indexList");
if (readBcFile(blzFile)) {
DBG_ERROR(0, "Error.");
return 2;
}
if (saveBankInfos(dstFile)) {
return 3;
}
}
else if (strcasecmp(argv[1], "build-am")==0) {
const char *path, *country, *src2File, *dstFile;
if (argc<6) {
fprintf(stderr,
"Usage:\n"
"%s build-am SRCPATH COUNTRY FEDACHDIRFILE DESTFILE\n",
argv[0]);
return 1;
}
path=argv[2];
country=argv[3];
src2File=argv[4];
dstFile=argv[5];
bis=AB_BankInfo_List_new();
dbIdx=GWEN_DB_Group_new("indexList");
if (strcasecmp(country, "us")==0) {
if (readFedAchDirFile(src2File)) {
return 3;
}
}
if (readMSMFiles(path, "bank.xml", country)) {
DBG_ERROR(0, "Error.");
return 2;
}
if (readMSMFiles(path, "creditcard.xml", country)) {
DBG_ERROR(0, "Error.");
return 2;
}
if (readMSMFiles(path, "brokerage.xml", country)) {
DBG_ERROR(0, "Error.");
return 2;
}
if (saveBankInfos(dstFile)) {
return 3;
}
}
else if (strcasecmp(argv[1], "install")==0) {
const char *path;
const char *srcFile;
GWEN_BUFFER *dbuf;
uint32_t pos;
if (argc<4) {
fprintf(stderr,
"Usage:\n"
"%s install SRCFILE DESTDIR\n",
argv[0]);
return 1;
}
srcFile=argv[2];
path=argv[3];
bis=AB_BankInfo_List_new();
dbIdx=GWEN_DB_Group_new("indexList");
if (loadBanks(srcFile, bis)) {
fprintf(stderr, "Error loading data file.\n");
return 2;
}
fprintf(stdout,
"Writing database and index files to %s, "
"this will take a few minutes ...\n", path);
dbuf=GWEN_Buffer_new(0, 256, 0, 1);
GWEN_Buffer_AppendString(dbuf, path);
GWEN_Buffer_AppendByte(dbuf, GWEN_DIR_SEPARATOR);
pos=GWEN_Buffer_GetPos(dbuf);
GWEN_Buffer_AppendString(dbuf, "banks.data");
if (saveBankInfos(GWEN_Buffer_GetStart(dbuf))) {
fprintf(stderr, "Error saving data files.\n");
return 3;
}
GWEN_Buffer_Crop(dbuf, 0, pos);
fprintf(stdout, "- writing BLZ index...\n");
GWEN_Buffer_AppendString(dbuf, "blz.idx");
if (makeIndexBlz(GWEN_Buffer_GetStart(dbuf))) {
fprintf(stderr, "Error saving index file.\n");
GWEN_Buffer_free(dbuf);
return 3;
}
GWEN_Buffer_Crop(dbuf, 0, pos);
fprintf(stdout, "- writing BIC index...\n");
GWEN_Buffer_AppendString(dbuf, "bic.idx");
if (makeIndexBic(GWEN_Buffer_GetStart(dbuf))) {
fprintf(stderr, "Error saving index file.\n");
GWEN_Buffer_free(dbuf);
return 3;
}
GWEN_Buffer_Crop(dbuf, 0, pos);
fprintf(stdout, "- writing NAMLOC index...\n");
GWEN_Buffer_AppendString(dbuf, "namloc.idx");
if (makeIndexNameAndLoc(GWEN_Buffer_GetStart(dbuf))) {
fprintf(stderr, "Error saving index file.\n");
GWEN_Buffer_free(dbuf);
return 3;
}
GWEN_Buffer_free(dbuf);
}
else if (strcasecmp(argv[1], "update")==0) {
const char *srcFile1;
const char *srcFile2;
const char *destFile;
AB_BANKINFO_LIST *updBis;
AB_BANKINFO *curBi;
if (argc<5) {
fprintf(stderr,
"Usage:\n"
"%s update SRCFILE UPDATEFILE DESTFILE\n",
argv[0]);
return 1;
}
srcFile1=argv[2];
srcFile2=argv[3];
destFile=argv[4];
dbIdx=GWEN_DB_Group_new("indexList");
bis=AB_BankInfo_List_new();
updBis=AB_BankInfo_List_new();
if (loadBanks(srcFile1, bis)) {
fprintf(stderr, "Error loading data file.\n");
return 2;
}
if (loadBanks(srcFile2, updBis)) {
fprintf(stderr, "Error loading update data file.\n");
return 2;
}
curBi=AB_BankInfo_List_First(updBis);
while (curBi) {
const char *bankId;
bankId=AB_BankInfo_GetBankId(curBi);
if (bankId) {
AB_BANKINFO *origBi;
origBi=AB_BankInfo_List_First(bis);
while (origBi) {
const char *s;
s=AB_BankInfo_GetBankId(origBi);
if (s && strcasecmp(s, bankId)==0)
break;
origBi=AB_BankInfo_List_Next(origBi);
}
if (origBi) {
/* replace original */
AB_BankInfo_List_Del(origBi);
AB_BankInfo_free(origBi);
origBi=AB_BankInfo_dup(curBi);
AB_BankInfo_List_Add(origBi, bis);
}
}
curBi=AB_BankInfo_List_Next(curBi);
}
if (saveBankInfos(destFile)) {
return 3;
}
}
else if (strcasecmp(argv[1], "debug")==0) {
const char *bankFile;
if (argc<3) {
fprintf(stderr,
"Usage:\n"
"%s debug BLZ-file\n",
argv[0]);
return 1;
}
bankFile=argv[2];
bis=AB_BankInfo_List_new();
dbIdx=GWEN_DB_Group_new("indexList");
if (loadBanks(bankFile, bis)) {
DBG_ERROR(0, "Error.");
return 2;
}
if (GWEN_DB_WriteFile(dbIdx, "index.conf.out", GWEN_DB_FLAGS_DEFAULT)) {
DBG_ERROR(0, "Error writing index file");
return -1;
}
}
else if (strcasecmp(argv[1], "debug2")==0) {
const char *bankFile;
if (argc<3) {
fprintf(stderr,
"Usage:\n"
"%s debug BLZ-file\n",
argv[0]);
return 1;
}
bankFile=argv[2];
bis=AB_BankInfo_List_new();
dbIdx=GWEN_DB_Group_new("indexList");
if (readFedAchDirFile(bankFile)) {
return 3;
}
if (saveBankInfos("us.out")) {
return 3;
}
}
return 0;
}
aqbanking-6.7.7beta/src/tools/mkdeinfo/Makefile.in 0000644 0001750 0001750 00000055257 15075177042 017061 0000000 0000000 # Makefile.in generated by automake 1.16.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
@IS_WINDOWS_FALSE@noinst_PROGRAMS = mkdeinfo$(EXEEXT)
subdir = src/tools/mkdeinfo
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx_compile_warn.m4 \
$(top_srcdir)/m4/as-scrub-include.m4 \
$(top_srcdir)/m4/distri.m4 $(top_srcdir)/m4/gwenhywfar.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/os.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
PROGRAMS = $(noinst_PROGRAMS)
am__mkdeinfo_SOURCES_DIST = mkdeinfo.c
@IS_WINDOWS_FALSE@am_mkdeinfo_OBJECTS = mkdeinfo.$(OBJEXT)
mkdeinfo_OBJECTS = $(am_mkdeinfo_OBJECTS)
am__DEPENDENCIES_1 =
@IS_WINDOWS_FALSE@mkdeinfo_DEPENDENCIES = $(am__DEPENDENCIES_1) \
@IS_WINDOWS_FALSE@ $(am__DEPENDENCIES_1)
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/mkdeinfo.Po
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(mkdeinfo_SOURCES)
DIST_SOURCES = $(am__mkdeinfo_SOURCES_DIST)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
ADD_ACLOCAL_FLAGS = @ADD_ACLOCAL_FLAGS@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AQBANKING_CLI_VERSION_STRING = @AQBANKING_CLI_VERSION_STRING@
AQBANKING_FINTS_VERSION_STRING = @AQBANKING_FINTS_VERSION_STRING@
AQBANKING_SO_AGE = @AQBANKING_SO_AGE@
AQBANKING_SO_CURRENT = @AQBANKING_SO_CURRENT@
AQBANKING_SO_EFFECTIVE = @AQBANKING_SO_EFFECTIVE@
AQBANKING_SO_REVISION = @AQBANKING_SO_REVISION@
AQBANKING_VERSION_BUILD = @AQBANKING_VERSION_BUILD@
AQBANKING_VERSION_FULL_STRING = @AQBANKING_VERSION_FULL_STRING@
AQBANKING_VERSION_MAJOR = @AQBANKING_VERSION_MAJOR@
AQBANKING_VERSION_MINOR = @AQBANKING_VERSION_MINOR@
AQBANKING_VERSION_PATCHLEVEL = @AQBANKING_VERSION_PATCHLEVEL@
AQBANKING_VERSION_RELEASE_STRING = @AQBANKING_VERSION_RELEASE_STRING@
AQBANKING_VERSION_STRING = @AQBANKING_VERSION_STRING@
AQBANKING_VERSION_TAG = @AQBANKING_VERSION_TAG@
AQEBICS_CFLAGS = @AQEBICS_CFLAGS@
AQEBICS_LIBS = @AQEBICS_LIBS@
AR = @AR@
AS = @AS@
ASTYLE = @ASTYLE@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CSCOPE = @CSCOPE@
CTAGS = @CTAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DATETIME = @DATETIME@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN_DEFINE = @DOXYGEN_DEFINE@
DOXYGEN_EXCLUDE_PATTERNS = @DOXYGEN_EXCLUDE_PATTERNS@
DOXYGEN_FILE_PATTERNS = @DOXYGEN_FILE_PATTERNS@
DOXYGEN_INPUT = @DOXYGEN_INPUT@
DOXYGEN_TAGFILES = @DOXYGEN_TAGFILES@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
ETAGS = @ETAGS@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
FILECMD = @FILECMD@
GREP = @GREP@
GTK2_CFLAGS = @GTK2_CFLAGS@
GTK2_LIBS = @GTK2_LIBS@
GWENGUI_GTK2_CFLAGS = @GWENGUI_GTK2_CFLAGS@
GWENGUI_GTK2_LIBS = @GWENGUI_GTK2_LIBS@
GWENHYWFAR_MINIMUM_VERSION = @GWENHYWFAR_MINIMUM_VERSION@
HAVE_GWENGUI_GTK2 = @HAVE_GWENGUI_GTK2@
HAVE_I18N = @HAVE_I18N@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DLL_TARGET = @INSTALL_DLL_TARGET@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBXML_CFLAGS = @LIBXML_CFLAGS@
LIBXML_LIBS = @LIBXML_LIBS@
LIBXSLT_CFLAGS = @LIBXSLT_CFLAGS@
LIBXSLT_LIBS = @LIBXSLT_LIBS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MAKE_DLL_TARGET = @MAKE_DLL_TARGET@
MAKE_I18N_FILES = @MAKE_I18N_FILES@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MSGFMT = @MSGFMT@
MSGFMT_SUPPORTS_QT = @MSGFMT_SUPPORTS_QT@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSYSTEM = @OSYSTEM@
OS_TYPE = @OS_TYPE@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
RC = @RC@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
STRIPALL = @STRIPALL@
TUTORIALS = @TUTORIALS@
USE_DOT = @USE_DOT@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
XMLMERGE = @XMLMERGE@
XMLSEC_CFLAGS = @XMLSEC_CFLAGS@
XMLSEC_LIBS = @XMLSEC_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
aq_distrib_name = @aq_distrib_name@
aq_distrib_tag = @aq_distrib_tag@
aq_distrib_version = @aq_distrib_version@
aqbanking_backends = @aqbanking_backends@
aqbanking_cfg_searchdir = @aqbanking_cfg_searchdir@
aqbanking_data_searchdir = @aqbanking_data_searchdir@
aqbanking_headerdir = @aqbanking_headerdir@
aqbanking_headerdir_am = @aqbanking_headerdir_am@
aqbanking_includes = @aqbanking_includes@
aqbanking_internal_libs = @aqbanking_internal_libs@
aqbanking_ldflags = @aqbanking_ldflags@
aqbanking_libs = @aqbanking_libs@
aqbanking_locale_searchdir = @aqbanking_locale_searchdir@
aqbanking_modules = @aqbanking_modules@
aqbanking_pkgdatadir = @aqbanking_pkgdatadir@
aqbanking_plugin_searchdir = @aqbanking_plugin_searchdir@
aqbanking_plugindir = @aqbanking_plugindir@
aqbanking_plugins_backends_dirs = @aqbanking_plugins_backends_dirs@
aqbanking_plugins_backends_libs = @aqbanking_plugins_backends_libs@
aqbanking_plugins_bankinfo_dirs = @aqbanking_plugins_bankinfo_dirs@
aqbanking_plugins_bankinfo_libs = @aqbanking_plugins_bankinfo_libs@
aqbanking_plugins_imexporters_dirs = @aqbanking_plugins_imexporters_dirs@
aqbanking_plugins_imexporters_libs = @aqbanking_plugins_imexporters_libs@
aqbanking_plugins_parsers_dirs = @aqbanking_plugins_parsers_dirs@
aqbanking_symlinkdir = @aqbanking_symlinkdir@
aqbanking_sys_is_windows = @aqbanking_sys_is_windows@
aqbankingpp_modules = @aqbankingpp_modules@
aqebics_datadir = @aqebics_datadir@
aqebics_includes = @aqebics_includes@
aqebics_internal_libs = @aqebics_internal_libs@
aqebics_ldflags = @aqebics_ldflags@
aqebics_libs = @aqebics_libs@
aqfints_datadir = @aqfints_datadir@
aqhbci_datadir = @aqhbci_datadir@
aqhbci_includes = @aqhbci_includes@
aqhbci_internal_libs = @aqhbci_internal_libs@
aqhbci_ldflags = @aqhbci_ldflags@
aqhbci_libs = @aqhbci_libs@
aqofxconnect_includes = @aqofxconnect_includes@
aqofxconnect_internal_libs = @aqofxconnect_internal_libs@
aqofxconnect_libs = @aqofxconnect_libs@
aqpaypal_includes = @aqpaypal_includes@
aqpaypal_internal_libs = @aqpaypal_internal_libs@
aqpaypal_libs = @aqpaypal_libs@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
docpath = @docpath@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
gmp_libs = @gmp_libs@
gwenhywfar_bindir = @gwenhywfar_bindir@
gwenhywfar_dir = @gwenhywfar_dir@
gwenhywfar_has_crypt = @gwenhywfar_has_crypt@
gwenhywfar_headers = @gwenhywfar_headers@
gwenhywfar_includes = @gwenhywfar_includes@
gwenhywfar_libs = @gwenhywfar_libs@
gwenhywfar_plugins = @gwenhywfar_plugins@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
i18n_libs = @i18n_libs@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
typemaker2_exe = @typemaker2_exe@
visibility_cflags = @visibility_cflags@
with_aqebics = @with_aqebics@
with_aqhbci = @with_aqhbci@
AM_CPPFLAGS = -I$(top_srcdir)/src/libs -I$(top_builddir)/src/libs $(gwenhywfar_includes) -I$(srcdir)/..
@IS_WINDOWS_FALSE@mkdeinfo_SOURCES = mkdeinfo.c
@IS_WINDOWS_FALSE@mkdeinfo_LDADD = $(aqbanking_internal_libs) $(gwenhywfar_libs)
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/tools/mkdeinfo/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu src/tools/mkdeinfo/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
clean-noinstPROGRAMS:
@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
echo " rm -f" $$list; \
rm -f $$list || exit $$?; \
test -n "$(EXEEXT)" || exit 0; \
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
echo " rm -f" $$list; \
rm -f $$list
mkdeinfo$(EXEEXT): $(mkdeinfo_OBJECTS) $(mkdeinfo_DEPENDENCIES) $(EXTRA_mkdeinfo_DEPENDENCIES)
@rm -f mkdeinfo$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(mkdeinfo_OBJECTS) $(mkdeinfo_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mkdeinfo.Po@am__quote@ # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
am--depfiles: $(am__depfiles_remade)
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS)
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstPROGRAMS \
mostlyclean-am
distclean: distclean-am
-rm -f ./$(DEPDIR)/mkdeinfo.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f ./$(DEPDIR)/mkdeinfo.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am:
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
clean-generic clean-libtool clean-noinstPROGRAMS cscopelist-am \
ctags ctags-am distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am
.PRECIOUS: Makefile
# IS_WINDOWS
built_sources:
typefiles:
typedefs:
sources:
cppcheck:
for f in $(mkdeinfo_SOURCES); do \
cppcheck --force $$f ; \
done
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
aqbanking-6.7.7beta/src/Makefile.am 0000664 0001750 0001750 00000000630 14043610744 014072 0000000 0000000 SUBDIRS=libs tools test
sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d sources; \
done
built_sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d built_sources; \
done ;
cppcheck:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
typefiles:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typefiles; \
done
typedefs:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typedefs; \
done
aqbanking-6.7.7beta/src/libs/ 0000755 0001750 0001750 00000000000 15075177320 013052 5 0000000 0000000 aqbanking-6.7.7beta/src/libs/Makefile.in 0000644 0001750 0001750 00000130756 15075177037 015060 0000000 0000000 # Makefile.in generated by automake 1.16.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
noinst_PROGRAMS = testlib$(EXEEXT) ab_value_test$(EXEEXT)
TESTS = testlib$(EXEEXT) ab_value_test$(EXEEXT)
subdir = src/libs
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx_compile_warn.m4 \
$(top_srcdir)/m4/as-scrub-include.m4 \
$(top_srcdir)/m4/distri.m4 $(top_srcdir)/m4/gwenhywfar.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/os.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
PROGRAMS = $(noinst_PROGRAMS)
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(libdir)"
LTLIBRARIES = $(lib_LTLIBRARIES)
am__DEPENDENCIES_1 =
libaqbanking_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
$(am__DEPENDENCIES_1) aqbanking/libaqbanking_base.la \
plugins/libabplugins.la
am_libaqbanking_la_OBJECTS = dummy.lo
libaqbanking_la_OBJECTS = $(am_libaqbanking_la_OBJECTS)
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
libaqbanking_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
$(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
$(AM_CFLAGS) $(CFLAGS) $(libaqbanking_la_LDFLAGS) $(LDFLAGS) \
-o $@
am_ab_value_test_OBJECTS = ab-value-test.$(OBJEXT)
ab_value_test_OBJECTS = $(am_ab_value_test_OBJECTS)
ab_value_test_DEPENDENCIES = libaqbanking.la $(am__DEPENDENCIES_1)
am_testlib_OBJECTS = testlib.$(OBJEXT)
testlib_OBJECTS = $(am_testlib_OBJECTS)
testlib_DEPENDENCIES = libaqbanking.la $(am__DEPENDENCIES_1)
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/ab-value-test.Po \
./$(DEPDIR)/dummy.Plo ./$(DEPDIR)/testlib.Po
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(libaqbanking_la_SOURCES) $(ab_value_test_SOURCES) \
$(testlib_SOURCES)
DIST_SOURCES = $(libaqbanking_la_SOURCES) $(ab_value_test_SOURCES) \
$(testlib_SOURCES)
RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
ctags-recursive dvi-recursive html-recursive info-recursive \
install-data-recursive install-dvi-recursive \
install-exec-recursive install-html-recursive \
install-info-recursive install-pdf-recursive \
install-ps-recursive install-recursive installcheck-recursive \
installdirs-recursive pdf-recursive ps-recursive \
tags-recursive uninstall-recursive
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
distclean-recursive maintainer-clean-recursive
am__recursive_targets = \
$(RECURSIVE_TARGETS) \
$(RECURSIVE_CLEAN_TARGETS) \
$(am__extra_recursive_targets)
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
check recheck distdir distdir-am
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
am__tty_colors_dummy = \
mgn= red= grn= lgn= blu= brg= std=; \
am__color_tests=no
am__tty_colors = { \
$(am__tty_colors_dummy); \
if test "X$(AM_COLOR_TESTS)" = Xno; then \
am__color_tests=no; \
elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
am__color_tests=yes; \
elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
am__color_tests=yes; \
fi; \
if test $$am__color_tests = yes; then \
red='[0;31m'; \
grn='[0;32m'; \
lgn='[1;32m'; \
blu='[1;34m'; \
mgn='[0;35m'; \
brg='[1m'; \
std='[m'; \
fi; \
}
am__recheck_rx = ^[ ]*:recheck:[ ]*
am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
# A command that, given a newline-separated list of test names on the
# standard input, print the name of the tests that are to be re-run
# upon "make recheck".
am__list_recheck_tests = $(AWK) '{ \
recheck = 1; \
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
{ \
if (rc < 0) \
{ \
if ((getline line2 < ($$0 ".log")) < 0) \
recheck = 0; \
break; \
} \
else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
{ \
recheck = 0; \
break; \
} \
else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
{ \
break; \
} \
}; \
if (recheck) \
print $$0; \
close ($$0 ".trs"); \
close ($$0 ".log"); \
}'
# A command that, given a newline-separated list of test names on the
# standard input, create the global log from their .trs and .log files.
am__create_global_log = $(AWK) ' \
function fatal(msg) \
{ \
print "fatal: making $@: " msg | "cat >&2"; \
exit 1; \
} \
function rst_section(header) \
{ \
print header; \
len = length(header); \
for (i = 1; i <= len; i = i + 1) \
printf "="; \
printf "\n\n"; \
} \
{ \
copy_in_global_log = 1; \
global_test_result = "RUN"; \
while ((rc = (getline line < ($$0 ".trs"))) != 0) \
{ \
if (rc < 0) \
fatal("failed to read from " $$0 ".trs"); \
if (line ~ /$(am__global_test_result_rx)/) \
{ \
sub("$(am__global_test_result_rx)", "", line); \
sub("[ ]*$$", "", line); \
global_test_result = line; \
} \
else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
copy_in_global_log = 0; \
}; \
if (copy_in_global_log) \
{ \
rst_section(global_test_result ": " $$0); \
while ((rc = (getline line < ($$0 ".log"))) != 0) \
{ \
if (rc < 0) \
fatal("failed to read from " $$0 ".log"); \
print line; \
}; \
printf "\n"; \
}; \
close ($$0 ".trs"); \
close ($$0 ".log"); \
}'
# Restructured Text title.
am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
# Solaris 10 'make', and several other traditional 'make' implementations,
# pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
# by disabling -e (using the XSI extension "set +e") if it's set.
am__sh_e_setup = case $$- in *e*) set +e;; esac
# Default flags passed to test drivers.
am__common_driver_flags = \
--color-tests "$$am__color_tests" \
--enable-hard-errors "$$am__enable_hard_errors" \
--expect-failure "$$am__expect_failure"
# To be inserted before the command running the test. Creates the
# directory for the log if needed. Stores in $dir the directory
# containing $f, in $tst the test, in $log the log. Executes the
# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
# passes TESTS_ENVIRONMENT. Set up options for the wrapper that
# will run the test scripts (or their associated LOG_COMPILER, if
# thy have one).
am__check_pre = \
$(am__sh_e_setup); \
$(am__vpath_adj_setup) $(am__vpath_adj) \
$(am__tty_colors); \
srcdir=$(srcdir); export srcdir; \
case "$@" in \
*/*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
*) am__odir=.;; \
esac; \
test "x$$am__odir" = x"." || test -d "$$am__odir" \
|| $(MKDIR_P) "$$am__odir" || exit $$?; \
if test -f "./$$f"; then dir=./; \
elif test -f "$$f"; then dir=; \
else dir="$(srcdir)/"; fi; \
tst=$$dir$$f; log='$@'; \
if test -n '$(DISABLE_HARD_ERRORS)'; then \
am__enable_hard_errors=no; \
else \
am__enable_hard_errors=yes; \
fi; \
case " $(XFAIL_TESTS) " in \
*[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
am__expect_failure=yes;; \
*) \
am__expect_failure=no;; \
esac; \
$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
# A shell command to get the names of the tests scripts with any registered
# extension removed (i.e., equivalently, the names of the test logs, with
# the '.log' extension removed). The result is saved in the shell variable
# '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
# since that might cause problem with VPATH rewrites for suffix-less tests.
# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
am__set_TESTS_bases = \
bases='$(TEST_LOGS)'; \
bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
bases=`echo $$bases`
AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
RECHECK_LOGS = $(TEST_LOGS)
TEST_SUITE_LOG = test-suite.log
TEST_EXTENSIONS = @EXEEXT@ .test
LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
am__set_b = \
case '$@' in \
*/*) \
case '$*' in \
*/*) b='$*';; \
*) b=`echo '$@' | sed 's/\.log$$//'`; \
esac;; \
*) \
b='$*';; \
esac
am__test_logs1 = $(TESTS:=.log)
am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
TEST_LOGS = $(am__test_logs2:.test.log=.log)
TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
$(TEST_LOG_FLAGS)
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \
$(top_srcdir)/test-driver
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
am__relativize = \
dir0=`pwd`; \
sed_first='s,^\([^/]*\)/.*$$,\1,'; \
sed_rest='s,^[^/]*/*,,'; \
sed_last='s,^.*/\([^/]*\)$$,\1,'; \
sed_butlast='s,/*[^/]*$$,,'; \
while test -n "$$dir1"; do \
first=`echo "$$dir1" | sed -e "$$sed_first"`; \
if test "$$first" != "."; then \
if test "$$first" = ".."; then \
dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
else \
first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
if test "$$first2" = "$$first"; then \
dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
else \
dir2="../$$dir2"; \
fi; \
dir0="$$dir0"/"$$first"; \
fi; \
fi; \
dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
done; \
reldir="$$dir2"
ACLOCAL = @ACLOCAL@
ADD_ACLOCAL_FLAGS = @ADD_ACLOCAL_FLAGS@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AQBANKING_CLI_VERSION_STRING = @AQBANKING_CLI_VERSION_STRING@
AQBANKING_FINTS_VERSION_STRING = @AQBANKING_FINTS_VERSION_STRING@
AQBANKING_SO_AGE = @AQBANKING_SO_AGE@
AQBANKING_SO_CURRENT = @AQBANKING_SO_CURRENT@
AQBANKING_SO_EFFECTIVE = @AQBANKING_SO_EFFECTIVE@
AQBANKING_SO_REVISION = @AQBANKING_SO_REVISION@
AQBANKING_VERSION_BUILD = @AQBANKING_VERSION_BUILD@
AQBANKING_VERSION_FULL_STRING = @AQBANKING_VERSION_FULL_STRING@
AQBANKING_VERSION_MAJOR = @AQBANKING_VERSION_MAJOR@
AQBANKING_VERSION_MINOR = @AQBANKING_VERSION_MINOR@
AQBANKING_VERSION_PATCHLEVEL = @AQBANKING_VERSION_PATCHLEVEL@
AQBANKING_VERSION_RELEASE_STRING = @AQBANKING_VERSION_RELEASE_STRING@
AQBANKING_VERSION_STRING = @AQBANKING_VERSION_STRING@
AQBANKING_VERSION_TAG = @AQBANKING_VERSION_TAG@
AQEBICS_CFLAGS = @AQEBICS_CFLAGS@
AQEBICS_LIBS = @AQEBICS_LIBS@
AR = @AR@
AS = @AS@
ASTYLE = @ASTYLE@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CSCOPE = @CSCOPE@
CTAGS = @CTAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DATETIME = @DATETIME@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN_DEFINE = @DOXYGEN_DEFINE@
DOXYGEN_EXCLUDE_PATTERNS = @DOXYGEN_EXCLUDE_PATTERNS@
DOXYGEN_FILE_PATTERNS = @DOXYGEN_FILE_PATTERNS@
DOXYGEN_INPUT = @DOXYGEN_INPUT@
DOXYGEN_TAGFILES = @DOXYGEN_TAGFILES@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
ETAGS = @ETAGS@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
FILECMD = @FILECMD@
GREP = @GREP@
GTK2_CFLAGS = @GTK2_CFLAGS@
GTK2_LIBS = @GTK2_LIBS@
GWENGUI_GTK2_CFLAGS = @GWENGUI_GTK2_CFLAGS@
GWENGUI_GTK2_LIBS = @GWENGUI_GTK2_LIBS@
GWENHYWFAR_MINIMUM_VERSION = @GWENHYWFAR_MINIMUM_VERSION@
HAVE_GWENGUI_GTK2 = @HAVE_GWENGUI_GTK2@
HAVE_I18N = @HAVE_I18N@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DLL_TARGET = @INSTALL_DLL_TARGET@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBXML_CFLAGS = @LIBXML_CFLAGS@
LIBXML_LIBS = @LIBXML_LIBS@
LIBXSLT_CFLAGS = @LIBXSLT_CFLAGS@
LIBXSLT_LIBS = @LIBXSLT_LIBS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MAKE_DLL_TARGET = @MAKE_DLL_TARGET@
MAKE_I18N_FILES = @MAKE_I18N_FILES@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MSGFMT = @MSGFMT@
MSGFMT_SUPPORTS_QT = @MSGFMT_SUPPORTS_QT@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSYSTEM = @OSYSTEM@
OS_TYPE = @OS_TYPE@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
RC = @RC@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
STRIPALL = @STRIPALL@
TUTORIALS = @TUTORIALS@
USE_DOT = @USE_DOT@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
XMLMERGE = @XMLMERGE@
XMLSEC_CFLAGS = @XMLSEC_CFLAGS@
XMLSEC_LIBS = @XMLSEC_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
aq_distrib_name = @aq_distrib_name@
aq_distrib_tag = @aq_distrib_tag@
aq_distrib_version = @aq_distrib_version@
aqbanking_backends = @aqbanking_backends@
aqbanking_cfg_searchdir = @aqbanking_cfg_searchdir@
aqbanking_data_searchdir = @aqbanking_data_searchdir@
aqbanking_headerdir = @aqbanking_headerdir@
aqbanking_headerdir_am = @aqbanking_headerdir_am@
aqbanking_includes = @aqbanking_includes@
aqbanking_internal_libs = @aqbanking_internal_libs@
aqbanking_ldflags = @aqbanking_ldflags@
aqbanking_libs = @aqbanking_libs@
aqbanking_locale_searchdir = @aqbanking_locale_searchdir@
aqbanking_modules = @aqbanking_modules@
aqbanking_pkgdatadir = @aqbanking_pkgdatadir@
aqbanking_plugin_searchdir = @aqbanking_plugin_searchdir@
aqbanking_plugindir = @aqbanking_plugindir@
aqbanking_plugins_backends_dirs = @aqbanking_plugins_backends_dirs@
aqbanking_plugins_backends_libs = @aqbanking_plugins_backends_libs@
aqbanking_plugins_bankinfo_dirs = @aqbanking_plugins_bankinfo_dirs@
aqbanking_plugins_bankinfo_libs = @aqbanking_plugins_bankinfo_libs@
aqbanking_plugins_imexporters_dirs = @aqbanking_plugins_imexporters_dirs@
aqbanking_plugins_imexporters_libs = @aqbanking_plugins_imexporters_libs@
aqbanking_plugins_parsers_dirs = @aqbanking_plugins_parsers_dirs@
aqbanking_symlinkdir = @aqbanking_symlinkdir@
aqbanking_sys_is_windows = @aqbanking_sys_is_windows@
aqbankingpp_modules = @aqbankingpp_modules@
aqebics_datadir = @aqebics_datadir@
aqebics_includes = @aqebics_includes@
aqebics_internal_libs = @aqebics_internal_libs@
aqebics_ldflags = @aqebics_ldflags@
aqebics_libs = @aqebics_libs@
aqfints_datadir = @aqfints_datadir@
aqhbci_datadir = @aqhbci_datadir@
aqhbci_includes = @aqhbci_includes@
aqhbci_internal_libs = @aqhbci_internal_libs@
aqhbci_ldflags = @aqhbci_ldflags@
aqhbci_libs = @aqhbci_libs@
aqofxconnect_includes = @aqofxconnect_includes@
aqofxconnect_internal_libs = @aqofxconnect_internal_libs@
aqofxconnect_libs = @aqofxconnect_libs@
aqpaypal_includes = @aqpaypal_includes@
aqpaypal_internal_libs = @aqpaypal_internal_libs@
aqpaypal_libs = @aqpaypal_libs@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
docpath = @docpath@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
gmp_libs = @gmp_libs@
gwenhywfar_bindir = @gwenhywfar_bindir@
gwenhywfar_dir = @gwenhywfar_dir@
gwenhywfar_has_crypt = @gwenhywfar_has_crypt@
gwenhywfar_headers = @gwenhywfar_headers@
gwenhywfar_includes = @gwenhywfar_includes@
gwenhywfar_libs = @gwenhywfar_libs@
gwenhywfar_plugins = @gwenhywfar_plugins@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
i18n_libs = @i18n_libs@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
typemaker2_exe = @typemaker2_exe@
visibility_cflags = @visibility_cflags@
with_aqebics = @with_aqebics@
with_aqhbci = @with_aqhbci@
DIST_SUBDIRS = aqbanking aqbankingpp plugins
SUBDIRS = aqbanking plugins
AM_CPPFLAGS = $(gwenhywfar_includes) -I$(aqbanking_symlinkdir)
lib_LTLIBRARIES = libaqbanking.la
libaqbanking_la_SOURCES = dummy.c
libaqbanking_la_LDFLAGS = -no-undefined -version-info @AQBANKING_SO_CURRENT@:@AQBANKING_SO_REVISION@:@AQBANKING_SO_AGE@
libaqbanking_la_LIBADD = $(gwenhywfar_libs) $(gmp_libs) $(i18n_libs) $(AQEBICS_LIBS) \
aqbanking/libaqbanking_base.la \
plugins/libabplugins.la
# Build and link a test program to verify the linker flags
testlib_SOURCES = testlib.c
testlib_LDADD = libaqbanking.la $(gwenhywfar_libs)
# Another test program to verify the parsing of decimal numbers
ab_value_test_SOURCES = ab-value-test.c
ab_value_test_LDADD = libaqbanking.la $(gwenhywfar_libs)
all: all-recursive
.SUFFIXES:
.SUFFIXES: .c .lo .log .o .obj .test .test$(EXEEXT) .trs
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/libs/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu src/libs/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
clean-noinstPROGRAMS:
@list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
echo " rm -f" $$list; \
rm -f $$list || exit $$?; \
test -n "$(EXEEXT)" || exit 0; \
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
echo " rm -f" $$list; \
rm -f $$list
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
@$(NORMAL_INSTALL)
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
list2=; for p in $$list; do \
if test -f $$p; then \
list2="$$list2 $$p"; \
else :; fi; \
done; \
test -z "$$list2" || { \
echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
$(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
}
uninstall-libLTLIBRARIES:
@$(NORMAL_UNINSTALL)
@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
for p in $$list; do \
$(am__strip_dir) \
echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
done
clean-libLTLIBRARIES:
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
@list='$(lib_LTLIBRARIES)'; \
locs=`for p in $$list; do echo $$p; done | \
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
sort -u`; \
test -z "$$locs" || { \
echo rm -f $${locs}; \
rm -f $${locs}; \
}
libaqbanking.la: $(libaqbanking_la_OBJECTS) $(libaqbanking_la_DEPENDENCIES) $(EXTRA_libaqbanking_la_DEPENDENCIES)
$(AM_V_CCLD)$(libaqbanking_la_LINK) -rpath $(libdir) $(libaqbanking_la_OBJECTS) $(libaqbanking_la_LIBADD) $(LIBS)
ab_value_test$(EXEEXT): $(ab_value_test_OBJECTS) $(ab_value_test_DEPENDENCIES) $(EXTRA_ab_value_test_DEPENDENCIES)
@rm -f ab_value_test$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(ab_value_test_OBJECTS) $(ab_value_test_LDADD) $(LIBS)
testlib$(EXEEXT): $(testlib_OBJECTS) $(testlib_DEPENDENCIES) $(EXTRA_testlib_DEPENDENCIES)
@rm -f testlib$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(testlib_OBJECTS) $(testlib_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ab-value-test.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dummy.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testlib.Po@am__quote@ # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
am--depfiles: $(am__depfiles_remade)
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
# This directory's subdirectories are mostly independent; you can cd
# into them and run 'make' without going through this Makefile.
# To change the values of 'make' variables: instead of editing Makefiles,
# (1) if the variable is set in 'config.status', edit 'config.status'
# (which will cause the Makefiles to be regenerated when you run 'make');
# (2) otherwise, pass the desired values on the 'make' command line.
$(am__recursive_targets):
@fail=; \
if $(am__make_keepgoing); then \
failcom='fail=yes'; \
else \
failcom='exit 1'; \
fi; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| eval $$failcom; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-recursive
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
empty_fix=.; \
else \
include_option=--include; \
empty_fix=; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test ! -f $$subdir/TAGS || \
set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-recursive
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-recursive
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
# Recover from deleted '.trs' file; this should ensure that
# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
# both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
# to avoid problems with "make -n".
.log.trs:
rm -f $< $@
$(MAKE) $(AM_MAKEFLAGS) $<
# Leading 'am--fnord' is there to ensure the list of targets does not
# expand to empty, as could happen e.g. with make check TESTS=''.
am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
am--force-recheck:
@:
$(TEST_SUITE_LOG): $(TEST_LOGS)
@$(am__set_TESTS_bases); \
am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
redo_bases=`for i in $$bases; do \
am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
done`; \
if test -n "$$redo_bases"; then \
redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
if $(am__make_dryrun); then :; else \
rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
fi; \
fi; \
if test -n "$$am__remaking_logs"; then \
echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
"recursion detected" >&2; \
elif test -n "$$redo_logs"; then \
am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
fi; \
if $(am__make_dryrun); then :; else \
st=0; \
errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
for i in $$redo_bases; do \
test -f $$i.trs && test -r $$i.trs \
|| { echo "$$errmsg $$i.trs" >&2; st=1; }; \
test -f $$i.log && test -r $$i.log \
|| { echo "$$errmsg $$i.log" >&2; st=1; }; \
done; \
test $$st -eq 0 || exit 1; \
fi
@$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
ws='[ ]'; \
results=`for b in $$bases; do echo $$b.trs; done`; \
test -n "$$results" || results=/dev/null; \
all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
if test `expr $$fail + $$xpass + $$error` -eq 0; then \
success=true; \
else \
success=false; \
fi; \
br='==================='; br=$$br$$br$$br$$br; \
result_count () \
{ \
if test x"$$1" = x"--maybe-color"; then \
maybe_colorize=yes; \
elif test x"$$1" = x"--no-color"; then \
maybe_colorize=no; \
else \
echo "$@: invalid 'result_count' usage" >&2; exit 4; \
fi; \
shift; \
desc=$$1 count=$$2; \
if test $$maybe_colorize = yes && test $$count -gt 0; then \
color_start=$$3 color_end=$$std; \
else \
color_start= color_end=; \
fi; \
echo "$${color_start}# $$desc $$count$${color_end}"; \
}; \
create_testsuite_report () \
{ \
result_count $$1 "TOTAL:" $$all "$$brg"; \
result_count $$1 "PASS: " $$pass "$$grn"; \
result_count $$1 "SKIP: " $$skip "$$blu"; \
result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
result_count $$1 "FAIL: " $$fail "$$red"; \
result_count $$1 "XPASS:" $$xpass "$$red"; \
result_count $$1 "ERROR:" $$error "$$mgn"; \
}; \
{ \
echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
$(am__rst_title); \
create_testsuite_report --no-color; \
echo; \
echo ".. contents:: :depth: 2"; \
echo; \
for b in $$bases; do echo $$b; done \
| $(am__create_global_log); \
} >$(TEST_SUITE_LOG).tmp || exit 1; \
mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
if $$success; then \
col="$$grn"; \
else \
col="$$red"; \
test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
fi; \
echo "$${col}$$br$${std}"; \
echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
echo "$${col}$$br$${std}"; \
create_testsuite_report --maybe-color; \
echo "$$col$$br$$std"; \
if $$success; then :; else \
echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
if test -n "$(PACKAGE_BUGREPORT)"; then \
echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
fi; \
echo "$$col$$br$$std"; \
fi; \
$$success || exit 1
check-TESTS:
@list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
@list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
@set +e; $(am__set_TESTS_bases); \
log_list=`for i in $$bases; do echo $$i.log; done`; \
trs_list=`for i in $$bases; do echo $$i.trs; done`; \
log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
exit $$?;
recheck: all
@test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
@set +e; $(am__set_TESTS_bases); \
bases=`for i in $$bases; do echo $$i; done \
| $(am__list_recheck_tests)` || exit 1; \
log_list=`for i in $$bases; do echo $$i.log; done`; \
log_list=`echo $$log_list`; \
$(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
am__force_recheck=am--force-recheck \
TEST_LOGS="$$log_list"; \
exit $$?
testlib.log: testlib$(EXEEXT)
@p='testlib$(EXEEXT)'; \
b='testlib'; \
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
--log-file $$b.log --trs-file $$b.trs \
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
"$$tst" $(AM_TESTS_FD_REDIRECT)
ab_value_test.log: ab_value_test$(EXEEXT)
@p='ab_value_test$(EXEEXT)'; \
b='ab_value_test'; \
$(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
--log-file $$b.log --trs-file $$b.trs \
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
"$$tst" $(AM_TESTS_FD_REDIRECT)
.test.log:
@p='$<'; \
$(am__set_b); \
$(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
--log-file $$b.log --trs-file $$b.trs \
$(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
"$$tst" $(AM_TESTS_FD_REDIRECT)
@am__EXEEXT_TRUE@.test$(EXEEXT).log:
@am__EXEEXT_TRUE@ @p='$<'; \
@am__EXEEXT_TRUE@ $(am__set_b); \
@am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
@am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
@am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
@am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
$(am__make_dryrun) \
|| test -d "$(distdir)/$$subdir" \
|| $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
$(am__relativize); \
new_distdir=$$reldir; \
dir1=$$subdir; dir2="$(top_distdir)"; \
$(am__relativize); \
new_top_distdir=$$reldir; \
echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$$new_top_distdir" \
distdir="$$new_distdir" \
am__remove_distdir=: \
am__skip_length_check=: \
am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
check: check-recursive
all-am: Makefile $(PROGRAMS) $(LTLIBRARIES)
installdirs: installdirs-recursive
installdirs-am:
for dir in "$(DESTDIR)$(libdir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
-test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
-test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
-test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
clean-noinstPROGRAMS mostlyclean-am
distclean: distclean-recursive
-rm -f ./$(DEPDIR)/ab-value-test.Po
-rm -f ./$(DEPDIR)/dummy.Plo
-rm -f ./$(DEPDIR)/testlib.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-recursive
dvi-am:
html: html-recursive
html-am:
info: info-recursive
info-am:
install-data-am:
install-dvi: install-dvi-recursive
install-dvi-am:
install-exec-am: install-libLTLIBRARIES
install-html: install-html-recursive
install-html-am:
install-info: install-info-recursive
install-info-am:
install-man:
install-pdf: install-pdf-recursive
install-pdf-am:
install-ps: install-ps-recursive
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f ./$(DEPDIR)/ab-value-test.Po
-rm -f ./$(DEPDIR)/dummy.Plo
-rm -f ./$(DEPDIR)/testlib.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-libLTLIBRARIES
.MAKE: $(am__recursive_targets) check-am install-am install-strip
.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
am--depfiles check check-TESTS check-am clean clean-generic \
clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS \
cscopelist-am ctags ctags-am distclean distclean-compile \
distclean-generic distclean-libtool distclean-tags distdir dvi \
dvi-am html html-am info info-am install install-am \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-info install-info-am install-libLTLIBRARIES \
install-man install-pdf install-pdf-am install-ps \
install-ps-am install-strip installcheck installcheck-am \
installdirs installdirs-am maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
recheck tags tags-am uninstall uninstall-am \
uninstall-libLTLIBRARIES
.PRECIOUS: Makefile
sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d sources; \
done
built_sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d built_sources; \
done ;
typefiles:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typefiles; \
done
typedefs:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typedefs; \
done
cppcheck:
for f in $(libaqbanking_la_SOURCES); do \
cppcheck --force $$f ; \
done
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
aqbanking-6.7.7beta/src/libs/testlib.c 0000664 0001750 0001750 00000010722 14043610745 014605 0000000 0000000
#ifdef HAVE_CONFIG_H
# include
#endif
#include
#include
#include
#include
void dumpNumDenom(const char *t, const AB_VALUE *v)
{
char numbuf[256];
if (!AB_Value_GetNumDenomString(v, numbuf, sizeof(numbuf))) {
fprintf(stderr, "%s (num/den): %s\n", t, numbuf);
}
else {
fprintf(stderr, "%s (num/den): Error\n", t);
}
}
int test1(int argc, char **argv)
{
AB_VALUE *v1;
AB_VALUE *v2;
AB_VALUE *v3;
AB_VALUE *v4;
int rv;
v1=AB_Value_fromString("987654321.12345");
if (v1==NULL) {
fprintf(stderr, "ERROR: v1\n");
return 1;
}
fprintf(stderr, "v1 : %f\n",
AB_Value_GetValueAsDouble(v1));
dumpNumDenom("v1", v1);
v2=AB_Value_fromString("10/1");
if (v2==NULL) {
fprintf(stderr, "ERROR: v2\n");
return 1;
}
fprintf(stderr, "v2 : %f\n",
AB_Value_GetValueAsDouble(v2));
dumpNumDenom("v2", v2);
v3=AB_Value_dup(v1);
if (v3==NULL) {
fprintf(stderr, "ERROR: v3\n");
return 1;
}
fprintf(stderr, "v3 : %f\n",
AB_Value_GetValueAsDouble(v3));
dumpNumDenom("v3", v3);
v4=AB_Value_fromString("-1250,");
if (v4==NULL) {
fprintf(stderr, "ERROR: v4\n");
return 1;
}
fprintf(stderr, "v4 : %f\n",
AB_Value_GetValueAsDouble(v4));
dumpNumDenom("v4", v4);
rv=AB_Value_MultValue(v3, v2);
if (rv) {
fprintf(stderr, "ERROR: v3*v2\n");
return 1;
}
fprintf(stderr, "r : %f\n",
AB_Value_GetValueAsDouble(v3));
dumpNumDenom("r ", v3);
if (AB_Value_GetValueAsDouble(v3)!=9876543211.2345) {
fprintf(stderr, "Bad result : %f\n",
AB_Value_GetValueAsDouble(v3));
return 1;
}
dumpNumDenom("v3", v3);
fprintf(stderr, "Ok.\n");
return 0;
}
int test4(int argc, char **argv)
{
int rv;
// AB_BANKING *ab;
GWEN_GUI *gui;
GWEN_BUFFER *tbuf;
rv=GWEN_Init();
if (rv) {
fprintf(stderr, "ERROR: Unable to init Gwen.\n");
exit(2);
}
gui=GWEN_Gui_CGui_new();
GWEN_Gui_SetGui(gui);
// ab=AB_Banking_new("testlib", NULL, 0);
if (argc<3) {
fprintf(stderr, "Missing bank code and account number\n");
return 1;
}
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
rv=AB_Banking_MakeGermanIban(argv[1], argv[2], tbuf);
if (rv<0) {
fprintf(stderr, "ERROR: %d\n", rv);
return 2;
}
rv=AB_Banking_CheckIban(GWEN_Buffer_GetStart(tbuf));
if (rv != 0) {
fprintf(stderr, "Bad IBAN (%s)\n", GWEN_Buffer_GetStart(tbuf));
return 2;
}
fprintf(stderr, "Verified IBAN: %s\n", GWEN_Buffer_GetStart(tbuf));
return 0;
}
int test5(int argc, char **argv)
{
AB_VALUE *v1;
GWEN_BUFFER *tbuf;
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
v1=AB_Value_fromString("11,90");
if (v1==NULL) {
fprintf(stderr, "ERROR: v1\n");
return 1;
}
AB_Value_toHbciString(v1, tbuf);
if (strcmp(GWEN_Buffer_GetStart(tbuf), "11,9")!=0) {
fprintf(stderr, "ERROR: Bad HBCI string (%s)\n", GWEN_Buffer_GetStart(tbuf));
return 2;
}
GWEN_Buffer_free(tbuf);
AB_Value_free(v1);
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
v1=AB_Value_fromString("11,91");
if (v1==NULL) {
fprintf(stderr, "ERROR: v1\n");
return 1;
}
AB_Value_toHbciString(v1, tbuf);
if (strcmp(GWEN_Buffer_GetStart(tbuf), "11,91")!=0) {
fprintf(stderr, "ERROR: Bad HBCI string (%s)\n", GWEN_Buffer_GetStart(tbuf));
return 2;
}
GWEN_Buffer_free(tbuf);
AB_Value_free(v1);
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
v1=AB_Value_fromString("1190");
if (v1==NULL) {
fprintf(stderr, "ERROR: v1\n");
return 1;
}
AB_Value_toHbciString(v1, tbuf);
if (strcmp(GWEN_Buffer_GetStart(tbuf), "1190,")!=0) {
fprintf(stderr, "ERROR: Bad HBCI string (%s)\n", GWEN_Buffer_GetStart(tbuf));
return 2;
}
GWEN_Buffer_free(tbuf);
AB_Value_free(v1);
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
v1=AB_Value_fromString("11,00");
if (v1==NULL) {
fprintf(stderr, "ERROR: v1\n");
return 1;
}
AB_Value_toHbciString(v1, tbuf);
if (strcmp(GWEN_Buffer_GetStart(tbuf), "11,")!=0) {
fprintf(stderr, "ERROR: Bad HBCI string (%s)\n", GWEN_Buffer_GetStart(tbuf));
return 2;
}
GWEN_Buffer_free(tbuf);
AB_Value_free(v1);
fprintf(stderr, "Ok.\n");
return 0;
}
int main(int argc, char *argv[])
{
#if 1
return test5(argc, argv);
#else
AB_BANKING *ab;
ab=AB_Banking_new("testlib", "testname",
AB_BANKING_EXTENSION_NONE);
AB_Banking_free(ab);
return 0;
#endif
}
aqbanking-6.7.7beta/src/libs/ab-value-test.c 0000664 0001750 0001750 00000001600 14043610744 015602 0000000 0000000 #include
#include
char *input = "1,361.54";
int main(int argc, char *argv[])
{
AB_VALUE *value;
GWEN_BUFFER *buf, *buf2;
int result = 0;
if (argc > 1)
input = argv[1];
value = AB_Value_fromString(input);
buf = GWEN_Buffer_new(NULL, 300, 0, 0);
AB_Value_toString(value, buf);
if (strcmp(GWEN_Buffer_GetStart(buf), "136154/100") != 0)
result = -1;
buf2 = GWEN_Buffer_new(NULL, 300, 0, 0);
AB_Value_toHumanReadableString(value, buf2, 2, 0);
if ((strcmp(GWEN_Buffer_GetStart(buf2), "1361.54") != 0)
&& (strcmp(GWEN_Buffer_GetStart(buf2), "1361,54") != 0))
result = -1;
printf("Storing %s internally as rational number %s; as double: %s\n",
input, GWEN_Buffer_GetStart(buf), GWEN_Buffer_GetStart(buf2));
GWEN_Buffer_free(buf);
GWEN_Buffer_free(buf2);
AB_Value_free(value);
return result;
}
aqbanking-6.7.7beta/src/libs/Makefile.am 0000664 0001750 0001750 00000002435 14043610744 015030 0000000 0000000 DIST_SUBDIRS=aqbanking aqbankingpp plugins
SUBDIRS=aqbanking plugins
AM_CPPFLAGS = $(gwenhywfar_includes) -I$(aqbanking_symlinkdir)
lib_LTLIBRARIES=libaqbanking.la
libaqbanking_la_SOURCES= dummy.c
libaqbanking_la_LDFLAGS = -no-undefined -version-info @AQBANKING_SO_CURRENT@:@AQBANKING_SO_REVISION@:@AQBANKING_SO_AGE@
libaqbanking_la_LIBADD= $(gwenhywfar_libs) $(gmp_libs) $(i18n_libs) $(AQEBICS_LIBS) \
aqbanking/libaqbanking_base.la \
plugins/libabplugins.la
noinst_PROGRAMS = testlib ab_value_test
# Build and link a test program to verify the linker flags
testlib_SOURCES = testlib.c
testlib_LDADD = libaqbanking.la $(gwenhywfar_libs)
# Another test program to verify the parsing of decimal numbers
ab_value_test_SOURCES = ab-value-test.c
ab_value_test_LDADD = libaqbanking.la $(gwenhywfar_libs)
TESTS = testlib ab_value_test
sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d sources; \
done
built_sources:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d built_sources; \
done ;
typefiles:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typefiles; \
done
typedefs:
for d in $(SUBDIRS); do \
$(MAKE) -C $$d typedefs; \
done
cppcheck:
for f in $(libaqbanking_la_SOURCES); do \
cppcheck --force $$f ; \
done
for d in $(SUBDIRS); do \
$(MAKE) -C $$d cppcheck; \
done
aqbanking-6.7.7beta/src/libs/aqbanking/ 0000755 0001750 0001750 00000000000 15075177320 015005 5 0000000 0000000 aqbanking-6.7.7beta/src/libs/aqbanking/banking_bankinfo.c 0000664 0001750 0001750 00000017457 14627071733 020374 0000000 0000000 /***************************************************************************
begin : Wed Oct 03 2018
copyright : (C) 2018 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifdef AQBANKING_WITH_PLUGIN_BANKINFO_DE
# include "src/libs/plugins/bankinfo/de/de.h"
#endif
AB_BANKINFO_PLUGIN *AB_Banking_CreateImBankInfoPlugin(AB_BANKING *ab, const char *modname)
{
if (modname && *modname) {
#ifdef AQBANKING_WITH_PLUGIN_BANKINFO_DE
if (strcasecmp(modname, "de")==0)
return AB_BankInfoPluginDE_new(ab);
#endif
DBG_ERROR(AQBANKING_LOGDOMAIN, "Plugin [%s] not compiled-in", modname);
}
return NULL;
}
AB_BANKINFO_PLUGIN *AB_Banking_FindBankInfoPlugin(AB_BANKING *ab, const char *country)
{
AB_BANKINFO_PLUGIN *bip;
bip=AB_BankInfoPlugin_List_First(ab_bankInfoPlugins);
while (bip) {
if (strcasecmp(AB_BankInfoPlugin_GetCountry(bip), country)==0)
break;
bip=AB_BankInfoPlugin_List_Next(bip);
}
return bip;
}
AB_BANKINFO_PLUGIN *AB_Banking_GetBankInfoPlugin(AB_BANKING *ab, const char *country)
{
AB_BANKINFO_PLUGIN *bip;
assert(ab);
assert(country);
bip=AB_Banking_FindBankInfoPlugin(ab, country);
if (bip)
return bip;
bip=AB_Banking_CreateImBankInfoPlugin(ab, country);
if (bip)
AB_BankInfoPlugin_List_Add(bip, ab_bankInfoPlugins);
return bip;
}
AB_BANKINFO *AB_Banking_GetBankInfo(AB_BANKING *ab,
const char *country,
const char *branchId,
const char *bankId)
{
AB_BANKINFO_PLUGIN *bip;
assert(ab);
assert(country);
bip=AB_Banking_GetBankInfoPlugin(ab, country);
if (!bip) {
DBG_INFO(AQBANKING_LOGDOMAIN, "BankInfo plugin for country \"%s\" not found", country);
return 0;
}
return AB_BankInfoPlugin_GetBankInfo(bip, branchId, bankId);
}
int AB_Banking_GetBankInfoByTemplate(AB_BANKING *ab,
const char *country,
AB_BANKINFO *tbi,
AB_BANKINFO_LIST2 *bl)
{
AB_BANKINFO_PLUGIN *bip;
assert(ab);
assert(country);
bip=AB_Banking_GetBankInfoPlugin(ab, country);
if (!bip) {
DBG_INFO(AQBANKING_LOGDOMAIN,
"BankInfo plugin for country \"%s\" not found",
country);
return 0;
}
return AB_BankInfoPlugin_GetBankInfoByTemplate(bip, tbi, bl);
}
AB_BANKINFO_CHECKRESULT AB_Banking_CheckAccount(AB_BANKING *ab,
const char *country,
const char *branchId,
const char *bankId,
const char *accountId)
{
AB_BANKINFO_PLUGIN *bip;
assert(ab);
assert(country);
bip=AB_Banking_GetBankInfoPlugin(ab, country);
if (!bip) {
DBG_INFO(AQBANKING_LOGDOMAIN, "BankInfo plugin for country \"%s\" not found", country);
return AB_BankInfoCheckResult_UnknownResult;
}
return AB_BankInfoPlugin_CheckAccount(bip, branchId, bankId, accountId);
}
int AB_Banking__TransformIban(const char *iban, int len, char *newIban, int maxLen)
{
int i, j;
const char *p;
char *s;
assert(iban);
/* format IBAN */
i=0;
j=0;
p=iban;
s=newIban;
while (j='A' && c<='Z') {
c=10+(c-'A');
*s='0'+(c/10);
s++;
i++;
if (i>=maxLen) {
DBG_ERROR(AQBANKING_LOGDOMAIN, "Bad IBAN (too long)");
return -1;
}
*s='0'+(c%10);
s++;
i++;
}
else if (isdigit(c)) {
*s=c;
s++;
i++;
}
else {
DBG_ERROR(AQBANKING_LOGDOMAIN, "Bad IBAN (bad char)");
return -1;
}
}
p++;
j++;
} /* while */
if (j= 'A' && *p++ <= 'Z' && *p >= 'A' && *p++ <= 'Z')) {
DBG_INFO(AQBANKING_LOGDOMAIN, "Bad IBAN (country code not in upper case) [%s]", iban);
return -1;
}
p+=2;
/* convert IBAN+4 to buffer */
if (AB_Banking__TransformIban(p, strlen(p),
newIban, sizeof(newIban)-1)) {
DBG_INFO(AQBANKING_LOGDOMAIN, "here");
return -1;
}
/* append country and checksum */
p=iban;
s=newIban+strlen(newIban);
if (AB_Banking__TransformIban(p, 4, s, sizeof(newIban)-strlen(newIban)-1)) {
DBG_INFO(AQBANKING_LOGDOMAIN, "here");
return -1;
}
/* calculate checksum in 9er steps */
p=newIban;
tmp[0]=0;
j=0;
while (*p) {
for (i=strlen(tmp); i<9; i++) {
if (!*p)
break;
tmp[i]=*(p++);
}
tmp[i]=0;
if (1!=sscanf(tmp, "%u", &j)) {
DBG_INFO(AQBANKING_LOGDOMAIN, "Bad IBAN (bad char) [%s]", iban);
return -1;
}
j=j%97; /* modulo 97 */
snprintf(tmp, sizeof(tmp), "%u", j);
} /* while */
if (j!=1) {
DBG_INFO(AQBANKING_LOGDOMAIN, "Bad IBAN (bad checksum) [%s]", iban);
return 1;
}
DBG_DEBUG(AQBANKING_LOGDOMAIN, "IBAN is valid [%s]", iban);
return 0;
}
int AB_Banking_MakeGermanIban(const char *bankCode, const char *accountNumber, GWEN_BUFFER *ibanBuf)
{
GWEN_BUFFER *tbuf;
int i;
char numbuf[32];
char tmp[10];
int rv;
unsigned int j;
const char *p;
/* create BBAN */
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
/* bank code */
i=strlen(bankCode);
if (i<8)
GWEN_Buffer_FillWithBytes(tbuf, '0', 8-i);
rv=AB_Banking__TransformIban(bankCode, strlen(bankCode), numbuf, sizeof(numbuf)-1);
if (rv<0) {
GWEN_Buffer_free(tbuf);
DBG_ERROR(AQBANKING_LOGDOMAIN, "Bad bank code (bad char) (%d)", rv);
return rv;
}
GWEN_Buffer_AppendString(tbuf, numbuf);
/* account number */
i=strlen(accountNumber);
if (i<10)
GWEN_Buffer_FillWithBytes(tbuf, '0', 10-i);
rv=AB_Banking__TransformIban(accountNumber, strlen(accountNumber), numbuf, sizeof(numbuf)-1);
if (rv<0) {
GWEN_Buffer_free(tbuf);
DBG_ERROR(AQBANKING_LOGDOMAIN, "Bad account number (bad char) (%d)", rv);
return rv;
}
GWEN_Buffer_AppendString(tbuf, numbuf);
/* add "DE00" */
GWEN_Buffer_AppendString(tbuf, "131400");
/* calculate checksum in 9er steps */
p=GWEN_Buffer_GetStart(tbuf);
tmp[0]=0;
j=0;
while (*p) {
for (i=strlen(tmp); i<9; i++) {
if (!*p)
break;
tmp[i]=*(p++);
}
tmp[i]=0;
if (1!=sscanf(tmp, "%u", &j)) {
GWEN_Buffer_free(tbuf);
DBG_ERROR(AQBANKING_LOGDOMAIN, "Bad IBAN (bad char)");
return -1;
}
j=j%97; /* modulo 97 */
snprintf(tmp, sizeof(tmp), "%u", j);
} /* while */
/* j contains the modulus */
snprintf(tmp, sizeof(tmp), "%02u", 98-j);
GWEN_Buffer_AppendString(ibanBuf, "DE"); /* DE */
GWEN_Buffer_AppendString(ibanBuf, tmp); /* checksum */
i=strlen(bankCode); /* bank code */
if (i<8)
GWEN_Buffer_FillWithBytes(ibanBuf, '0', 8-i);
GWEN_Buffer_AppendString(ibanBuf, bankCode);
i=strlen(accountNumber); /* account number */
if (i<10)
GWEN_Buffer_FillWithBytes(ibanBuf, '0', 10-i);
GWEN_Buffer_AppendString(ibanBuf, accountNumber);
DBG_INFO(AQBANKING_LOGDOMAIN, "IBAN is %s", GWEN_Buffer_GetStart(ibanBuf));
GWEN_Buffer_free(tbuf);
return 0;
}
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/ 0000755 0001750 0001750 00000000000 15075177320 016427 5 0000000 0000000 aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_importer.h 0000644 0001750 0001750 00000003544 15056605641 021216 0000000 0000000 /***************************************************************************
begin : Tue Feb 10 2010
copyright : (C) 2018 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifndef AQBANKING_DLG_IMPORTER_H
#define AQBANKING_DLG_IMPORTER_H
#include
#include
#include
/** @defgroup G_AB_DIALOGS_IMPORTER Generic File Import Dialog
* @ingroup G_AB_DIALOGS
*
*/
/*@{*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* Creates a file import assistent.
*
* @return pointer to the created dialog.
*
* @param banking pointer to the AqBanking object
* @param ctx pointer to the import context to receive the content of the
* imported file
*
* @param finishedMessage message to show on the last page of the assistent
* (i.e. the page which is shown after a successful import into the given
* import context).
*/
GWEN_DIALOG *AB_ImporterDialog_new(AB_BANKING *ab,
AB_IMEXPORTER_CONTEXT *ctx,
const char *finishedMessage);
const char *AB_ImporterDialog_GetFileName(const GWEN_DIALOG *dlg);
void AB_ImporterDialog_SetFileName(GWEN_DIALOG *dlg, const char *s);
const char *AB_ImporterDialog_GetImporterName(const GWEN_DIALOG *dlg);
void AB_ImporterDialog_SetImporterName(GWEN_DIALOG *dlg, const char *s);
const char *AB_ImporterDialog_GetProfileName(const GWEN_DIALOG *dlg);
void AB_ImporterDialog_SetProfileName(GWEN_DIALOG *dlg, const char *s);
#ifdef __cplusplus
}
#endif
/*@}*/
#endif
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_selectbackend.c 0000664 0001750 0001750 00000025464 14546575647 022165 0000000 0000000 /***************************************************************************
begin : Wed Apr 14 2010
copyright : (C) 2010 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "dlg_selectbackend_p.h"
#include "aqbanking/i18n_l.h"
#include
#include
#include
#include
#include
#include
#include
#define DIALOG_MINWIDTH 200
#define DIALOG_MINHEIGHT 100
GWEN_INHERIT(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG)
GWEN_DIALOG *AB_SelectBackendDialog_new(AB_BANKING *ab, const char *text)
{
GWEN_DIALOG *dlg;
AB_SELECTBACKEND_DIALOG *xdlg;
dlg=GWEN_Dialog_CreateAndLoadWithPath("ab_selectbackend", AB_PM_LIBNAME, AB_PM_DATADIR,
"aqbanking/dialogs/dlg_selectbackend.dlg");
if (dlg==NULL) {
DBG_ERROR(AQBANKING_LOGDOMAIN, "Could not create dialog \"ab_selectbackend\".");
return NULL;
}
GWEN_NEW_OBJECT(AB_SELECTBACKEND_DIALOG, xdlg);
GWEN_INHERIT_SETDATA(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG, dlg, xdlg, AB_SelectBackendDialog_FreeData);
GWEN_Dialog_SetSignalHandler(dlg, AB_SelectBackendDialog_SignalHandler);
xdlg->banking=ab;
if (text)
xdlg->text=strdup(text);
/* done */
return dlg;
}
void GWENHYWFAR_CB AB_SelectBackendDialog_FreeData(void *bp, void *p)
{
AB_SELECTBACKEND_DIALOG *xdlg;
xdlg=(AB_SELECTBACKEND_DIALOG *) p;
free(xdlg->selectedProvider);
free(xdlg->text);
GWEN_FREE_OBJECT(xdlg);
}
const char *AB_SelectBackendDialog_GetSelectedProvider(const GWEN_DIALOG *dlg)
{
AB_SELECTBACKEND_DIALOG *xdlg;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG, dlg);
assert(xdlg);
return xdlg->selectedProvider;
}
void AB_SelectBackendDialog_SetSelectedProvider(GWEN_DIALOG *dlg, const char *s)
{
AB_SELECTBACKEND_DIALOG *xdlg;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG, dlg);
assert(xdlg);
free(xdlg->selectedProvider);
if (s)
xdlg->selectedProvider=strdup(s);
else
xdlg->selectedProvider=NULL;
}
void AB_SelectBackendDialog_DetermineBackend(GWEN_DIALOG *dlg)
{
int idx;
AB_SELECTBACKEND_DIALOG *xdlg;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG, dlg);
assert(xdlg);
AB_SelectBackendDialog_SetSelectedProvider(dlg, NULL);
idx=GWEN_Dialog_GetIntProperty(dlg, "backendCombo", GWEN_DialogProperty_Value, 0, -1);
if (idx>=0 && xdlg->pluginDescrList) {
GWEN_PLUGIN_DESCRIPTION *d;
d=GWEN_PluginDescription_List_First(xdlg->pluginDescrList);
while (d && idx>0) {
idx--;
d=GWEN_PluginDescription_List_Next(d);
}
if (d)
AB_SelectBackendDialog_SetSelectedProvider(dlg, GWEN_PluginDescription_GetName(d));
}
}
int AB_SelectBackendDialog_BackendChanged(GWEN_DIALOG *dlg)
{
AB_SELECTBACKEND_DIALOG *xdlg;
int idx;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG, dlg);
assert(xdlg);
idx=GWEN_Dialog_GetIntProperty(dlg, "backendCombo", GWEN_DialogProperty_Value, 0, -1);
if (idx>=0 && xdlg->pluginDescrList) {
GWEN_PLUGIN_DESCRIPTION *d;
d=GWEN_PluginDescription_List_First(xdlg->pluginDescrList);
while (d && idx>0) {
idx--;
d=GWEN_PluginDescription_List_Next(d);
}
if (d) {
const char *s;
s=GWEN_PluginDescription_GetLongDescr(d);
GWEN_Dialog_SetCharProperty(dlg, "descrLabel", GWEN_DialogProperty_Title, 0, s, 0);
}
}
return GWEN_DialogEvent_ResultHandled;
}
void AB_SelectBackendDialog_Reload(GWEN_DIALOG *dlg)
{
AB_SELECTBACKEND_DIALOG *xdlg;
GWEN_PLUGIN_DESCRIPTION_LIST2 *ll;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG, dlg);
assert(xdlg);
if (xdlg->selectedProvider==NULL)
AB_SelectBackendDialog_DetermineBackend(dlg);
GWEN_Dialog_SetIntProperty(dlg, "backendCombo", GWEN_DialogProperty_ClearValues, 0, 0, 0);
if (xdlg->pluginDescrList)
GWEN_PluginDescription_List_Clear(xdlg->pluginDescrList);
else
xdlg->pluginDescrList=GWEN_PluginDescription_List_new();
ll=AB_Banking_GetProviderDescrs(xdlg->banking);
if (ll) {
GWEN_PLUGIN_DESCRIPTION_LIST2_ITERATOR *it;
it=GWEN_PluginDescription_List2_First(ll);
if (it) {
GWEN_PLUGIN_DESCRIPTION *d;
GWEN_BUFFER *tbuf;
int idx=-1;
int i=0;
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
d=GWEN_PluginDescription_List2Iterator_Data(it);
while (d) {
const char *s;
s=GWEN_PluginDescription_GetName(d);
if (s && *s) {
GWEN_Buffer_AppendString(tbuf, s);
if (idx==-1 && xdlg->selectedProvider && strcasecmp(xdlg->selectedProvider, s)==0)
idx=i;
s=GWEN_PluginDescription_GetShortDescr(d);
if (s && *s) {
GWEN_Buffer_AppendString(tbuf, " - ");
GWEN_Buffer_AppendString(tbuf, s);
}
GWEN_PluginDescription_Attach(d);
GWEN_PluginDescription_List_Add(d, xdlg->pluginDescrList);
GWEN_Dialog_SetCharProperty(dlg,
"backendCombo",
GWEN_DialogProperty_AddValue,
0,
GWEN_Buffer_GetStart(tbuf),
0);
GWEN_Buffer_Reset(tbuf);
i++;
}
d=GWEN_PluginDescription_List2Iterator_Next(it);
}
if (idx!=-1)
GWEN_Dialog_SetIntProperty(dlg, "backendCombo", GWEN_DialogProperty_Value, 0, idx, 0);
GWEN_Buffer_free(tbuf);
GWEN_PluginDescription_List2Iterator_free(it);
}
GWEN_PluginDescription_List2_freeAll(ll);
}
AB_SelectBackendDialog_BackendChanged(dlg);
}
void AB_SelectBackendDialog_Init(GWEN_DIALOG *dlg)
{
AB_SELECTBACKEND_DIALOG *xdlg;
GWEN_DB_NODE *dbPrefs;
int i;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG, dlg);
assert(xdlg);
dbPrefs=GWEN_Dialog_GetPreferences(dlg);
GWEN_Dialog_SetCharProperty(dlg,
"",
GWEN_DialogProperty_Title,
0,
I18N("Select Backend"),
0);
if (xdlg->text && *(xdlg->text))
GWEN_Dialog_SetCharProperty(dlg,
"introLabel",
GWEN_DialogProperty_Title,
0,
xdlg->text,
0);
else
GWEN_Dialog_SetCharProperty(dlg,
"introLabel",
GWEN_DialogProperty_Title,
0,
I18N("Select a backend."),
0);
/* read width */
i=GWEN_DB_GetIntValue(dbPrefs, "dialog_width", 0, -1);
if (i>=DIALOG_MINWIDTH)
GWEN_Dialog_SetIntProperty(dlg, "", GWEN_DialogProperty_Width, 0, i, 0);
/* read height */
i=GWEN_DB_GetIntValue(dbPrefs, "dialog_height", 0, -1);
if (i>=DIALOG_MINHEIGHT)
GWEN_Dialog_SetIntProperty(dlg, "", GWEN_DialogProperty_Height, 0, i, 0);
AB_SelectBackendDialog_Reload(dlg);
}
void AB_SelectBackendDialog_Fini(GWEN_DIALOG *dlg)
{
AB_SELECTBACKEND_DIALOG *xdlg;
int i;
GWEN_DB_NODE *dbPrefs;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG, dlg);
assert(xdlg);
dbPrefs=GWEN_Dialog_GetPreferences(dlg);
AB_SelectBackendDialog_DetermineBackend(dlg);
/* store dialog width */
i=GWEN_Dialog_GetIntProperty(dlg, "", GWEN_DialogProperty_Width, 0, -1);
GWEN_DB_SetIntValue(dbPrefs,
GWEN_DB_FLAGS_OVERWRITE_VARS,
"dialog_width",
i);
/* store dialog height */
i=GWEN_Dialog_GetIntProperty(dlg, "", GWEN_DialogProperty_Height, 0, -1);
GWEN_DB_SetIntValue(dbPrefs,
GWEN_DB_FLAGS_OVERWRITE_VARS,
"dialog_height",
i);
}
int AB_SelectBackendDialog_HandleActivated(GWEN_DIALOG *dlg, const char *sender)
{
DBG_NOTICE(0, "Activated: %s", sender);
if (strcasecmp(sender, "okButton")==0)
return GWEN_DialogEvent_ResultAccept;
else if (strcasecmp(sender, "abortButton")==0)
return GWEN_DialogEvent_ResultReject;
else if (strcasecmp(sender, "backendCombo")==0)
return AB_SelectBackendDialog_BackendChanged(dlg);
else if (strcasecmp(sender, "helpButton")==0) {
/* TODO: open a help dialog */
}
return GWEN_DialogEvent_ResultNotHandled;
}
int GWENHYWFAR_CB AB_SelectBackendDialog_SignalHandler(GWEN_DIALOG *dlg,
GWEN_DIALOG_EVENTTYPE t,
const char *sender)
{
AB_SELECTBACKEND_DIALOG *xdlg;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_SELECTBACKEND_DIALOG, dlg);
assert(xdlg);
switch (t) {
case GWEN_DialogEvent_TypeInit:
AB_SelectBackendDialog_Init(dlg);
return GWEN_DialogEvent_ResultHandled;;
case GWEN_DialogEvent_TypeFini:
AB_SelectBackendDialog_Fini(dlg);
return GWEN_DialogEvent_ResultHandled;;
case GWEN_DialogEvent_TypeValueChanged:
return GWEN_DialogEvent_ResultHandled;;
case GWEN_DialogEvent_TypeActivated:
return AB_SelectBackendDialog_HandleActivated(dlg, sender);
case GWEN_DialogEvent_TypeEnabled:
case GWEN_DialogEvent_TypeDisabled:
case GWEN_DialogEvent_TypeClose:
case GWEN_DialogEvent_TypeLast:
default:
return GWEN_DialogEvent_ResultNotHandled;
}
return GWEN_DialogEvent_ResultNotHandled;
}
AB_PROVIDER *AB_SelectBackend(AB_BANKING *ab, const char *initial, const char *text)
{
GWEN_DIALOG *dlg;
int rv;
dlg=AB_SelectBackendDialog_new(ab, text);
if (dlg==NULL) {
DBG_ERROR(AQBANKING_LOGDOMAIN, "Could not create dialog");
return NULL;
}
AB_SelectBackendDialog_SetSelectedProvider(dlg, initial);
rv=GWEN_Gui_ExecDialog(dlg, 0);
if (rv==0) {
/* rejected */
GWEN_Dialog_free(dlg);
return NULL;
}
else {
const char *s;
s=AB_SelectBackendDialog_GetSelectedProvider(dlg);
if (s && *s) {
AB_PROVIDER *pro;
pro=AB_Banking_BeginUseProvider(ab, s);
if (pro==NULL) {
DBG_ERROR(AQBANKING_LOGDOMAIN, "Provider [%s] not found", s);
GWEN_Dialog_free(dlg);
return NULL;
}
GWEN_Dialog_free(dlg);
return pro;
}
GWEN_Dialog_free(dlg);
return NULL;
}
}
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_edituser.c 0000664 0001750 0001750 00000024565 14546575647 021223 0000000 0000000 /***************************************************************************
begin : Fri Apr 16 2010
copyright : (C) 2018 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifdef HAVE_CONFIG_H
# include
#endif
#include "dlg_edituser_p.h"
#include "aqbanking/i18n_l.h"
#include "aqbanking/backendsupport/user.h"
#include "aqbanking/backendsupport/provider_be.h"
#include "aqbanking/dialogs/dlg_selectbankinfo.h"
#include
#include
#include
#include
#include
#include
#include
#define DIALOG_MINWIDTH 200
#define DIALOG_MINHEIGHT 200
GWEN_INHERIT(GWEN_DIALOG, AB_EDIT_USER_DIALOG)
GWEN_DIALOG *AB_EditUserDialog_new(AB_PROVIDER *pro, AB_USER *u, int doLock)
{
GWEN_DIALOG *dlg;
AB_EDIT_USER_DIALOG *xdlg;
dlg=GWEN_Dialog_CreateAndLoadWithPath("ab_edit_user", AB_PM_LIBNAME, AB_PM_DATADIR,
"aqbanking/dialogs/dlg_edituser.dlg");
if (dlg==NULL) {
DBG_ERROR(AQBANKING_LOGDOMAIN, "Could not create dialog \"ab_edit_user\".");
return NULL;
}
GWEN_NEW_OBJECT(AB_EDIT_USER_DIALOG, xdlg);
GWEN_INHERIT_SETDATA(GWEN_DIALOG, AB_EDIT_USER_DIALOG, dlg, xdlg, AB_EditUserDialog_FreeData);
GWEN_Dialog_SetSignalHandler(dlg, AB_EditUserDialog_SignalHandler);
xdlg->provider=pro;
xdlg->banking=AB_Provider_GetBanking(pro);
xdlg->user=u;
xdlg->doLock=doLock;
/* done */
return dlg;
}
void GWENHYWFAR_CB AB_EditUserDialog_FreeData(void *bp, void *p)
{
AB_EDIT_USER_DIALOG *xdlg;
xdlg=(AB_EDIT_USER_DIALOG *) p;
GWEN_FREE_OBJECT(xdlg);
}
void AB_EditUserDialog_Init(GWEN_DIALOG *dlg)
{
AB_EDIT_USER_DIALOG *xdlg;
GWEN_DB_NODE *dbPrefs;
int i;
const char *s;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_EDIT_USER_DIALOG, dlg);
assert(xdlg);
dbPrefs=GWEN_Dialog_GetPreferences(dlg);
/* init */
GWEN_Dialog_SetCharProperty(dlg,
"",
GWEN_DialogProperty_Title,
0,
I18N("Edit User"),
0);
s=AB_User_GetCountry(xdlg->user);
GWEN_Dialog_SetCharProperty(dlg, "countryEdit", GWEN_DialogProperty_Value, 0, s, 0);
s=AB_User_GetUserName(xdlg->user);
GWEN_Dialog_SetCharProperty(dlg, "userNameEdit", GWEN_DialogProperty_Value, 0, s, 0);
s=AB_User_GetBankCode(xdlg->user);
GWEN_Dialog_SetCharProperty(dlg, "bankCodeEdit", GWEN_DialogProperty_Value, 0, s, 0);
s=AB_User_GetUserId(xdlg->user);
GWEN_Dialog_SetCharProperty(dlg, "userIdEdit", GWEN_DialogProperty_Value, 0, s, 0);
s=AB_User_GetCustomerId(xdlg->user);
GWEN_Dialog_SetCharProperty(dlg, "customerIdEdit", GWEN_DialogProperty_Value, 0, s, 0);
/* read width */
i=GWEN_DB_GetIntValue(dbPrefs, "dialog_width", 0, -1);
if (i>=DIALOG_MINWIDTH)
GWEN_Dialog_SetIntProperty(dlg, "", GWEN_DialogProperty_Width, 0, i, 0);
/* read height */
i=GWEN_DB_GetIntValue(dbPrefs, "dialog_height", 0, -1);
if (i>=DIALOG_MINHEIGHT)
GWEN_Dialog_SetIntProperty(dlg, "", GWEN_DialogProperty_Height, 0, i, 0);
}
static void removeAllSpaces(uint8_t *s)
{
uint8_t *d;
d=s;
while (*s) {
if (*s>33)
*(d++)=*s;
s++;
}
*d=0;
}
int AB_EditUserDialog_fromGui(GWEN_DIALOG *dlg, AB_USER *u, int quiet)
{
AB_EDIT_USER_DIALOG *xdlg;
const char *s;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_EDIT_USER_DIALOG, dlg);
assert(xdlg);
/* fromGui */
s=GWEN_Dialog_GetCharProperty(dlg, "countryEdit", GWEN_DialogProperty_Value, 0, NULL);
if (s && *s)
AB_User_SetCountry(u, s);
s=GWEN_Dialog_GetCharProperty(dlg, "userNameEdit", GWEN_DialogProperty_Value, 0, NULL);
if (s && *s) {
GWEN_BUFFER *tbuf;
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
GWEN_Buffer_AppendString(tbuf, s);
GWEN_Text_CondenseBuffer(tbuf);
if (u)
AB_User_SetUserName(u, GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_free(tbuf);
}
s=GWEN_Dialog_GetCharProperty(dlg, "bankCodeEdit", GWEN_DialogProperty_Value, 0, NULL);
if (s && *s) {
GWEN_BUFFER *tbuf;
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
GWEN_Buffer_AppendString(tbuf, s);
GWEN_Text_CondenseBuffer(tbuf);
removeAllSpaces((uint8_t *)GWEN_Buffer_GetStart(tbuf));
if (u)
AB_User_SetBankCode(u, GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_free(tbuf);
}
s=GWEN_Dialog_GetCharProperty(dlg, "userIdEdit", GWEN_DialogProperty_Value, 0, NULL);
if (s && *s) {
GWEN_BUFFER *tbuf;
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
GWEN_Buffer_AppendString(tbuf, s);
GWEN_Text_CondenseBuffer(tbuf);
if (u)
AB_User_SetUserId(u, GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_free(tbuf);
}
s=GWEN_Dialog_GetCharProperty(dlg, "customerIdEdit", GWEN_DialogProperty_Value, 0, NULL);
if (s && *s) {
GWEN_BUFFER *tbuf;
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
GWEN_Buffer_AppendString(tbuf, s);
GWEN_Text_CondenseBuffer(tbuf);
if (u)
AB_User_SetCustomerId(u, GWEN_Buffer_GetStart(tbuf));
GWEN_Buffer_free(tbuf);
}
return 0;
}
void AB_EditUserDialog_Fini(GWEN_DIALOG *dlg)
{
AB_EDIT_USER_DIALOG *xdlg;
int i;
GWEN_DB_NODE *dbPrefs;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_EDIT_USER_DIALOG, dlg);
assert(xdlg);
dbPrefs=GWEN_Dialog_GetPreferences(dlg);
/* store dialog width */
i=GWEN_Dialog_GetIntProperty(dlg, "", GWEN_DialogProperty_Width, 0, -1);
GWEN_DB_SetIntValue(dbPrefs,
GWEN_DB_FLAGS_OVERWRITE_VARS,
"dialog_width",
i);
/* store dialog height */
i=GWEN_Dialog_GetIntProperty(dlg, "", GWEN_DialogProperty_Height, 0, -1);
GWEN_DB_SetIntValue(dbPrefs,
GWEN_DB_FLAGS_OVERWRITE_VARS,
"dialog_height",
i);
}
int AB_EditUserDialog_HandleActivatedBankCode(GWEN_DIALOG *dlg)
{
AB_EDIT_USER_DIALOG *xdlg;
GWEN_DIALOG *dlg2;
int rv;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_EDIT_USER_DIALOG, dlg);
assert(xdlg);
dlg2=AB_SelectBankInfoDialog_new(xdlg->banking, "de", NULL);
if (dlg2==NULL) {
DBG_ERROR(AQBANKING_LOGDOMAIN, "Could not create dialog");
return GWEN_DialogEvent_ResultHandled;
}
rv=GWEN_Gui_ExecDialog(dlg2, 0);
if (rv==0) {
/* rejected */
GWEN_Dialog_free(dlg2);
return GWEN_DialogEvent_ResultHandled;
}
else {
const AB_BANKINFO *bi;
bi=AB_SelectBankInfoDialog_GetSelectedBankInfo(dlg2);
if (bi) {
const char *s;
s=AB_BankInfo_GetBankId(bi);
GWEN_Dialog_SetCharProperty(dlg,
"bankCodeEdit",
GWEN_DialogProperty_Value,
0,
(s && *s)?s:"",
0);
}
}
GWEN_Dialog_free(dlg2);
return GWEN_DialogEvent_ResultHandled;
}
int AB_EditUserDialog_HandleActivatedOk(GWEN_DIALOG *dlg)
{
AB_EDIT_USER_DIALOG *xdlg;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_EDIT_USER_DIALOG, dlg);
assert(xdlg);
if (xdlg->doLock) {
int rv;
rv=AB_Provider_BeginExclUseUser(xdlg->provider, xdlg->user);
if (rv<0) {
DBG_INFO(AQBANKING_LOGDOMAIN, "here (%d)", rv);
GWEN_Gui_MessageBox(GWEN_GUI_MSG_FLAGS_SEVERITY_NORMAL |
GWEN_GUI_MSG_FLAGS_TYPE_ERROR |
GWEN_GUI_MSG_FLAGS_CONFIRM_B1,
I18N("Error"),
I18N("Unable to lock user. Maybe already in use?"),
I18N("Dismiss"),
NULL,
NULL,
0);
return GWEN_DialogEvent_ResultHandled;
}
}
AB_EditUserDialog_fromGui(dlg, xdlg->user, 1);
if (xdlg->doLock) {
int rv;
rv=AB_Provider_EndExclUseUser(xdlg->provider, xdlg->user, 0);
if (rv<0) {
DBG_INFO(AQBANKING_LOGDOMAIN, "here (%d)", rv);
GWEN_Gui_MessageBox(GWEN_GUI_MSG_FLAGS_SEVERITY_NORMAL |
GWEN_GUI_MSG_FLAGS_TYPE_ERROR |
GWEN_GUI_MSG_FLAGS_CONFIRM_B1,
I18N("Error"),
I18N("Unable to unlock user."),
I18N("Dismiss"),
NULL,
NULL,
0);
AB_Provider_EndExclUseUser(xdlg->provider, xdlg->user, 1);
return GWEN_DialogEvent_ResultHandled;
}
}
return GWEN_DialogEvent_ResultAccept;
}
int AB_EditUserDialog_HandleActivated(GWEN_DIALOG *dlg, const char *sender)
{
if (strcasecmp(sender, "bankCodeButton")==0)
return AB_EditUserDialog_HandleActivatedBankCode(dlg);
else if (strcasecmp(sender, "okButton")==0)
return AB_EditUserDialog_HandleActivatedOk(dlg);
else if (strcasecmp(sender, "abortButton")==0)
return GWEN_DialogEvent_ResultReject;
else if (strcasecmp(sender, "helpButton")==0) {
/* TODO: open u help dialog */
}
return GWEN_DialogEvent_ResultNotHandled;
}
int GWENHYWFAR_CB AB_EditUserDialog_SignalHandler(GWEN_DIALOG *dlg,
GWEN_DIALOG_EVENTTYPE t,
const char *sender)
{
AB_EDIT_USER_DIALOG *xdlg;
assert(dlg);
xdlg=GWEN_INHERIT_GETDATA(GWEN_DIALOG, AB_EDIT_USER_DIALOG, dlg);
assert(xdlg);
switch (t) {
case GWEN_DialogEvent_TypeInit:
AB_EditUserDialog_Init(dlg);
return GWEN_DialogEvent_ResultHandled;;
case GWEN_DialogEvent_TypeFini:
AB_EditUserDialog_Fini(dlg);
return GWEN_DialogEvent_ResultHandled;;
case GWEN_DialogEvent_TypeValueChanged:
DBG_NOTICE(0, "ValueChanged: %s", sender);
return GWEN_DialogEvent_ResultHandled;;
case GWEN_DialogEvent_TypeActivated:
return AB_EditUserDialog_HandleActivated(dlg, sender);
case GWEN_DialogEvent_TypeEnabled:
case GWEN_DialogEvent_TypeDisabled:
case GWEN_DialogEvent_TypeClose:
case GWEN_DialogEvent_TypeLast:
default:
return GWEN_DialogEvent_ResultNotHandled;
}
return GWEN_DialogEvent_ResultNotHandled;
}
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_usertype_pagedefault_p.h 0000664 0001750 0001750 00000001622 14043610744 024105 0000000 0000000 /***************************************************************************
begin : Fri Jul 30 2010
copyright : (C) 2010 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifndef AQBANKING_DLG_USERTYPE_PAGEDEFAULT_P_H
#define AQBANKING_DLG_USERTYPE_PAGEDEFAULT_P_H
#include "dlg_usertype_pagedefault_l.h"
static int GWENHYWFAR_CB AB_UserTypePageDefaultDialog_SignalHandler(GWEN_DIALOG *dlg,
GWEN_DIALOG_EVENTTYPE t,
const char *sender);
#endif
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_newuser_be.h 0000664 0001750 0001750 00000002100 14043610744 021473 0000000 0000000 /***************************************************************************
begin : Wed Apr 14 2010
copyright : (C) 2018 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifndef AB_DLG_NEW_USER_BE_H
#define AB_DLG_NEW_USER_BE_H
#include
#include
#include
#ifdef __cplusplus
extern "C" {
#endif
GWEN_DIALOG *AB_NewUserDialog_new(AB_BANKING *ab, AB_PROVIDER *pro, const char *dname);
AB_BANKING *AB_NewUserDialog_GetBanking(const GWEN_DIALOG *dlg);
AB_PROVIDER *AB_NewUserDialog_GetProvider(const GWEN_DIALOG *dlg);
AB_USER *AB_NewUserDialog_GetUser(const GWEN_DIALOG *dlg);
void AB_NewUserDialog_SetUser(GWEN_DIALOG *dlg, AB_USER *u);
#ifdef __cplusplus
}
#endif
#endif
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_selectbankinfo_p.h 0000664 0001750 0001750 00000002260 14043610744 022652 0000000 0000000 /***************************************************************************
begin : Tue Apr 13 2010
copyright : (C) 2010 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifndef AQBANKING_DLG_SELECTBANKINFO_P_H
#define AQBANKING_DLG_SELECTBANKINFO_P_H
#include "dlg_selectbankinfo.h"
typedef struct AB_SELECTBANKINFO_DIALOG AB_SELECTBANKINFO_DIALOG;
struct AB_SELECTBANKINFO_DIALOG {
AB_BANKING *banking;
char *country;
char *bankCode;
AB_BANKINFO_LIST2 *matchingBankInfos;
AB_BANKINFO *selectedBankInfo;
};
static GWENHYWFAR_CB void AB_SelectBankInfoDialog_FreeData(void *bp, void *p);
static int GWENHYWFAR_CB AB_SelectBankInfoDialog_SignalHandler(GWEN_DIALOG *dlg,
GWEN_DIALOG_EVENTTYPE t,
const char *sender);
#endif
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/Makefile.in 0000644 0001750 0001750 00000071737 15075177037 020440 0000000 0000000 # Makefile.in generated by automake 1.16.5 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
subdir = src/libs/aqbanking/dialogs
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx_compile_warn.m4 \
$(top_srcdir)/m4/as-scrub-include.m4 \
$(top_srcdir)/m4/distri.m4 $(top_srcdir)/m4/gwenhywfar.m4 \
$(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/os.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
$(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
LTLIBRARIES = $(noinst_LTLIBRARIES)
libabdialogs_la_LIBADD =
am_libabdialogs_la_OBJECTS = dlg_importer.lo dlg_selectbankinfo.lo \
dlg_setup.lo dlg_selectbackend.lo dlg_editaccount.lo \
dlg_edituser.lo dlg_usertype_page.lo dlg_setup_newuser.lo \
dlg_usertype_pagedefault.lo dlg_newaccount.lo dlg_newuser.lo \
w_profilelist.lo w_importerlist.lo
libabdialogs_la_OBJECTS = $(am_libabdialogs_la_OBJECTS)
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/dlg_editaccount.Plo \
./$(DEPDIR)/dlg_edituser.Plo ./$(DEPDIR)/dlg_importer.Plo \
./$(DEPDIR)/dlg_newaccount.Plo ./$(DEPDIR)/dlg_newuser.Plo \
./$(DEPDIR)/dlg_selectbackend.Plo \
./$(DEPDIR)/dlg_selectbankinfo.Plo ./$(DEPDIR)/dlg_setup.Plo \
./$(DEPDIR)/dlg_setup_newuser.Plo \
./$(DEPDIR)/dlg_usertype_page.Plo \
./$(DEPDIR)/dlg_usertype_pagedefault.Plo \
./$(DEPDIR)/w_importerlist.Plo ./$(DEPDIR)/w_profilelist.Plo
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(libabdialogs_la_SOURCES)
DIST_SOURCES = $(libabdialogs_la_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
$(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
*) f=$$p;; \
esac;
am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
am__install_max = 40
am__nobase_strip_setup = \
srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
am__nobase_strip = \
for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
am__nobase_list = $(am__nobase_strip_setup); \
for p in $$list; do echo "$$p $$p"; done | \
sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
$(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
if (++n[$$2] == $(am__install_max)) \
{ print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
END { for (dir in files) print dir, files[dir] }'
am__base_list = \
sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
am__uninstall_files_from_dir = { \
test -z "$$files" \
|| { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
|| { echo " ( cd '$$dir' && rm -f" $$files ")"; \
$(am__cd) "$$dir" && rm -f $$files; }; \
}
am__installdirs = "$(DESTDIR)$(dlgdatadir)"
DATA = $(dlgdata_DATA)
HEADERS = $(noinst_HEADERS)
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
ADD_ACLOCAL_FLAGS = @ADD_ACLOCAL_FLAGS@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AQBANKING_CLI_VERSION_STRING = @AQBANKING_CLI_VERSION_STRING@
AQBANKING_FINTS_VERSION_STRING = @AQBANKING_FINTS_VERSION_STRING@
AQBANKING_SO_AGE = @AQBANKING_SO_AGE@
AQBANKING_SO_CURRENT = @AQBANKING_SO_CURRENT@
AQBANKING_SO_EFFECTIVE = @AQBANKING_SO_EFFECTIVE@
AQBANKING_SO_REVISION = @AQBANKING_SO_REVISION@
AQBANKING_VERSION_BUILD = @AQBANKING_VERSION_BUILD@
AQBANKING_VERSION_FULL_STRING = @AQBANKING_VERSION_FULL_STRING@
AQBANKING_VERSION_MAJOR = @AQBANKING_VERSION_MAJOR@
AQBANKING_VERSION_MINOR = @AQBANKING_VERSION_MINOR@
AQBANKING_VERSION_PATCHLEVEL = @AQBANKING_VERSION_PATCHLEVEL@
AQBANKING_VERSION_RELEASE_STRING = @AQBANKING_VERSION_RELEASE_STRING@
AQBANKING_VERSION_STRING = @AQBANKING_VERSION_STRING@
AQBANKING_VERSION_TAG = @AQBANKING_VERSION_TAG@
AQEBICS_CFLAGS = @AQEBICS_CFLAGS@
AQEBICS_LIBS = @AQEBICS_LIBS@
AR = @AR@
AS = @AS@
ASTYLE = @ASTYLE@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CSCOPE = @CSCOPE@
CTAGS = @CTAGS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DATETIME = @DATETIME@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DOXYGEN_DEFINE = @DOXYGEN_DEFINE@
DOXYGEN_EXCLUDE_PATTERNS = @DOXYGEN_EXCLUDE_PATTERNS@
DOXYGEN_FILE_PATTERNS = @DOXYGEN_FILE_PATTERNS@
DOXYGEN_INPUT = @DOXYGEN_INPUT@
DOXYGEN_TAGFILES = @DOXYGEN_TAGFILES@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
ETAGS = @ETAGS@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
FILECMD = @FILECMD@
GREP = @GREP@
GTK2_CFLAGS = @GTK2_CFLAGS@
GTK2_LIBS = @GTK2_LIBS@
GWENGUI_GTK2_CFLAGS = @GWENGUI_GTK2_CFLAGS@
GWENGUI_GTK2_LIBS = @GWENGUI_GTK2_LIBS@
GWENHYWFAR_MINIMUM_VERSION = @GWENHYWFAR_MINIMUM_VERSION@
HAVE_GWENGUI_GTK2 = @HAVE_GWENGUI_GTK2@
HAVE_I18N = @HAVE_I18N@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DLL_TARGET = @INSTALL_DLL_TARGET@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBOBJS = @LIBOBJS@
LIBS = @LIBS@
LIBTOOL = @LIBTOOL@
LIBXML_CFLAGS = @LIBXML_CFLAGS@
LIBXML_LIBS = @LIBXML_LIBS@
LIBXSLT_CFLAGS = @LIBXSLT_CFLAGS@
LIBXSLT_LIBS = @LIBXSLT_LIBS@
LIPO = @LIPO@
LN_S = @LN_S@
LTLIBOBJS = @LTLIBOBJS@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAKEINFO = @MAKEINFO@
MAKE_DLL_TARGET = @MAKE_DLL_TARGET@
MAKE_I18N_FILES = @MAKE_I18N_FILES@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
MSGFMT = @MSGFMT@
MSGFMT_SUPPORTS_QT = @MSGFMT_SUPPORTS_QT@
NM = @NM@
NMEDIT = @NMEDIT@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OSYSTEM = @OSYSTEM@
OS_TYPE = @OS_TYPE@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
RC = @RC@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRIP = @STRIP@
STRIPALL = @STRIPALL@
TUTORIALS = @TUTORIALS@
USE_DOT = @USE_DOT@
VERSION = @VERSION@
XGETTEXT = @XGETTEXT@
XMLMERGE = @XMLMERGE@
XMLSEC_CFLAGS = @XMLSEC_CFLAGS@
XMLSEC_LIBS = @XMLSEC_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
all_includes = @all_includes@
all_libraries = @all_libraries@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
aq_distrib_name = @aq_distrib_name@
aq_distrib_tag = @aq_distrib_tag@
aq_distrib_version = @aq_distrib_version@
aqbanking_backends = @aqbanking_backends@
aqbanking_cfg_searchdir = @aqbanking_cfg_searchdir@
aqbanking_data_searchdir = @aqbanking_data_searchdir@
aqbanking_headerdir = @aqbanking_headerdir@
aqbanking_headerdir_am = @aqbanking_headerdir_am@
aqbanking_includes = @aqbanking_includes@
aqbanking_internal_libs = @aqbanking_internal_libs@
aqbanking_ldflags = @aqbanking_ldflags@
aqbanking_libs = @aqbanking_libs@
aqbanking_locale_searchdir = @aqbanking_locale_searchdir@
aqbanking_modules = @aqbanking_modules@
aqbanking_pkgdatadir = @aqbanking_pkgdatadir@
aqbanking_plugin_searchdir = @aqbanking_plugin_searchdir@
aqbanking_plugindir = @aqbanking_plugindir@
aqbanking_plugins_backends_dirs = @aqbanking_plugins_backends_dirs@
aqbanking_plugins_backends_libs = @aqbanking_plugins_backends_libs@
aqbanking_plugins_bankinfo_dirs = @aqbanking_plugins_bankinfo_dirs@
aqbanking_plugins_bankinfo_libs = @aqbanking_plugins_bankinfo_libs@
aqbanking_plugins_imexporters_dirs = @aqbanking_plugins_imexporters_dirs@
aqbanking_plugins_imexporters_libs = @aqbanking_plugins_imexporters_libs@
aqbanking_plugins_parsers_dirs = @aqbanking_plugins_parsers_dirs@
aqbanking_symlinkdir = @aqbanking_symlinkdir@
aqbanking_sys_is_windows = @aqbanking_sys_is_windows@
aqbankingpp_modules = @aqbankingpp_modules@
aqebics_datadir = @aqebics_datadir@
aqebics_includes = @aqebics_includes@
aqebics_internal_libs = @aqebics_internal_libs@
aqebics_ldflags = @aqebics_ldflags@
aqebics_libs = @aqebics_libs@
aqfints_datadir = @aqfints_datadir@
aqhbci_datadir = @aqhbci_datadir@
aqhbci_includes = @aqhbci_includes@
aqhbci_internal_libs = @aqhbci_internal_libs@
aqhbci_ldflags = @aqhbci_ldflags@
aqhbci_libs = @aqhbci_libs@
aqofxconnect_includes = @aqofxconnect_includes@
aqofxconnect_internal_libs = @aqofxconnect_internal_libs@
aqofxconnect_libs = @aqofxconnect_libs@
aqpaypal_includes = @aqpaypal_includes@
aqpaypal_internal_libs = @aqpaypal_internal_libs@
aqpaypal_libs = @aqpaypal_libs@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
docpath = @docpath@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
gmp_libs = @gmp_libs@
gwenhywfar_bindir = @gwenhywfar_bindir@
gwenhywfar_dir = @gwenhywfar_dir@
gwenhywfar_has_crypt = @gwenhywfar_has_crypt@
gwenhywfar_headers = @gwenhywfar_headers@
gwenhywfar_includes = @gwenhywfar_includes@
gwenhywfar_libs = @gwenhywfar_libs@
gwenhywfar_plugins = @gwenhywfar_plugins@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
i18n_libs = @i18n_libs@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
localedir = @localedir@
localstatedir = @localstatedir@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
typemaker2_exe = @typemaker2_exe@
visibility_cflags = @visibility_cflags@
with_aqebics = @with_aqebics@
with_aqhbci = @with_aqhbci@
AM_CPPFLAGS = -I$(srcdir)/../.. -I$(srcdir)/.. -I$(top_builddir)/src/libs $(gwenhywfar_includes)
AM_CFLAGS = -DBUILDING_AQBANKING @visibility_cflags@
noinst_LTLIBRARIES = libabdialogs.la
#iheaderdir=@aqbanking_headerdir_am@/aqbanking
#iheader_HEADERS=
noinst_HEADERS = \
dlg_importer.h \
dlg_selectbankinfo.h \
dlg_setup.h \
dlg_selectbackend.h \
dlg_editaccount.h \
dlg_edituser.h \
dlg_usertype_page_be.h \
dlg_setup_newuser.h \
dlg_importer_p.h \
dlg_selectbankinfo_p.h \
dlg_setup_p.h \
dlg_selectbackend_p.h \
dlg_editaccount_p.h \
dlg_edituser_p.h \
dlg_usertype_page_p.h \
dlg_setup_newuser_p.h \
dlg_usertype_pagedefault_l.h \
dlg_usertype_pagedefault_p.h \
dlg_newaccount_be.h \
dlg_newaccount_p.h \
dlg_newuser_be.h \
dlg_newuser_p.h \
w_profilelist.h \
w_importerlist.h
libabdialogs_la_SOURCES = \
dlg_importer.c \
dlg_selectbankinfo.c \
dlg_setup.c \
dlg_selectbackend.c \
dlg_editaccount.c \
dlg_edituser.c \
dlg_usertype_page.c \
dlg_setup_newuser.c \
dlg_usertype_pagedefault.c \
dlg_newaccount.c \
dlg_newuser.c \
w_profilelist.c \
w_importerlist.c
dlgdatadir = $(aqbanking_pkgdatadir)/dialogs
dlgdata_DATA = \
dlg_importer.dlg \
dlg_selectbankinfo.dlg \
dlg_setup.dlg \
dlg_selectbackend.dlg \
dlg_editaccount.dlg \
dlg_edituser.dlg \
dlg_setup_newuser.dlg \
dlg_usertype_pagedefault.dlg
EXTRA_DIST = $(typefiles) $(dlgdata_DATA)
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/libs/aqbanking/dialogs/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --gnu src/libs/aqbanking/dialogs/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
clean-noinstLTLIBRARIES:
-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
@list='$(noinst_LTLIBRARIES)'; \
locs=`for p in $$list; do echo $$p; done | \
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
sort -u`; \
test -z "$$locs" || { \
echo rm -f $${locs}; \
rm -f $${locs}; \
}
libabdialogs.la: $(libabdialogs_la_OBJECTS) $(libabdialogs_la_DEPENDENCIES) $(EXTRA_libabdialogs_la_DEPENDENCIES)
$(AM_V_CCLD)$(LINK) $(libabdialogs_la_OBJECTS) $(libabdialogs_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_editaccount.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_edituser.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_importer.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_newaccount.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_newuser.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_selectbackend.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_selectbankinfo.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_setup.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_setup_newuser.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_usertype_page.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dlg_usertype_pagedefault.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/w_importerlist.Plo@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/w_profilelist.Plo@am__quote@ # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
am--depfiles: $(am__depfiles_remade)
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
install-dlgdataDATA: $(dlgdata_DATA)
@$(NORMAL_INSTALL)
@list='$(dlgdata_DATA)'; test -n "$(dlgdatadir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(dlgdatadir)'"; \
$(MKDIR_P) "$(DESTDIR)$(dlgdatadir)" || exit 1; \
fi; \
for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
echo "$$d$$p"; \
done | $(am__base_list) | \
while read files; do \
echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(dlgdatadir)'"; \
$(INSTALL_DATA) $$files "$(DESTDIR)$(dlgdatadir)" || exit $$?; \
done
uninstall-dlgdataDATA:
@$(NORMAL_UNINSTALL)
@list='$(dlgdata_DATA)'; test -n "$(dlgdatadir)" || list=; \
files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
dir='$(DESTDIR)$(dlgdatadir)'; $(am__uninstall_files_from_dir)
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES) $(DATA) $(HEADERS)
installdirs:
for dir in "$(DESTDIR)$(dlgdatadir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
mostlyclean-am
distclean: distclean-am
-rm -f ./$(DEPDIR)/dlg_editaccount.Plo
-rm -f ./$(DEPDIR)/dlg_edituser.Plo
-rm -f ./$(DEPDIR)/dlg_importer.Plo
-rm -f ./$(DEPDIR)/dlg_newaccount.Plo
-rm -f ./$(DEPDIR)/dlg_newuser.Plo
-rm -f ./$(DEPDIR)/dlg_selectbackend.Plo
-rm -f ./$(DEPDIR)/dlg_selectbankinfo.Plo
-rm -f ./$(DEPDIR)/dlg_setup.Plo
-rm -f ./$(DEPDIR)/dlg_setup_newuser.Plo
-rm -f ./$(DEPDIR)/dlg_usertype_page.Plo
-rm -f ./$(DEPDIR)/dlg_usertype_pagedefault.Plo
-rm -f ./$(DEPDIR)/w_importerlist.Plo
-rm -f ./$(DEPDIR)/w_profilelist.Plo
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am: install-dlgdataDATA
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f ./$(DEPDIR)/dlg_editaccount.Plo
-rm -f ./$(DEPDIR)/dlg_edituser.Plo
-rm -f ./$(DEPDIR)/dlg_importer.Plo
-rm -f ./$(DEPDIR)/dlg_newaccount.Plo
-rm -f ./$(DEPDIR)/dlg_newuser.Plo
-rm -f ./$(DEPDIR)/dlg_selectbackend.Plo
-rm -f ./$(DEPDIR)/dlg_selectbankinfo.Plo
-rm -f ./$(DEPDIR)/dlg_setup.Plo
-rm -f ./$(DEPDIR)/dlg_setup_newuser.Plo
-rm -f ./$(DEPDIR)/dlg_usertype_page.Plo
-rm -f ./$(DEPDIR)/dlg_usertype_pagedefault.Plo
-rm -f ./$(DEPDIR)/w_importerlist.Plo
-rm -f ./$(DEPDIR)/w_profilelist.Plo
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-dlgdataDATA
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
clean-generic clean-libtool clean-noinstLTLIBRARIES \
cscopelist-am ctags ctags-am distclean distclean-compile \
distclean-generic distclean-libtool distclean-tags distdir dvi \
dvi-am html html-am info info-am install install-am \
install-data install-data-am install-dlgdataDATA install-dvi \
install-dvi-am install-exec install-exec-am install-html \
install-html-am install-info install-info-am install-man \
install-pdf install-pdf-am install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
uninstall-dlgdataDATA
.PRECIOUS: Makefile
sources:
for f in $(libabdialogs_la_SOURCES); do \
echo $(subdir)/$$f >>$(top_srcdir)/i18nsources; \
done
for f in $(dlgdata_DATA); do \
echo $(subdir)/$$f >>$(top_srcdir)/dlgsources; \
done
for d in $(SUBDIRS); do \
$(MAKE) -C $$d sources; \
done
typefiles:
typedefs:
built_sources:
cppcheck:
for f in $(libabdialogs_la_SOURCES); do \
cppcheck --force $$f ; \
done
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_selectbankinfo.h 0000664 0001750 0001750 00000002153 14043610744 022334 0000000 0000000 /***************************************************************************
begin : Tue Apr 13 2010
copyright : (C) 2018 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifndef AQBANKING_DLG_SELECTBANKINFO_H
#define AQBANKING_DLG_SELECTBANKINFO_H
#include
#include
#include
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup G_AB_DIALOGS_SELECT_BANKINFO Bank Finder Dialog
* @ingroup G_AB_DIALOGS
*
*/
/*@{*/
GWEN_DIALOG *AB_SelectBankInfoDialog_new(AB_BANKING *ab,
const char *country,
const char *bankCode);
const AB_BANKINFO *AB_SelectBankInfoDialog_GetSelectedBankInfo(GWEN_DIALOG *dlg);
/*@}*/
#ifdef __cplusplus
}
#endif
#endif
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/w_importerlist.h 0000664 0001750 0001750 00000004254 14300721174 021602 0000000 0000000 /***************************************************************************
begin : Tue Feb 10 2010
copyright : (C) 2022 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifndef AQBANKING_W_IMPORTERLIST_H
#define AQBANKING_W_IMPORTERLIST_H
#include
#include
/** @name Helper Functions for Lists of Im-/Exporters
*
*/
/*@{*/
/**
* Init widget by setting header text for the supported columns and set selection mode to GWEN_Dialog_SelectionMode_Single.
*
* @param dlg dialog of which the widget is part
* @param widgetName name of the widget in the dialog to work on
*/
void AB_ImporterListWidget_Init(GWEN_DIALOG *dlg, const char *widgetName);
/**
* Update the list of importer shown in this widget.
*
* This function retrieves the list of all import modules and adds entries for every one of them.
* Keeps the currently selected profile.
*
* @param dlg dialog of which the widget is part
* @param importerName name of the widget in the dialog to work on
* @param banking pointer to used AqBanking object
*/
void AB_ImporterListWidget_UpdateList(GWEN_DIALOG *dlg, const char *widgetName, AB_BANKING *banking);
/**
* Select the given importer.
*
* @param dlg dialog of which the widget is part
* @param widgetName name of the widget in the dialog to work on
* @param importerName name of the profile to select
*/
void AB_ImporterListWidget_SelectImporter(GWEN_DIALOG *dlg, const char *widgetName, const char *importerName);
/**
* Get the name of the currently selected profile.
*
* @return new string containing the name of the selected profile (needs to be free'd) or NULL if none selected
* @param dlg dialog of which the widget is part
* @param widgetName name of the widget in the dialog to work on
*/
char *AB_ImporterListWidget_GetSelectedImporter(GWEN_DIALOG *dlg, const char *widgetName);
/*@}*/
#endif
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_edituser.dlg 0000664 0001750 0001750 00000004117 14043610744 021512 0000000 0000000
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_setup_newuser.h 0000664 0001750 0001750 00000002241 14043610744 022253 0000000 0000000 /***************************************************************************
begin : Fri Jul 30 2010
copyright : (C) 2018 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifndef AQBANKING_DLG_SETUP_NEWUSER_H
#define AQBANKING_DLG_SETUP_NEWUSER_H
#include
#include
/** @defgroup G_AB_DIALOGS_SETUP_NEWUSER Generic New User Dialog
* @ingroup G_AB_DIALOGS
*
*/
/*@{*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* Creates a user creation assistent.
*
* @return pointer to the created dialog.
*
* @param banking pointer to the AqBanking object
*/
GWEN_DIALOG *AB_SetupNewUserDialog_new(AB_BANKING *ab);
const char *AB_SetupNewUserDialog_GetSelectedBackend(const GWEN_DIALOG *dlg);
int AB_SetupNewUserDialog_GetSelectedType(const GWEN_DIALOG *dlg);
#ifdef __cplusplus
}
#endif
/*@}*/
#endif
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_usertype_pagedefault_l.h 0000664 0001750 0001750 00000001442 14043610744 024101 0000000 0000000 /***************************************************************************
begin : Fri Jul 30 2010
copyright : (C) 2010 by Martin Preuss
email : martin@aqbanking.de
***************************************************************************
* This file is part of the project "AqBanking". *
* Please see toplevel file COPYING of that project for license details. *
***************************************************************************/
#ifndef AQBANKING_DLG_USERTYPE_PAGEDEFAULT_L_H
#define AQBANKING_DLG_USERTYPE_PAGEDEFAULT_L_H
#include
#include
#ifdef __cplusplus
extern "C" {
#endif
GWEN_DIALOG *AB_UserTypePageDefaultDialog_new(AB_BANKING *ab);
#ifdef __cplusplus
}
#endif
#endif
aqbanking-6.7.7beta/src/libs/aqbanking/dialogs/dlg_setup_newuser.dlg 0000664 0001750 0001750 00000003623 14043610744 022577 0000000 0000000