[Gnucash-changes] More HBCI work.

Christian Stimming cstim at cvs.gnucash.org
Sat Sep 25 04:08:50 EDT 2004


Log Message:
-----------
More HBCI work.

Modified Files:
--------------
    gnucash/src/import-export/hbci:
        dialog-pass.c
        dialog-pass.h
        hbci-interaction.c
        hbci-interactionP.h

Revision Data
-------------
Index: dialog-pass.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/hbci/dialog-pass.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -Lsrc/import-export/hbci/dialog-pass.h -Lsrc/import-export/hbci/dialog-pass.h -u -r1.3 -r1.4
--- src/import-export/hbci/dialog-pass.h
+++ src/import-export/hbci/dialog-pass.h
@@ -30,7 +30,8 @@
 		       const char *windowtitle,
 		       const char *heading,
 		       const char *initial_password,
-		       char **password);
+		       char **password,
+		       gboolean hide_input);
 gboolean
 gnc_hbci_get_initial_password (GtkWidget *parent,
 			       const char *windowtitle,
Index: hbci-interactionP.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/hbci/hbci-interactionP.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -Lsrc/import-export/hbci/hbci-interactionP.h -Lsrc/import-export/hbci/hbci-interactionP.h -u -r1.9 -r1.10
--- src/import-export/hbci/hbci-interactionP.h
+++ src/import-export/hbci/hbci-interactionP.h
@@ -26,6 +26,7 @@
 
 #include <aqbanking/banking.h>
 #include <gnome.h>
+#include <iconv.h>
 
 
 typedef enum {
@@ -45,6 +46,7 @@
   GtkWidget *job_entry;
   GtkWidget *action_entry;
   GtkWidget *action_progress;
+  /* Counters for progress bar */
   double action_max;
 
   /* Log window */
@@ -58,20 +60,14 @@
   const char *format_pin_user_bank;
   const char *format_pin_min_char;
 
-  /* PinKeypad dialog, if used */
-  GtkWidget *pin_keypad_dialog;
-  
+  /* The iconv handler for utf8 -> latin1 conversion */
+  iconv_t gnc_iconv_handler;
+
   /* Flags to keep track on whether an HBCI action is running or
      not. */
   gboolean keepAlive;
   PMon_state state;
 
-  /* Counters for progress bar */
-  int jobs;
-  int current_job;
-  int actions;
-  int current_act;
-
   /* Flag on Whether the PIN should be cached. */
   gboolean cache_pin;
   /* The cached PIN and the HBCI_User it's cached for. */
@@ -92,4 +88,9 @@
 void
 gnc_hbci_add_callbacks(AB_BANKING *ba, GNCInteractor *data);
 
+/* Performs the full conversion from the (aaarg) utf8-combi-texts
+   passed from aqbanking into a "latin1-normal-text" format for
+   us. The returned string is owned by the caller. */
+gchar *gnc_hbci_utf8ToLatin1(GNCInteractor *data, const char *utf);
+
 #endif
Index: hbci-interaction.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/hbci/hbci-interaction.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -Lsrc/import-export/hbci/hbci-interaction.c -Lsrc/import-export/hbci/hbci-interaction.c -u -r1.42 -r1.43
--- src/import-export/hbci/hbci-interaction.c
+++ src/import-export/hbci/hbci-interaction.c
@@ -331,7 +331,8 @@
 					latin1title,
 					latin1text,
 					NULL,
-					&passwd);
+					&passwd,
+					hideInput);
       } /* user == data->user */
     } /* newPin */
     
Index: dialog-pass.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/import-export/hbci/dialog-pass.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -Lsrc/import-export/hbci/dialog-pass.c -Lsrc/import-export/hbci/dialog-pass.c -u -r1.5 -r1.6
--- src/import-export/hbci/dialog-pass.c
+++ src/import-export/hbci/dialog-pass.c
@@ -34,7 +34,8 @@
 		       const char *windowtitle,
 		       const char *heading,
 		       const char *initial_password,
-		       char **password)
+		       char **password,
+		       gboolean hide_input)
 {
   GtkWidget *dialog;
   GtkWidget *heading_label;
@@ -68,6 +69,7 @@
 
   if (initial_password)
     gtk_entry_set_text (GTK_ENTRY (password_entry), initial_password);
+  gtk_entry_set_visibility (GTK_ENTRY (password_entry), !hide_input);
 
   gtk_widget_grab_focus (password_entry);
 


More information about the gnucash-changes mailing list