[mdc-cvs 70] CVS update: BetaProject/src/org/jent/checksmtp

アーカイブの一覧に戻る

Takuya Ono takuy****@users*****
2007年 8月 20日 (月) 23:55:12 JST


Index: BetaProject/src/org/jent/checksmtp/ApplicationProperties.java
diff -u BetaProject/src/org/jent/checksmtp/ApplicationProperties.java:1.3 BetaProject/src/org/jent/checksmtp/ApplicationProperties.java:1.4
--- BetaProject/src/org/jent/checksmtp/ApplicationProperties.java:1.3	Sun Jul 22 16:56:15 2007
+++ BetaProject/src/org/jent/checksmtp/ApplicationProperties.java	Mon Aug 20 23:55:12 2007
@@ -18,11 +18,14 @@
  * <DT> -.enableRemoteConnect <DD>Permit connect from remote host. (Default:false)
  * <DT> -.serverHost <DD>STMP Server host name.     (Default:mail)
  * <DT> -.serverPort <DD>STMP Server port.          (Default:25)
+ * <DT> -.confirm.timeout <DD> Confirm auto push OK timeput (Default:0 = forever)
  * <DT> -.ladp       <DD>If "true" use LDAP search. (Default:false)
  * <DT> -.ldap.providerUrl <DD>LDAP Provider URL    (Default:ldap://localhost:389
  * <DT> -.ldap.baseDn <DD>LDAP Search root           (Default:C=JP)
  * <DT> -.ldap.isSjis<DD>Addhoc patch: When LDAP Server use SJIS, this propertiy set "true" (Default:false)
  * <DT> -.ldap.attribues<DD>LDAP Search attribues separate by space (Defaut:cn)
+ * <DT> -.configDialog.pos.? <DD> Config Dialog position x,y,w,h
+ * <DT> -.confirmDialog.pos.? <DD> Confirm Dialog postion x,y,w,h
  * </DL>
  */
 public class ApplicationProperties {
@@ -31,6 +34,7 @@
   private static final String SMTP_ENEBLE_REMOTE_CONNECT = PREFIX + ".enableRemoteConnect";
   private static final String SMTP_SERVER_HOST = PREFIX + ".serverHost";
   private static final String SMTP_SERVER_PORT = PREFIX + ".serverPort";
+  private static final String CONFIRM_TIMEOUT = PREFIX + ".confirmTimeout";
   private static final String LDAP_PREFIX = PREFIX + ".ldap";
   private static final String LDAP_PROVIDER_URL = LDAP_PREFIX + ".providerUrl";
   private static final String LDAP_ROOT = LDAP_PREFIX + ".baseDn";
@@ -217,7 +221,7 @@
   }
   
   public static int getConfirmDialogPosX() {
-    return Integer.parseInt(applicationProperties.getProperty(CONFIG_DIALOG_POS_X, "0"));
+    return Integer.parseInt(applicationProperties.getProperty(CONFIRM_DIALOG_POS_X, "0"));
   }
   
   public static void setConfirmDialogPosX(int x) {
@@ -247,5 +251,13 @@
   public static void setConfirmDialogPosH(int h) {
     applicationProperties.setProperty(CONFIRM_DIALOG_POS_H, new Integer(h).toString());
   }
-    
+  
+  //CONFIRM_TIMEOUT
+    public static int getConfirmTimeout() {
+    return Integer.parseInt(applicationProperties.getProperty(CONFIRM_TIMEOUT, "0"));
+  }
+  
+  public static void setConfirmTimeout(int sec) {
+    applicationProperties.setProperty(CONFIRM_TIMEOUT, new Integer(sec).toString());
+  }
 }


mdc-cvs メーリングリストの案内
アーカイブの一覧に戻る