r19358 - gnucash/trunk/src/import-export/aqbanking - Adapt to newest (unstable) aqbanking: No external application needed anymore for user setup.
Christian Stimming
cstim at code.gnucash.org
Mon Jul 12 14:54:43 EDT 2010
Author: cstim
Date: 2010-07-12 14:54:42 -0400 (Mon, 12 Jul 2010)
New Revision: 19358
Trac: http://svn.gnucash.org/trac/changeset/19358
Modified:
gnucash/trunk/src/import-export/aqbanking/druid-ab-initial.c
Log:
Adapt to newest (unstable) aqbanking: No external application needed anymore for user setup.
Modified: gnucash/trunk/src/import-export/aqbanking/druid-ab-initial.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/druid-ab-initial.c 2010-07-11 18:33:16 UTC (rev 19357)
+++ gnucash/trunk/src/import-export/aqbanking/druid-ab-initial.c 2010-07-12 18:54:42 UTC (rev 19358)
@@ -229,6 +229,33 @@
return;
}
+#if (AQBANKING_VERSION_MAJOR > 4) || \
+ ((AQBANKING_VERSION_MAJOR == 4) && \
+ ((AQBANKING_VERSION_MINOR > 99) || \
+ (AQBANKING_VERSION_MINOR == 99 && AQBANKING_VERSION_PATCHLEVEL > 8)))
+ /* For aqbanking5 > 4.99.8: Use AB_Banking_GetNewUserDialog(). */
+ {
+ GWEN_DIALOG *dlg =
+ AB_Banking_GetNewUserDialog(banking, "aqhbci", 0);
+
+ int rv = GWEN_Gui_ExecDialog(dlg, 0);
+ if (rv <= 0)
+ {
+ /* Dialog was aborted/rejected */
+ druid_disable_next_button(info);
+ }
+ else
+ {
+ /* Dialog accepted, all fine */
+ druid_enable_next_button(info);
+ }
+ GWEN_Dialog_free(dlg);
+ }
+#else
+ /* Previous implementation for aqbanking <= 4.99.8: Use the
+ * external application. */
+
+
/* This is the point where we look for and start an external
* application shipped with aqbanking that contains the setup druid
* for AqBanking related stuff. It requires qt (but not kde). This
@@ -327,6 +354,7 @@
}
GWEN_Buffer_free(buf);
+#endif
LEAVE(" ");
}
More information about the gnucash-changes
mailing list