it-codfisc-j2me-loginfo Mailing List for Codice Fiscale Italiano J2ME
Brought to you by:
marcoratto
You can subscribe to this list here.
2007 |
Jan
|
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
(22) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(10) |
Feb
|
Mar
(16) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Marco R. <mar...@us...> - 2008-03-31 13:03:35
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/bin In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv26443/bin Modified Files: CodiceFiscale.jad MANIFEST.MF Log Message: Updated Index: CodiceFiscale.jad =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/bin/CodiceFiscale.jad,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CodiceFiscale.jad 2 Mar 2008 17:33:58 -0000 1.5 --- CodiceFiscale.jad 31 Mar 2008 13:03:24 -0000 1.6 *************** *** 1,3 **** ! MIDlet-1: Codice Fiscale, CodiceFiscale.png, uk.co.marcoratto.j2me.codicefiscale.CodiceFiscaleMIDlet MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net --- 1,3 ---- ! MIDlet-1: Codice Fiscale,/logo.jpg, uk.co.marcoratto.j2me.codicefiscale.CodiceFiscaleMIDlet MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net Index: MANIFEST.MF =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/bin/MANIFEST.MF,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MANIFEST.MF 7 Jan 2008 18:06:10 -0000 1.4 --- MANIFEST.MF 31 Mar 2008 13:03:24 -0000 1.5 *************** *** 1,4 **** ! MIDlet-1: Codice Fiscale, CodiceFiscale.png, uk.co.marcoratto.j2me.codi ! cefiscale.CodiceFiscaleMIDlet MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net --- 1,4 ---- ! MIDlet-1: Codice Fiscale,/logo.jpg, uk.co.marcoratto.j2me.codicefiscale ! .CodiceFiscaleMIDlet MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net |
From: Marco R. <mar...@us...> - 2008-03-31 13:02:50
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/res In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv25773/res Added Files: logo.jpg Log Message: New file. Added. --- NEW FILE: logo.jpg --- (This appears to be a binary file; contents omitted.) |
From: Marco R. <mar...@us...> - 2008-03-02 17:42:19
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv10011 Added Files: runme.sh Log Message: Updated --- NEW FILE: runme.sh --- #!/bin/sh WTK_HOME=/usr/local/WTK $WTK_HOME/bin/emulator -Xdescriptor:./bin/CodiceFiscale.jad |
From: Marco R. <mar...@us...> - 2008-03-02 17:42:19
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/bin In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv10011/bin Modified Files: CodiceFiscale.jar Log Message: Updated Index: CodiceFiscale.jar =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/bin/CodiceFiscale.jar,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 Binary files /tmp/cvsJyPyk7 and /tmp/cvsL035S1 differ |
From: Marco R. <mar...@us...> - 2008-03-02 17:38:55
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/tmpclasses/uk/co/marcoratto/j2me/utils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv8487/tmpclasses/uk/co/marcoratto/j2me/utils Log Message: Directory /cvsroot/it-codfisc-j2me/CodiceFiscale/tmpclasses/uk/co/marcoratto/j2me/utils added to the repository |
From: Marco R. <mar...@us...> - 2008-03-02 17:33:58
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/codicefiscale In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6437/src/uk/co/marcoratto/j2me/codicefiscale Modified Files: CodiceFiscaleMIDlet.java SavedForm.java PrefsForm.java Log Message: Adjusted for Eclipse IDE with EclipseME Index: SavedForm.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/codicefiscale/SavedForm.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SavedForm.java 7 Jan 2008 18:07:20 -0000 1.2 --- SavedForm.java 2 Mar 2008 17:33:58 -0000 1.3 *************** *** 20,34 **** package uk.co.marcoratto.j2me.codicefiscale; - import java.io.*; - import java.util.*; - import javax.microedition.lcdui.*; - import javax.microedition.midlet.*; - import javax.wireless.messaging.*; - import javax.microedition.rms.*; import uk.co.marcoratto.j2me.i18n.I18N; import uk.co.marcoratto.j2me.utils.*; - import uk.co.marcoratto.j2me.codicefiscale.*; public class SavedForm extends List implements CommandListener { --- 20,27 ---- *************** *** 54,58 **** try { ! store = new Store(parent.RS_LIST, false); for (int i=1; i <= store.size(); i++) { String temp = store.read(i); --- 47,51 ---- try { ! store = new Store(CodiceFiscaleMIDlet.RS_LIST, false); for (int i=1; i <= store.size(); i++) { String temp = store.read(i); *************** *** 78,82 **** } else if (cmd == commandDelete) { try { ! store = new Store(parent.RS_LIST, false); store.delete(this.getSelectedIndex()+1); delete(this.getSelectedIndex()); --- 71,75 ---- } else if (cmd == commandDelete) { try { ! store = new Store(CodiceFiscaleMIDlet.RS_LIST, false); store.delete(this.getSelectedIndex()+1); delete(this.getSelectedIndex()); *************** *** 91,95 **** } else if (cmd == commandDeleteAll) { try { ! store = new Store(parent.RS_LIST, false); store.deleteAll(); this.deleteAll(); --- 84,88 ---- } else if (cmd == commandDeleteAll) { try { ! store = new Store(CodiceFiscaleMIDlet.RS_LIST, false); store.deleteAll(); this.deleteAll(); Index: PrefsForm.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/codicefiscale/PrefsForm.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PrefsForm.java 7 Jan 2008 18:07:20 -0000 1.1 --- PrefsForm.java 2 Mar 2008 17:33:58 -0000 1.2 *************** *** 20,34 **** package uk.co.marcoratto.j2me.codicefiscale; - import java.io.*; - import java.util.*; - import javax.microedition.lcdui.*; - import javax.microedition.midlet.*; - import javax.wireless.messaging.*; - import javax.microedition.rms.*; import uk.co.marcoratto.j2me.i18n.I18N; ! import uk.co.marcoratto.j2me.utils.*; ! import uk.co.marcoratto.j2me.codicefiscale.*; public class PrefsForm extends Form implements CommandListener { --- 20,27 ---- package uk.co.marcoratto.j2me.codicefiscale; import javax.microedition.lcdui.*; import uk.co.marcoratto.j2me.i18n.I18N; ! import uk.co.marcoratto.j2me.utils.Store; public class PrefsForm extends Form implements CommandListener { *************** *** 60,64 **** try { ! store = new Store(parent.RS_PREFS, true); String s = store.read(1); if (s != null) { --- 53,57 ---- try { ! store = new Store(CodiceFiscaleMIDlet.RS_PREFS, true); String s = store.read(1); if (s != null) { *************** *** 81,85 **** } else if (cmd == prefsCommandConfirm) { try { ! store = new Store(parent.RS_PREFS, true); store.deleteAll(); } catch (Exception e) { --- 74,78 ---- } else if (cmd == prefsCommandConfirm) { try { ! store = new Store(CodiceFiscaleMIDlet.RS_PREFS, true); store.deleteAll(); } catch (Exception e) { *************** *** 93,97 **** } try { ! store = new Store(parent.RS_PREFS, true); store.insert(this.provincia.getSelectedIndex()); } catch (Exception e) { --- 86,90 ---- } try { ! store = new Store(CodiceFiscaleMIDlet.RS_PREFS, true); store.insert(this.provincia.getSelectedIndex()); } catch (Exception e) { Index: CodiceFiscaleMIDlet.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/codicefiscale/CodiceFiscaleMIDlet.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CodiceFiscaleMIDlet.java 7 Jan 2008 18:07:20 -0000 1.3 --- CodiceFiscaleMIDlet.java 2 Mar 2008 17:33:58 -0000 1.4 *************** *** 25,29 **** import javax.microedition.midlet.*; import javax.microedition.lcdui.*; - import javax.microedition.rms.*; import javax.wireless.messaging.*; --- 25,28 ---- *************** *** 52,56 **** /** Error message displayed when an invalid phone number is entered */ private Form formSendSMS; - private TextBox messageBox; final static String RS_LIST = "CodiceFiscaleListRS"; --- 51,54 ---- *************** *** 220,224 **** } else if (c == commandSend) { String address = number.getString(); ! if (this.isValidPhoneNumber(address)) { new Thread(this).start(); } --- 218,222 ---- } else if (c == commandSend) { String address = number.getString(); ! if (isValidPhoneNumber(address)) { new Thread(this).start(); } *************** *** 510,514 **** * a leading '+'. */ ! private static boolean isValidPhoneNumber(String number) { char[] chars = number.toCharArray(); if (chars.length == 0) { --- 508,512 ---- * a leading '+'. */ ! private boolean isValidPhoneNumber(String number) { char[] chars = number.toCharArray(); if (chars.length == 0) { *************** *** 592,596 **** int idxProv = 0; try { ! store = new Store(this.MIDlet.RS_PREFS, true); String s = store.read(1); if (s != null) { --- 590,594 ---- int idxProv = 0; try { ! store = new Store(CodiceFiscaleMIDlet.RS_PREFS, true); String s = store.read(1); if (s != null) { |
From: Marco R. <mar...@us...> - 2008-03-02 17:33:58
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/sms In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6437/src/uk/co/marcoratto/j2me/sms Modified Files: SMSSend.java Log Message: Adjusted for Eclipse IDE with EclipseME Index: SMSSend.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/sms/SMSSend.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SMSSend.java 6 Sep 2007 08:50:58 -0000 1.2 --- SMSSend.java 2 Mar 2008 17:33:59 -0000 1.3 *************** *** 21,29 **** import javax.microedition.midlet.*; - import javax.microedition.io.*; import javax.microedition.lcdui.*; - import javax.wireless.messaging.*; - - import java.io.IOException; /** --- 21,25 ---- |
From: Marco R. <mar...@us...> - 2008-03-02 17:33:58
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6437 Modified Files: project.properties Added Files: .classpath .eclipseme CodiceFiscale.jad .project Log Message: Adjusted for Eclipse IDE with EclipseME --- NEW FILE: CodiceFiscale.jad --- MIDlet-1: Codice Fiscale, CodiceFiscale.png, uk.co.marcoratto.j2me.codicefiscale.CodiceFiscaleMIDlet MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net MIDlet-Jar-Size: 139725 MIDlet-Jar-URL: CodiceFiscale.jar MIDlet-Name: Codice Fiscale MIDlet-Vendor: Marco Ratto MIDlet-Version: 1.3 MicroEdition-Configuration: CLDC-1.1 MicroEdition-Profile: MIDP-2.0 --- NEW FILE: .project --- <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>CodiceFiscale</name> <comment></comment> <projects> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> <name>eclipseme.core.preverifier</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> <nature>eclipseme.core.nature</nature> </natures> </projectDescription> Index: project.properties =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/project.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** project.properties 6 Sep 2007 08:02:43 -0000 1.2 --- project.properties 2 Mar 2008 17:33:59 -0000 1.3 *************** *** 12,21 **** JSR239: false JSR75: false ! MMAPI: false SATSA-APDU: false SATSA-CRYPTO: false SATSA-JCRMI: false SATSA-PKI: false ! WMA2.0: false configuration: CLDC1.1 ! platform: JTWI --- 12,24 ---- JSR239: false JSR75: false ! MMAPI: true SATSA-APDU: false SATSA-CRYPTO: false SATSA-JCRMI: false SATSA-PKI: false ! WMA0: false ! WMA1.1: false ! WMA2.0: true configuration: CLDC1.1 ! platform: CUSTOM ! profile: MIDP2.0 --- NEW FILE: .classpath --- <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="src" path="res"/> <classpathentry kind="con" path="J2MELIB"/> <classpathentry kind="output" path="classes"/> </classpath> --- NEW FILE: .eclipseme --- <?xml version="1.0" encoding="UTF-8"?> <eclipsemeMetadata jad="CodiceFiscale.jad" version="1.7.7"> <device group="Sun Java(TM) Wireless Toolkit 2.5.2 for CLDC" name="DefaultColorPhone"/> <signing signProject="false"/> </eclipsemeMetadata> |
From: Marco R. <mar...@us...> - 2008-03-02 17:33:58
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/info In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6437/src/uk/co/marcoratto/j2me/info Modified Files: Info.java Log Message: Adjusted for Eclipse IDE with EclipseME Index: Info.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/info/Info.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Info.java 6 Sep 2007 08:50:58 -0000 1.2 --- Info.java 2 Mar 2008 17:34:00 -0000 1.3 *************** *** 22,43 **** import javax.microedition.lcdui.*; - import java.io.*; - import uk.co.marcoratto.j2me.i18n.I18N; public class Info { ! /** the previous screen to go back to */ ! private Displayable previous; ! ! private static Info istanza = null; ! private Display display; ! private Form form; private StringBuffer propbuf; private CommandListener commandListener = null; - private final static String locale = System.getProperty("microedition.locale"); - /** * Do not allow anyone to create this class --- 22,36 ---- import javax.microedition.lcdui.*; import uk.co.marcoratto.j2me.i18n.I18N; public class Info { ! private static Info istanza = null; ! private Display display; ! private Form form; private StringBuffer propbuf; private CommandListener commandListener = null; /** * Do not allow anyone to create this class |
From: Marco R. <mar...@us...> - 2008-03-02 17:33:58
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/.settings In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6437/.settings Added Files: eclipseme.core.prefs Log Message: Adjusted for Eclipse IDE with EclipseME --- NEW FILE: eclipseme.core.prefs --- #Sun Mar 02 17:36:24 CET 2008 eclipse.preferences.version=1 preverify_config_value=CLDC-1.0 |
From: Marco R. <mar...@us...> - 2008-03-02 17:33:58
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/about In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6437/src/uk/co/marcoratto/j2me/about Modified Files: About.java Log Message: Adjusted for Eclipse IDE with EclipseME Index: About.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/about/About.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** About.java 6 Sep 2007 08:49:38 -0000 1.2 --- About.java 2 Mar 2008 17:33:59 -0000 1.3 *************** *** 23,28 **** import javax.microedition.lcdui.*; - import java.io.*; - import uk.co.marcoratto.j2me.i18n.I18N; --- 23,26 ---- *************** *** 34,43 **** public class About { ! /** the previous screen to go back to */ ! private Displayable previous; ! ! private static About istanza = null; ! private Alert alert; ! private Display display; private String copyright; --- 32,38 ---- public class About { ! private static About istanza = null; ! private Alert alert; ! private Display display; private String copyright; |
From: Marco R. <mar...@us...> - 2008-03-02 17:33:57
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/utils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6437/src/uk/co/marcoratto/j2me/utils Modified Files: Store.java Log Message: Adjusted for Eclipse IDE with EclipseME Index: Store.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/utils/Store.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Store.java 7 Jan 2008 18:06:43 -0000 1.2 --- Store.java 2 Mar 2008 17:33:59 -0000 1.3 *************** *** 45,49 **** String fileName = recordStore.getName(); recordStore.closeRecordStore(); ! recordStore.deleteRecordStore(fileName); } else { recordStore.closeRecordStore(); --- 45,49 ---- String fileName = recordStore.getName(); recordStore.closeRecordStore(); ! RecordStore.deleteRecordStore(fileName); } else { recordStore.closeRecordStore(); |
From: Marco R. <mar...@us...> - 2008-03-02 17:33:57
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/bin In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6437/bin Modified Files: CodiceFiscale.jar CodiceFiscale.jad Log Message: Adjusted for Eclipse IDE with EclipseME Index: CodiceFiscale.jad =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/bin/CodiceFiscale.jad,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** CodiceFiscale.jad 7 Jan 2008 18:06:10 -0000 1.4 --- CodiceFiscale.jad 2 Mar 2008 17:33:58 -0000 1.5 *************** *** 2,6 **** MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net ! MIDlet-Jar-Size: 139725 MIDlet-Jar-URL: CodiceFiscale.jar MIDlet-Name: Codice Fiscale --- 2,6 ---- MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net ! MIDlet-Jar-Size: 139646 MIDlet-Jar-URL: CodiceFiscale.jar MIDlet-Name: Codice Fiscale Index: CodiceFiscale.jar =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/bin/CodiceFiscale.jar,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 Binary files /tmp/cvs7j3Eub and /tmp/cvs9EJdtQ differ |
From: Marco R. <mar...@us...> - 2008-03-02 17:28:30
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/.settings In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv5048/.settings Log Message: Directory /cvsroot/it-codfisc-j2me/CodiceFiscale/.settings added to the repository |
From: Marco R. <mar...@us...> - 2008-03-02 17:28:30
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/tmplib In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv5048/tmplib Log Message: Directory /cvsroot/it-codfisc-j2me/CodiceFiscale/tmplib added to the repository |
From: Marco R. <mar...@us...> - 2008-03-02 15:49:35
|
Update of /cvsroot/it-codfisc-j2me/CVSROOT In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv29661 Added Files: .project Log Message: Added for Eclipse IDE --- NEW FILE: .project --- <?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>CVSROOT</name> <comment></comment> <projects> </projects> <buildSpec> </buildSpec> <natures> </natures> </projectDescription> |
From: Marco R. <mar...@us...> - 2008-01-07 18:08:17
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/res/i18n In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv30050 Modified Files: en.properties en-US.properties it.properties Log Message: Updated Index: en-US.properties =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/res/i18n/en-US.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** en-US.properties 6 Sep 2007 08:45:28 -0000 1.1 --- en-US.properties 7 Jan 2008 18:08:19 -0000 1.2 *************** *** 11,14 **** --- 11,15 ---- menu.send.sms=Send via SMS menu.saved=Stored + menu.preferences=Preferences menu.info=System Properties menu.help=Help *************** *** 42,50 **** # Saved Form ! saved.title=Saved List saved.button.delete=Delete saved.button.deleteAll=Delete all saved.button.select=Select # Info Form info.title=Italian Fiscal Code - System Properties --- 43,56 ---- # Saved Form ! saved.title=Italian Fiscal Code - Stored saved.button.delete=Delete saved.button.deleteAll=Delete all saved.button.select=Select + # Prefs Form + prefs.title=Italian Fiscal Code - Preferences + prefs.label.province=Default Province: + prefs.button.confirm=Confirm + # Info Form info.title=Italian Fiscal Code - System Properties *************** *** 54,58 **** # About Form about.title=Italian Fiscal Code - About ! about.copyright=Version 1.2 (c) 04/09/2007 about.copyright=Written by Marco Ratto about.copyright=with Linux and J2ME Wireless Toolkit 2.5.1 --- 60,64 ---- # About Form about.title=Italian Fiscal Code - About ! about.copyright=Version 1.3 (c) 07/01/2008 about.copyright=Written by Marco Ratto about.copyright=with Linux and J2ME Wireless Toolkit 2.5.1 *************** *** 80,83 **** --- 86,90 ---- alert.record_already_saved=Record already saved! alert.record_save_exception=Error on saving record! + alert.prefs_saved=Preferences updated! # Errors Index: it.properties =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/res/i18n/it.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** it.properties 6 Sep 2007 08:45:28 -0000 1.2 --- it.properties 7 Jan 2008 18:08:19 -0000 1.3 *************** *** 11,14 **** --- 11,15 ---- menu.send.sms=Invia via SMS menu.saved=Salvati + menu.preferences=Preferenze menu.info=Proprieta' di Sistema menu.help=Aiuto *************** *** 42,50 **** # Saved Form ! saved.title=Elenco Salvataggi saved.button.delete=Cancella saved.button.deleteAll=Cancella tutti saved.button.select=Seleziona # Info Form info.title=Codice Fiscale Italiano - System Properties --- 43,56 ---- # Saved Form ! saved.title=Codice Fiscale Italiano - Salvataggi saved.button.delete=Cancella saved.button.deleteAll=Cancella tutti saved.button.select=Seleziona + # Prefs Form + prefs.title=Codice Fiscale Italiano - Preferenze + prefs.label.province=Provincia di default: + prefs.button.confirm=Conferma + # Info Form info.title=Codice Fiscale Italiano - System Properties *************** *** 54,58 **** # About Form about.title=Codice Fiscale Italiano - About ! about.copyright=Versione 1.2 (c) 04/09/2007 about.copyright=scritto da Marco Ratto about.copyright=con Linux e J2ME Wireless Toolkit 2.5.1 --- 60,64 ---- # About Form about.title=Codice Fiscale Italiano - About ! about.copyright=Versione 1.3 (c) 07/01/2008 about.copyright=scritto da Marco Ratto about.copyright=con Linux e J2ME Wireless Toolkit 2.5.1 *************** *** 80,83 **** --- 86,90 ---- alert.record_already_saved=Record gia' salvato in precedenza! alert.record_save_exception=Errore in fase di salvataggio! + alert.prefs_saved=Preferenze aggiornate! # Errors Index: en.properties =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/res/i18n/en.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** en.properties 6 Sep 2007 08:45:28 -0000 1.2 --- en.properties 7 Jan 2008 18:08:19 -0000 1.3 *************** *** 11,14 **** --- 11,15 ---- menu.send.sms=Send via SMS menu.saved=Stored + menu.preferences=Preferences menu.info=System Properties menu.help=Help *************** *** 42,50 **** # Saved Form ! saved.title=Saved List saved.button.delete=Delete saved.button.deleteAll=Delete all saved.button.select=Select # Info Form info.title=Italian Fiscal Code - System Properties --- 43,56 ---- # Saved Form ! saved.title=Italian Fiscal Code - Stored saved.button.delete=Delete saved.button.deleteAll=Delete all saved.button.select=Select + # Prefs Form + prefs.title=Italian Fiscal Code - Preferences + prefs.label.province=Default Province: + prefs.button.confirm=Confirm + # Info Form info.title=Italian Fiscal Code - System Properties *************** *** 54,58 **** # About Form about.title=Italian Fiscal Code - About ! about.copyright=Version 1.2 (c) 04/09/2007 about.copyright=Written by Marco Ratto about.copyright=with Linux and J2ME Wireless Toolkit 2.5.1 --- 60,64 ---- # About Form about.title=Italian Fiscal Code - About ! about.copyright=Version 1.3 (c) 07/01/2008 about.copyright=Written by Marco Ratto about.copyright=with Linux and J2ME Wireless Toolkit 2.5.1 *************** *** 80,83 **** --- 86,90 ---- alert.record_already_saved=Record already saved! alert.record_save_exception=Error on saving record! + alert.prefs_saved=Preferences updated! # Errors |
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/codicefiscale In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv29531 Modified Files: CodiceFiscaleMIDlet.java FileComuniCsvSingleton.java FileProvinceCsvSingleton.java SavedForm.java Added Files: PrefsForm.java Log Message: Updated --- NEW FILE: PrefsForm.java --- /* * Copyright (C) 2007 Marco Ratto * * This file is part of the project it-codfisc-j2me. * * it-codfisc-j2me 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 of the License, or * any later version. * * it-codfisc-j2me 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 it-codfisc-j2me; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package uk.co.marcoratto.j2me.codicefiscale; import java.io.*; import java.util.*; import javax.microedition.lcdui.*; import javax.microedition.midlet.*; import javax.wireless.messaging.*; import javax.microedition.rms.*; import uk.co.marcoratto.j2me.i18n.I18N; import uk.co.marcoratto.j2me.utils.*; import uk.co.marcoratto.j2me.codicefiscale.*; public class PrefsForm extends Form implements CommandListener { private final CodiceFiscaleMIDlet parent; private Command prefsCommandCancel = new Command(I18N.getInstance().translate("back"), Command.BACK, 1); private Command prefsCommandConfirm = new Command(I18N.getInstance().translate("prefs.button.confirm"), Command.STOP, 1); private ChoiceGroup provincia = new ChoiceGroup(I18N.getInstance().translate("prefs.label.province"), ChoiceGroup.POPUP); private Store store; public PrefsForm(CodiceFiscaleMIDlet parent) { super(I18N.getInstance().translate("prefs.title")); this.parent = parent; // init UI provincia.deleteAll(); Provincia[] elenco = FileProvinceCsvSingleton.getInstance().getElenco(); for (int j=0; j<elenco.length; j++) { provincia.append(elenco[j].getName(), null); } append(provincia); addCommand(prefsCommandCancel); addCommand(prefsCommandConfirm); // create the form setCommandListener(this); try { store = new Store(parent.RS_PREFS, true); String s = store.read(1); if (s != null) { provincia.setSelectedIndex(Integer.parseInt(s, 10), true); } } catch (Exception e) { // Ignore } finally { try { store.close(); } catch (Exception e) { // Ignore } } } public void commandAction(Command cmd, Displayable displayable) { if (cmd == prefsCommandCancel) { parent.mainMenu(); } else if (cmd == prefsCommandConfirm) { try { store = new Store(parent.RS_PREFS, true); store.deleteAll(); } catch (Exception e) { // Ignore } finally { try { store.close(); } catch (Exception e) { // Ignore } } try { store = new Store(parent.RS_PREFS, true); store.insert(this.provincia.getSelectedIndex()); } catch (Exception e) { // Ignore } finally { try { store.close(); } catch (Exception e) { // Ignore } } this.parent.showMessage(I18N.getInstance().translate("alert.prefs_saved")); } } } Index: FileComuniCsvSingleton.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/codicefiscale/FileComuniCsvSingleton.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FileComuniCsvSingleton.java 6 Sep 2007 08:49:38 -0000 1.2 --- FileComuniCsvSingleton.java 7 Jan 2008 18:07:20 -0000 1.3 *************** *** 52,56 **** v = (Vector) this.elencoComuni.get(siglaProvincia); } else { ! System.out.println("AmbienteSingleton.getInstance():Devo leggere i comuni della provincia " + siglaProvincia); InputStream is = null; try { --- 52,56 ---- v = (Vector) this.elencoComuni.get(siglaProvincia); } else { ! System.out.println("FileComuniCsvSingleton.getInstance():Devo leggere i comuni della provincia " + siglaProvincia); InputStream is = null; try { *************** *** 62,66 **** if (b[0] == 10) { String s = str.toString(); - // System.out.println("AmbienteSingleton.getInstance():" + s); Comune comune = new Comune(); comune.setName(s.substring(0, s.indexOf(","))); --- 62,65 ---- Index: FileProvinceCsvSingleton.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/codicefiscale/FileProvinceCsvSingleton.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FileProvinceCsvSingleton.java 6 Sep 2007 08:49:38 -0000 1.2 --- FileProvinceCsvSingleton.java 7 Jan 2008 18:07:20 -0000 1.3 *************** *** 27,53 **** private static FileProvinceCsvSingleton istanza = null; ! Provincia seq[]; private FileProvinceCsvSingleton() { } public static FileProvinceCsvSingleton getInstance() { if (istanza == null) { - try { istanza = new FileProvinceCsvSingleton(); ! istanza.init(); ! } catch (Exception e) { ! System.out.println(e); ! } } return istanza; } ! protected void init() throws Exception { ! Vector table = new Vector(0, 1); ! System.out.println("AmbienteSingleton.getInstance():Devo leggere l'elenco delle province"); ! InputStream is = null; try { - is = this.getClass().getResourceAsStream("/data/province.csv"); StringBuffer str = new StringBuffer(); byte b[] = new byte[1]; --- 27,53 ---- private static FileProvinceCsvSingleton istanza = null; ! private Provincia seq[]; private FileProvinceCsvSingleton() { + System.out.println("FileProvinceCsvSingleton()"); } public static FileProvinceCsvSingleton getInstance() { if (istanza == null) { istanza = new FileProvinceCsvSingleton(); ! istanza.init(); } return istanza; } ! public Provincia[] getElenco() { ! return seq; ! } ! ! private void init() { ! System.out.println("FileProvinceCsvSingleton.load(): start"); ! InputStream is = this.getClass().getResourceAsStream("/data/province.csv"); ! Vector table = new Vector(0, 1); try { StringBuffer str = new StringBuffer(); byte b[] = new byte[1]; *************** *** 64,68 **** str.append(new String(b)); } ! } int num = table.size(); seq = new Provincia[num]; --- 64,68 ---- str.append(new String(b)); } ! } int num = table.size(); seq = new Provincia[num]; *************** *** 82,89 **** } } - - public Provincia[] getElenco() { - return seq; - } - } --- 82,84 ---- Index: SavedForm.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/codicefiscale/SavedForm.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SavedForm.java 6 Sep 2007 08:49:38 -0000 1.1 --- SavedForm.java 7 Jan 2008 18:07:20 -0000 1.2 *************** *** 35,42 **** private final CodiceFiscaleMIDlet parent; ! private Command savedCommandBack = new Command(I18N.getInstance().translate("back"), Command.BACK, 0); ! private Command commandDelete = new Command(I18N.getInstance().translate("saved.button.delete"), Command.STOP, 2); ! private Command commandDeleteAll = new Command(I18N.getInstance().translate("saved.button.deleteAll"), Command.STOP, 2); ! private Command commandSelect = new Command(I18N.getInstance().translate("saved.button.select"), Command.STOP, 2); private Store store; --- 35,42 ---- private final CodiceFiscaleMIDlet parent; ! private Command savedCommandBack = new Command(I18N.getInstance().translate("back"), Command.BACK, 1); ! private Command commandDelete = new Command(I18N.getInstance().translate("saved.button.delete"), Command.STOP, 1); ! private Command commandDeleteAll = new Command(I18N.getInstance().translate("saved.button.deleteAll"), Command.STOP, 1); ! // private Command commandSelect = new Command(I18N.getInstance().translate("saved.button.select"), Command.OK, 1); private Store store; *************** *** 47,51 **** // init UI addCommand(savedCommandBack); - addCommand(commandSelect); addCommand(commandDelete); addCommand(commandDeleteAll); --- 47,50 ---- *************** *** 55,59 **** try { ! store = new Store(parent.RECORD_STORE, false); for (int i=1; i <= store.size(); i++) { String temp = store.read(i); --- 54,58 ---- try { ! store = new Store(parent.RS_LIST, false); for (int i=1; i <= store.size(); i++) { String temp = store.read(i); *************** *** 73,112 **** public void commandAction(Command cmd, Displayable displayable) { if (cmd == savedCommandBack) { parent.mainMenu(); return; - } else if (cmd == commandSelect) { - String[] fields = Utility.split(this.getString(this.getSelectedIndex()), ';'); - if (fields == null) { - parent.showMessage(I18N.getInstance().translate("alert.saved.record_error")); - return; - } - try { - parent.cf = new CodiceFiscale(); - parent.cf.setCognome(fields[1]); - parent.cf.setNome(fields[2]); - parent.cf.setSesso(fields[3]); - parent.cf.setDataNascita(fields[4], fields[5], fields[6]); - parent.cf.setProvinciaLuogoNascita(fields[7]); - parent.cf.setLuogoNascita(fields[8]); - parent.cf.setCodiceLuogoNascita(fields[9]); - parent.cf.setIndiceSesso(Integer.parseInt(fields[10], 10)); - parent.cf.setIndiceProvinciaLuogoNascita(Integer.parseInt(fields[11], 10)); - parent.cf.setIndiceLuogoNascita(Integer.parseInt(fields[12], 10)); - parent.cf.calcola(); - if (fields[0].equalsIgnoreCase(parent.cf.getCodiceFiscale()) == false) { - parent.cf = null; - parent.showMessage(I18N.getInstance().translate("alert.saved.codice_fiscale_error")); - } else { - parent.showMessage(I18N.getInstance().translate("alert.record_readed")); - } - } catch (Exception e) { - e.printStackTrace(); - parent.cf = null; - parent.showMessage(I18N.getInstance().translate("alert.saved.codice_fiscale_exception")); - } } else if (cmd == commandDelete) { try { ! store = new Store(parent.RECORD_STORE, false); store.delete(this.getSelectedIndex()+1); delete(this.getSelectedIndex()); --- 72,82 ---- public void commandAction(Command cmd, Displayable displayable) { + System.out.println("commandAction(Command, Displayable):" + cmd.getCommandType()); if (cmd == savedCommandBack) { parent.mainMenu(); return; } else if (cmd == commandDelete) { try { ! store = new Store(parent.RS_LIST, false); store.delete(this.getSelectedIndex()+1); delete(this.getSelectedIndex()); *************** *** 121,125 **** } else if (cmd == commandDeleteAll) { try { ! store = new Store(parent.RECORD_STORE, false); store.deleteAll(); this.deleteAll(); --- 91,95 ---- } else if (cmd == commandDeleteAll) { try { ! store = new Store(parent.RS_LIST, false); store.deleteAll(); this.deleteAll(); *************** *** 132,136 **** --- 102,142 ---- } } + } else { + if (this.getSelectedIndex() >= 0) { + this.loadData(this.getSelectedIndex()); + } } } + + private void loadData(int idx) { + String[] fields = Utility.split(this.getString(idx), ';'); + if (fields == null) { + parent.showMessage(I18N.getInstance().translate("alert.saved.record_error")); + return; + } + try { + parent.cf = new CodiceFiscale(); + parent.cf.setCognome(fields[1]); + parent.cf.setNome(fields[2]); + parent.cf.setSesso(fields[3]); + parent.cf.setDataNascita(fields[4], fields[5], fields[6]); + parent.cf.setProvinciaLuogoNascita(fields[7]); + parent.cf.setLuogoNascita(fields[8]); + parent.cf.setCodiceLuogoNascita(fields[9]); + parent.cf.setIndiceSesso(Integer.parseInt(fields[10], 10)); + parent.cf.setIndiceProvinciaLuogoNascita(Integer.parseInt(fields[11], 10)); + parent.cf.setIndiceLuogoNascita(Integer.parseInt(fields[12], 10)); + parent.cf.calcola(); + if (fields[0].equalsIgnoreCase(parent.cf.getCodiceFiscale()) == false) { + parent.cf = null; + parent.showMessage(I18N.getInstance().translate("alert.saved.codice_fiscale_error")); + } else { + parent.showMessage(I18N.getInstance().translate("alert.record_readed")); + } + } catch (Exception e) { + e.printStackTrace(); + parent.cf = null; + parent.showMessage(I18N.getInstance().translate("alert.saved.codice_fiscale_exception")); + } + } } Index: CodiceFiscaleMIDlet.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/codicefiscale/CodiceFiscaleMIDlet.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CodiceFiscaleMIDlet.java 6 Sep 2007 08:49:38 -0000 1.2 --- CodiceFiscaleMIDlet.java 7 Jan 2008 18:07:20 -0000 1.3 *************** *** 40,43 **** --- 40,44 ---- private SavedForm savedForm; + private PrefsForm prefsForm; private Store store; *************** *** 53,57 **** private TextBox messageBox; ! final static String RECORD_STORE = "CodiceFiscaleRS"; /** A choice group with available operations. */ --- 54,59 ---- private TextBox messageBox; ! final static String RS_LIST = "CodiceFiscaleListRS"; ! final static String RS_PREFS = "CodiceFiscalePrefsRS"; /** A choice group with available operations. */ *************** *** 88,91 **** --- 90,95 ---- public CodiceFiscaleMIDlet() { + FileProvinceCsvSingleton.getInstance(); + // Alert form alert = new Alert(I18N.getInstance().translate("alert.title"), "", null, AlertType.ERROR); *************** *** 106,110 **** public void startApp() { // Load Singletons... ! FileComuniCsvSingleton.getInstance().getElenco(FileProvinceCsvSingleton.getInstance().getElenco()[0].getCode()); // Menu --- 110,130 ---- public void startApp() { // Load Singletons... ! int idxProv = 0; ! try { ! store = new Store(RS_PREFS, true); ! String s = store.read(1); ! if (s != null) { ! idxProv = Integer.parseInt(s, 10); ! } ! } catch (Exception e) { ! // Ignore ! } finally { ! try { ! store.close(); ! } catch (Exception e) { ! // Ignore ! } ! } ! FileComuniCsvSingleton.getInstance().getElenco(FileProvinceCsvSingleton.getInstance().getElenco()[idxProv].getCode()); // Menu *************** *** 121,124 **** --- 141,145 ---- menu.append(I18N.getInstance().translate("menu.send.sms"), null); menu.append(I18N.getInstance().translate("menu.saved"), null); + menu.append(I18N.getInstance().translate("menu.preferences"), null); menu.append(I18N.getInstance().translate("menu.help"), null); menu.append(I18N.getInstance().translate("menu.info"), null); *************** *** 215,223 **** dataNascita.setDate(new Date()); sex.setSelectedIndex(0, true); ! provincia.setSelectedIndex(0, true); ! Provincia[] elenco = FileProvinceCsvSingleton.getInstance().getElenco(); ! siglaProvincia.setString(elenco[0].getCode()); ! this.loadComuni(elenco[0].getCode()); ! codiceComune.setString(FileComuniCsvSingleton.getInstance().getElenco(siglaProvincia.getString())[0].getCode()); } else if (c == verifyCommandBack) { mainMenu(); --- 236,242 ---- dataNascita.setDate(new Date()); sex.setSelectedIndex(0, true); ! ! this.loadProvince(); ! } else if (c == verifyCommandBack) { mainMenu(); *************** *** 243,252 **** break; case 4: ! displayHelp(); break; case 5: displayInfo(); break; ! case 6: displayAbout(); break; --- 262,274 ---- break; case 4: ! displayPrefs(); break; case 5: + displayHelp(); + break; + case 6: displayInfo(); break; ! case 7: displayAbout(); break; *************** *** 322,330 **** ); - this.loadProvince(); provincia.setItemCommandListener(this); formCalculate.setCommandListener(this); } if (this.cf != null) { System.out.println("CodiceFiscale non nullo."); --- 344,352 ---- ); provincia.setItemCommandListener(this); formCalculate.setCommandListener(this); } + if (this.cf != null) { System.out.println("CodiceFiscale non nullo."); *************** *** 342,349 **** System.out.println("CodiceFiscale nullo."); dataNascita.setDate(new Date()); ! Provincia[] elenco = FileProvinceCsvSingleton.getInstance().getElenco(); ! siglaProvincia.setString(elenco[0].getCode()); ! this.loadComuni(elenco[0].getCode()); ! codiceComune.setString(FileComuniCsvSingleton.getInstance().getElenco(siglaProvincia.getString())[0].getCode()); } --- 364,374 ---- System.out.println("CodiceFiscale nullo."); dataNascita.setDate(new Date()); ! ! this.loadProvince(); ! ! // Provincia[] elenco = FileProvinceCsvSingleton.getInstance().getElenco(); ! // siglaProvincia.setString(elenco[0].getCode()); ! // this.loadComuni(elenco[0].getCode()); ! // codiceComune.setString(FileComuniCsvSingleton.getInstance().getElenco(siglaProvincia.getString())[0].getCode()); } *************** *** 366,374 **** int size = 0; try { ! store = new Store(RECORD_STORE, true); size = store.size(); } catch (Exception e) { } finally { - if (store != null) { try { store.close(); --- 391,398 ---- int size = 0; try { ! store = new Store(RS_LIST, true); size = store.size(); } catch (Exception e) { } finally { try { store.close(); *************** *** 376,381 **** // Ignore } - store = null; - } } if (size < 1) { --- 400,403 ---- *************** *** 387,390 **** --- 409,417 ---- } + private void displayPrefs() { + prefsForm = new PrefsForm(this); + Display.getDisplay(this).setCurrent(prefsForm); + } + public void destroyApp(boolean b) { notifyDestroyed(); *************** *** 399,416 **** } ! private void loadProvince() { ! provincia.deleteAll(); ! Provincia[] elenco = FileProvinceCsvSingleton.getInstance().getElenco(); ! for (int j=0; j<elenco.length; j++) { ! provincia.append(elenco[j].getName(), null); ! } } ! private void loadComuni(String siglaProvincia) { ! comune.deleteAll(); ! Comune[] elenco = FileComuniCsvSingleton.getInstance().getElenco(siglaProvincia); ! for (int j=0; j<elenco.length; j++) { ! comune.append(elenco[j].getName(), null); ! } } --- 426,447 ---- } ! void loadProvince() { ! // provincia.deleteAll(); ! // Provincia[] elenco = FileProvinceCsvSingleton.getInstance().getElenco(); ! // for (int j=0; j<elenco.length; j++) { ! // provincia.append(elenco[j].getName(), null); ! // } ! ProcessProvince process = new ProcessProvince(this); ! process.start(); } ! void loadComuni(String siglaProvincia) { ! // comune.deleteAll(); ! // Comune[] elenco = FileComuniCsvSingleton.getInstance().getElenco(siglaProvincia); ! // for (int j=0; j<elenco.length; j++) { ! // comune.append(elenco[j].getName(), null); ! // } ! ProcessComuni process = new ProcessComuni(this, siglaProvincia); ! process.start(); } *************** *** 506,510 **** comune.getSelectedIndex(); try { ! store = new Store(RECORD_STORE, true); int idx = store.find(';', cf.getCodiceFiscale(), 0); if (idx == 0) { --- 537,541 ---- comune.getSelectedIndex(); try { ! store = new Store(RS_LIST, true); int idx = store.find(';', cf.getCodiceFiscale(), 0); if (idx == 0) { *************** *** 518,522 **** showMessage(I18N.getInstance().translate("alert.record_save_exception")); } finally { - if (store != null) { try { store.close(); --- 549,552 ---- *************** *** 525,531 **** } store = null; - } } } } --- 555,648 ---- } store = null; } } } + class ProcessProvince implements Runnable { + private CodiceFiscaleMIDlet MIDlet; + + public ProcessProvince(CodiceFiscaleMIDlet MIDlet) { + this.MIDlet = MIDlet; + } + + public void run() { + try { + transmit (); + } catch (Exception error) { + System.err.println(error.toString()); + } + } + + public void start() { + Thread thread = new Thread(this); + + try { + thread.start(); + } catch (Exception error) { + } + } + + private void transmit() throws IOException { + Store store = null; + this.MIDlet.provincia.deleteAll(); + Provincia[] elenco = FileProvinceCsvSingleton.getInstance().getElenco(); + for (int j=0; j<elenco.length; j++) { + this.MIDlet.provincia.append(elenco[j].getName(), null); + } + int idxProv = 0; + try { + store = new Store(this.MIDlet.RS_PREFS, true); + String s = store.read(1); + if (s != null) { + idxProv = Integer.parseInt(s, 10); + } + } catch (Exception e) { + // Ignore + } finally { + try { + store.close(); + } catch (Exception e) { + // Ignore + } + } + this.MIDlet.provincia.setSelectedIndex(idxProv, true); + this.MIDlet.siglaProvincia.setString(elenco[idxProv].getCode()); + this.MIDlet.loadComuni(elenco[idxProv].getCode()); + } + } + + class ProcessComuni implements Runnable { + private CodiceFiscaleMIDlet MIDlet; + private String siglaProvincia; + + public ProcessComuni(CodiceFiscaleMIDlet MIDlet, String siglaProvincia) { + this.MIDlet = MIDlet; + this.siglaProvincia = siglaProvincia; + } + + public void run() { + try { + transmit (); + } catch (Exception error) { + System.err.println(error.toString()); + } + } + + public void start() { + Thread thread = new Thread(this); + try { + thread.start(); + } catch (Exception error) { + } + } + + private void transmit() throws IOException { + this.MIDlet.comune.deleteAll(); + Comune[] elenco = FileComuniCsvSingleton.getInstance().getElenco(siglaProvincia); + for (int j=0; j<elenco.length; j++) { + this.MIDlet.comune.append(elenco[j].getName(), null); + } + this.MIDlet.codiceComune.setString(elenco[0].getCode()); + } + } + |
From: Marco R. <mar...@us...> - 2008-01-07 18:06:41
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/utils In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv29088 Modified Files: Store.java Log Message: Updated Index: Store.java =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/src/uk/co/marcoratto/j2me/utils/Store.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Store.java 6 Sep 2007 08:47:40 -0000 1.1 --- Store.java 7 Jan 2008 18:06:43 -0000 1.2 *************** *** 27,31 **** public class Store { ! RecordStore recordStore = null; public Store(String fileName, boolean create) { --- 27,31 ---- public class Store { ! private RecordStore recordStore = null; public Store(String fileName, boolean create) { *************** *** 38,41 **** --- 38,45 ---- public void close() throws RecordStoreNotOpenException, RecordStoreException { + if (recordStore == null) { + return; + } + if (recordStore.getNumRecords() == 0) { String fileName = recordStore.getName(); *************** *** 47,52 **** } public synchronized void insert(String record) { - System.out.println("insert:" + record); ByteArrayOutputStream baos = new ByteArrayOutputStream(); DataOutputStream outputStream = new DataOutputStream(baos); --- 51,59 ---- } + public void insert(int intValue) { + this.insert(new Integer(intValue).toString()); + } + public synchronized void insert(String record) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); DataOutputStream outputStream = new DataOutputStream(baos); *************** *** 137,140 **** --- 144,148 ---- return null; } + if (idx > recordStore.getNumRecords()) { return null; *************** *** 153,157 **** int idx; boolean found = false; - System.out.println(this.size()); try { idx=0; --- 161,164 ---- |
From: Marco R. <mar...@us...> - 2008-01-07 18:06:09
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/bin In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv28615 Modified Files: CodiceFiscale.jad CodiceFiscale.jar MANIFEST.MF Log Message: Updated Index: CodiceFiscale.jad =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/bin/CodiceFiscale.jad,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CodiceFiscale.jad 10 Sep 2007 08:13:45 -0000 1.3 --- CodiceFiscale.jad 7 Jan 2008 18:06:10 -0000 1.4 *************** *** 2,10 **** MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net ! MIDlet-Jar-Size: 135404 MIDlet-Jar-URL: CodiceFiscale.jar MIDlet-Name: Codice Fiscale MIDlet-Vendor: Marco Ratto ! MIDlet-Version: 1.2.1 MicroEdition-Configuration: CLDC-1.1 MicroEdition-Profile: MIDP-2.0 --- 2,10 ---- MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net ! MIDlet-Jar-Size: 139725 MIDlet-Jar-URL: CodiceFiscale.jar MIDlet-Name: Codice Fiscale MIDlet-Vendor: Marco Ratto ! MIDlet-Version: 1.3 MicroEdition-Configuration: CLDC-1.1 MicroEdition-Profile: MIDP-2.0 Index: MANIFEST.MF =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/bin/MANIFEST.MF,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MANIFEST.MF 10 Sep 2007 08:13:45 -0000 1.3 --- MANIFEST.MF 7 Jan 2008 18:06:10 -0000 1.4 *************** *** 5,9 **** MIDlet-Name: Codice Fiscale MIDlet-Vendor: Marco Ratto ! MIDlet-Version: 1.2.1 MicroEdition-Configuration: CLDC-1.1 MicroEdition-Profile: MIDP-2.0 --- 5,9 ---- MIDlet-Name: Codice Fiscale MIDlet-Vendor: Marco Ratto ! MIDlet-Version: 1.3 MicroEdition-Configuration: CLDC-1.1 MicroEdition-Profile: MIDP-2.0 Index: CodiceFiscale.jar =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/bin/CodiceFiscale.jar,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvsNIFzSr and /tmp/cvsySGuBV differ |
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/build In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv28170 Added Files: CodiceFiscale_v1.3.bin.tar.gz CodiceFiscale_v1.3.bin.tar.gz.asc CodiceFiscale_v1.3.bin.tar.gz.md5 CodiceFiscale_v1.3.bin.tar.gz.sha CodiceFiscale_v1.3.bin.zip CodiceFiscale_v1.3.bin.zip.asc CodiceFiscale_v1.3.bin.zip.md5 CodiceFiscale_v1.3.bin.zip.sha CodiceFiscale_v1.3.src.tar.gz CodiceFiscale_v1.3.src.tar.gz.asc CodiceFiscale_v1.3.src.tar.gz.md5 CodiceFiscale_v1.3.src.tar.gz.sha CodiceFiscale_v1.3.src.zip CodiceFiscale_v1.3.src.zip.asc CodiceFiscale_v1.3.src.zip.md5 CodiceFiscale_v1.3.src.zip.sha Log Message: Updated --- NEW FILE: CodiceFiscale_v1.3.src.tar.gz --- (This appears to be a binary file; contents omitted.) --- NEW FILE: CodiceFiscale_v1.3.bin.tar.gz.sha --- d52a98642a37c0b770b832c9b041d918d044bc13 *CodiceFiscale_v1.3.bin.tar.gz --- NEW FILE: CodiceFiscale_v1.3.bin.zip --- (This appears to be a binary file; contents omitted.) --- NEW FILE: CodiceFiscale_v1.3.src.tar.gz.md5 --- f632bf5d7eac1f306b224db3ec24e697 *CodiceFiscale_v1.3.src.tar.gz --- NEW FILE: CodiceFiscale_v1.3.src.zip.asc --- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHgl5pzdinKp+N2S8RAnzoAJ4jK517CzTM4B6UfrendYo9T1hRZQCeOgkO 4ExNLCv2a/B2Vol9daNeqkU= =8ngo -----END PGP SIGNATURE----- --- NEW FILE: CodiceFiscale_v1.3.bin.zip.asc --- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHgl5VzdinKp+N2S8RAqE8AJ4y4UPXUNgZlGcry1c3kgCMtE4MqgCgirta 7n7RzvwypmAxeXRhyMjN8wk= =W72n -----END PGP SIGNATURE----- --- NEW FILE: CodiceFiscale_v1.3.bin.tar.gz --- (This appears to be a binary file; contents omitted.) --- NEW FILE: CodiceFiscale_v1.3.src.tar.gz.sha --- c3522aa3b21157d0d7b52d9e7f0ae36318c5f74f *CodiceFiscale_v1.3.src.tar.gz --- NEW FILE: CodiceFiscale_v1.3.bin.tar.gz.md5 --- 3899c0ff6d02c265c3e5ce5d9560f62f *CodiceFiscale_v1.3.bin.tar.gz --- NEW FILE: CodiceFiscale_v1.3.bin.zip.sha --- 155fc7e9b01eb1d74e99f439d04410a02648de96 *CodiceFiscale_v1.3.bin.zip --- NEW FILE: CodiceFiscale_v1.3.src.tar.gz.asc --- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHgl5uzdinKp+N2S8RAqS4AJ9n+CVuPKrtwFA2HEZjc1gc4f8DcACZAQ4c +O/yrjzXEO8pcf+LciF+PEc= =9Y1d -----END PGP SIGNATURE----- --- NEW FILE: CodiceFiscale_v1.3.src.zip.sha --- 942c9d0caff2ac7146d443ad21a5b0589849287f *CodiceFiscale_v1.3.src.zip --- NEW FILE: CodiceFiscale_v1.3.src.zip.md5 --- 511d89cf9faecd13c093c2043f04e844 *CodiceFiscale_v1.3.src.zip --- NEW FILE: CodiceFiscale_v1.3.src.zip --- (This appears to be a binary file; contents omitted.) --- NEW FILE: CodiceFiscale_v1.3.bin.tar.gz.asc --- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHgl5kzdinKp+N2S8RAmpPAJwORVA83rztsw3cqOOfeiu8vYqgBwCgh45w u3IA6uQPhBSAtmbNyYJZ0M4= =cpGX -----END PGP SIGNATURE----- --- NEW FILE: CodiceFiscale_v1.3.bin.zip.md5 --- dcdc68930751cb0d24d5c3219af2a0d5 *CodiceFiscale_v1.3.bin.zip |
From: Marco R. <mar...@us...> - 2008-01-07 18:03:28
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/screenshots/CodiceFiscale_v1.3 In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv27655 Added Files: emulator_menu.png Log Message: Updated --- NEW FILE: emulator_menu.png --- (This appears to be a binary file; contents omitted.) |
From: Marco R. <mar...@us...> - 2008-01-07 18:02:46
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/screenshots/CodiceFiscale_v1.3 In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv27263/CodiceFiscale_v1.3 Log Message: Directory /cvsroot/it-codfisc-j2me/CodiceFiscale/screenshots/CodiceFiscale_v1.3 added to the repository |
From: Marco R. <mar...@us...> - 2008-01-07 18:01:32
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv26786 Modified Files: VERSION ChangeLog Log Message: Updated Index: VERSION =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/VERSION,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** VERSION 10 Sep 2007 08:08:14 -0000 1.3 --- VERSION 7 Jan 2008 18:01:25 -0000 1.4 *************** *** 1 **** ! CodiceFiscale_v1.2.1 --- 1 ---- ! CodiceFiscale_v1.3 Index: ChangeLog =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/ChangeLog,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ChangeLog 10 Sep 2007 08:08:13 -0000 1.3 --- ChangeLog 7 Jan 2008 18:01:25 -0000 1.4 *************** *** 2,5 **** --- 2,11 ---- ===================================== + v1.3 07-Jan-2008 + * Aggiunto la funzione "Preferenze" per salvare la provincia di default + * Cambiato il caricamento delle 2 combo "Province" e "Comuni" utilizzando i Thread per caricarli in background + * Corretti alcuni commenti nel codice + * Tolti un po' di System.out + v1.2.1 07-Sep-2007 ----------------- |
From: Marco R. <mar...@us...> - 2008-01-07 18:00:49
|
Update of /cvsroot/it-codfisc-j2me/CodiceFiscale/web In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv26380 Modified Files: CodiceFiscale.jad CodiceFiscale.jar index.php Log Message: Updated Index: CodiceFiscale.jad =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/web/CodiceFiscale.jad,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CodiceFiscale.jad 10 Sep 2007 08:09:34 -0000 1.2 --- CodiceFiscale.jad 7 Jan 2008 18:00:47 -0000 1.3 *************** *** 2,10 **** MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net ! MIDlet-Jar-Size: 135404 MIDlet-Jar-URL: CodiceFiscale.jar MIDlet-Name: Codice Fiscale MIDlet-Vendor: Marco Ratto ! MIDlet-Version: 1.2.1 MicroEdition-Configuration: CLDC-1.1 MicroEdition-Profile: MIDP-2.0 --- 2,10 ---- MIDlet-Description: Codice Fiscale MIDlet-Info-URL: http://it-codfisc-j2me.sourceforge.net ! MIDlet-Jar-Size: 139725 MIDlet-Jar-URL: CodiceFiscale.jar MIDlet-Name: Codice Fiscale MIDlet-Vendor: Marco Ratto ! MIDlet-Version: 1.3 MicroEdition-Configuration: CLDC-1.1 MicroEdition-Profile: MIDP-2.0 Index: CodiceFiscale.jar =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/web/CodiceFiscale.jar,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsi2BbZu and /tmp/cvs2997ap differ Index: index.php =================================================================== RCS file: /cvsroot/it-codfisc-j2me/CodiceFiscale/web/index.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.php 10 Sep 2007 08:09:34 -0000 1.5 --- index.php 7 Jan 2008 18:00:48 -0000 1.6 *************** *** 44,47 **** --- 44,48 ---- </div> <h2>Introduzione</h2> + <img src="http://sourceforge.net/dbimage.php?id=154630" align="left" border=0> Questa applicazione J2ME permette di calcolare il Codice Fiscale Italiano su un cellulare ed eventualmente di inviarlo via SMS. Inoltre, è possibile anche verificare la correttezza di un codice fiscale. *************** *** 52,60 **** <h2>Novità</h2> <ul> <li>7 Settembre 2007.<br> Rilasciata la versione 1.2.1. Puoi scaricare i <a href="http://sourceforge.net/project/showfiles.php?group_id=184565&package_id=214678&release_id=538470">sorgenti</a>, i <a href="http://sourceforge.net/project/showfiles.php?group_id=184565&package_id=221901&release_id=538467">compilati</a>, oppure puoi installarla scaricando subito il <a href="./CodiceFiscale.jad">file JAD</a> e il <a href="./CodiceFiscale.jar">file JAR</a>.<br> Questa versione è stata sviluppata su <e href="http://fedoraproject.org/" target="_new">Fedora Core 5</a>, <a href=" ! http://java.sun.com/products/sjwtoolkit/" target="_new">Sun WTK 2.5.1</a> e testato sui cellulari Nokia 6230i, Nokia N70, N ! okia N73.<br> </li> </ul> --- 53,66 ---- <h2>Novità</h2> <ul> + <li>7 Gennaio 2008.<br> + Rilasciata la versione 1.3. Puoi scaricare i <a href="http://sourceforge.net/project/showfiles.php?group_id=184565&package_id=214678&release_id=566669">sorgenti</a>, i <a href="http://sourceforge.net/project/showfiles.php?group_id=184565&package_id=221901&release_id=566667">compilati</a>, oppure puoi installarla scaricando subito il <a href="./CodiceFiscale.jad">file JAD</a> e il <a href="./CodiceFiscale.jar">file JAR</a>.<br> + Questa versione è stata sviluppata su <e href="http://fedoraproject.org/" target="_new">Fedora Core 5</a>, <a href="http://java.sun.com/products/sjwtoolkit/" target="_new">Sun WTK 2.5.1</a> e testato sui cellulari Nokia 6230i, Nokia N70, Nokia N73.<br> + </li> + </ul> + <ul> <li>7 Settembre 2007.<br> Rilasciata la versione 1.2.1. Puoi scaricare i <a href="http://sourceforge.net/project/showfiles.php?group_id=184565&package_id=214678&release_id=538470">sorgenti</a>, i <a href="http://sourceforge.net/project/showfiles.php?group_id=184565&package_id=221901&release_id=538467">compilati</a>, oppure puoi installarla scaricando subito il <a href="./CodiceFiscale.jad">file JAD</a> e il <a href="./CodiceFiscale.jar">file JAR</a>.<br> Questa versione è stata sviluppata su <e href="http://fedoraproject.org/" target="_new">Fedora Core 5</a>, <a href=" ! http://java.sun.com/products/sjwtoolkit/" target="_new">Sun WTK 2.5.1</a> e testato sui cellulari Nokia 6230i, Nokia N70, Nokia N73.<br> </li> </ul> |