diff src/com/five_ten_sg/connectbot/bean/HostBean.java @ 238:bd803721f94a

remove unused update preference; add host preference for fixed screen size
author Carl Byington <carl@five-ten-sg.com>
date Mon, 14 Jul 2014 09:42:20 -0700
parents cf677a6f586d
children 8b68dfb283d2
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/bean/HostBean.java	Mon Jul 14 08:46:06 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/bean/HostBean.java	Mon Jul 14 09:42:20 2014 -0700
@@ -43,9 +43,12 @@
     private String  useAuthAgent = HostDatabase.AUTHAGENT_NO;
     private String  postLogin = null;
     private long    pubkeyId = -1;
-    private boolean wantSession = true;
     private String  delKey = HostDatabase.DELKEY_DEL;
     private float   fontSize = -1;
+    private boolean fizedSize = false;
+    private integer fixedWidth = 80;
+    private integer fixedHeight = 25;
+    private boolean wantSession = true;
     private boolean compression = false;
     private String  httpproxy = null;
     private String  encoding = HostDatabase.ENCODING_DEFAULT;
@@ -203,6 +206,24 @@
     public float getFontSize() {
         return fontSize;
     }
+    public void setFixedSize(boolean fixedSize) {
+        this.fixedSize = fixedSize;
+    }
+    public boolean getFixedSize() {
+        return fixedSize;
+    }
+    public void setFixedWidth(float fixedWidth) {
+        this.fixedWidth = fixedWidth;
+    }
+    public float getFixedWidth() {
+        return fixedWidth;
+    }
+    public void setFixedHeight(float fixedHeight) {
+        this.fixedHeight = fixedHeight;
+    }
+    public float getFixedHeight() {
+        return fixedHeight;
+    }
     public void setCompression(boolean compression) {
         this.compression = compression;
     }
@@ -332,6 +353,9 @@
         values.put(HostDatabase.FIELD_HOST_WANTSESSION, Boolean.toString(wantSession));
         values.put(HostDatabase.FIELD_HOST_DELKEY, delKey);
         values.put(HostDatabase.FIELD_HOST_FONTSIZE, fontSize);
+        values.put(HostDatabase.FIELD_HOST_FIXEDSIZE, Boolean.toString(fixedSize));
+        values.put(HostDatabase.FIELD_HOST_FIXEDWIDTH, fixedWidth);
+        values.put(HostDatabase.FIELD_HOST_FIXEDHEIGHT, fixedHeight);
         values.put(HostDatabase.FIELD_HOST_COMPRESSION, Boolean.toString(compression));
         values.put(HostDatabase.FIELD_HOST_HTTPPROXY, httpproxy);
         values.put(HostDatabase.FIELD_HOST_ENCODING, encoding);