comparison 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
comparison
equal deleted inserted replaced
237:f9b1a07c0e96 238:bd803721f94a
41 private String color; 41 private String color;
42 private boolean useKeys = true; 42 private boolean useKeys = true;
43 private String useAuthAgent = HostDatabase.AUTHAGENT_NO; 43 private String useAuthAgent = HostDatabase.AUTHAGENT_NO;
44 private String postLogin = null; 44 private String postLogin = null;
45 private long pubkeyId = -1; 45 private long pubkeyId = -1;
46 private boolean wantSession = true;
47 private String delKey = HostDatabase.DELKEY_DEL; 46 private String delKey = HostDatabase.DELKEY_DEL;
48 private float fontSize = -1; 47 private float fontSize = -1;
48 private boolean fizedSize = false;
49 private integer fixedWidth = 80;
50 private integer fixedHeight = 25;
51 private boolean wantSession = true;
49 private boolean compression = false; 52 private boolean compression = false;
50 private String httpproxy = null; 53 private String httpproxy = null;
51 private String encoding = HostDatabase.ENCODING_DEFAULT; 54 private String encoding = HostDatabase.ENCODING_DEFAULT;
52 private boolean stayConnected = false; 55 private boolean stayConnected = false;
53 private boolean wantX11Forward = false; 56 private boolean wantX11Forward = false;
200 public void setFontSize(float fontSize) { 203 public void setFontSize(float fontSize) {
201 this.fontSize = fontSize; 204 this.fontSize = fontSize;
202 } 205 }
203 public float getFontSize() { 206 public float getFontSize() {
204 return fontSize; 207 return fontSize;
208 }
209 public void setFixedSize(boolean fixedSize) {
210 this.fixedSize = fixedSize;
211 }
212 public boolean getFixedSize() {
213 return fixedSize;
214 }
215 public void setFixedWidth(float fixedWidth) {
216 this.fixedWidth = fixedWidth;
217 }
218 public float getFixedWidth() {
219 return fixedWidth;
220 }
221 public void setFixedHeight(float fixedHeight) {
222 this.fixedHeight = fixedHeight;
223 }
224 public float getFixedHeight() {
225 return fixedHeight;
205 } 226 }
206 public void setCompression(boolean compression) { 227 public void setCompression(boolean compression) {
207 this.compression = compression; 228 this.compression = compression;
208 } 229 }
209 public boolean getCompression() { 230 public boolean getCompression() {
330 values.put(HostDatabase.FIELD_HOST_POSTLOGIN, postLogin); 351 values.put(HostDatabase.FIELD_HOST_POSTLOGIN, postLogin);
331 values.put(HostDatabase.FIELD_HOST_PUBKEYID, pubkeyId); 352 values.put(HostDatabase.FIELD_HOST_PUBKEYID, pubkeyId);
332 values.put(HostDatabase.FIELD_HOST_WANTSESSION, Boolean.toString(wantSession)); 353 values.put(HostDatabase.FIELD_HOST_WANTSESSION, Boolean.toString(wantSession));
333 values.put(HostDatabase.FIELD_HOST_DELKEY, delKey); 354 values.put(HostDatabase.FIELD_HOST_DELKEY, delKey);
334 values.put(HostDatabase.FIELD_HOST_FONTSIZE, fontSize); 355 values.put(HostDatabase.FIELD_HOST_FONTSIZE, fontSize);
356 values.put(HostDatabase.FIELD_HOST_FIXEDSIZE, Boolean.toString(fixedSize));
357 values.put(HostDatabase.FIELD_HOST_FIXEDWIDTH, fixedWidth);
358 values.put(HostDatabase.FIELD_HOST_FIXEDHEIGHT, fixedHeight);
335 values.put(HostDatabase.FIELD_HOST_COMPRESSION, Boolean.toString(compression)); 359 values.put(HostDatabase.FIELD_HOST_COMPRESSION, Boolean.toString(compression));
336 values.put(HostDatabase.FIELD_HOST_HTTPPROXY, httpproxy); 360 values.put(HostDatabase.FIELD_HOST_HTTPPROXY, httpproxy);
337 values.put(HostDatabase.FIELD_HOST_ENCODING, encoding); 361 values.put(HostDatabase.FIELD_HOST_ENCODING, encoding);
338 values.put(HostDatabase.FIELD_HOST_STAYCONNECTED, stayConnected); 362 values.put(HostDatabase.FIELD_HOST_STAYCONNECTED, stayConnected);
339 values.put(HostDatabase.FIELD_HOST_WANTX11FORWARD, wantX11Forward); 363 values.put(HostDatabase.FIELD_HOST_WANTX11FORWARD, wantX11Forward);