comparison src/com/five_ten_sg/connectbot/bean/HostBean.java @ 61:ce8f13242339 tn5250

add 5250 config entries
author Carl Byington <carl@five-ten-sg.com>
date Fri, 13 Jun 2014 15:27:08 -0700
parents 0ce5cc452d02
children 07c7055cc124
comparison
equal deleted inserted replaced
60:d9b27288a9d2 61:ce8f13242339
27 */ 27 */
28 public class HostBean extends AbstractBean { 28 public class HostBean extends AbstractBean {
29 public static final String BEAN_NAME = "host"; 29 public static final String BEAN_NAME = "host";
30 30
31 /* Database fields */ 31 /* Database fields */
32 private long id = -1; 32 private long id = -1;
33 private String nickname = null; 33 private String nickname = null;
34 private String username = null; 34 private String username = null;
35 private String hostname = null; 35 private String hostname = null;
36 private int port = 22; 36 private int port = 22;
37 private String protocol = "ssh"; 37 private String protocol = "ssh";
38 private String hostKeyAlgo = null; 38 private String hostKeyAlgo = null;
39 private byte[] hostKey = null; 39 private byte[] hostKey = null;
40 private long lastConnect = -1; 40 private long lastConnect = -1;
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; 46 private boolean wantSession = true;
47 private String delKey = HostDatabase.DELKEY_DEL; 47 private String delKey = HostDatabase.DELKEY_DEL;
48 private int fontSize = -1; 48 private int fontSize = -1;
49 private boolean compression = false; 49 private boolean compression = false;
50 private String httpproxy = null; 50 private String httpproxy = null;
51 private String encoding = HostDatabase.ENCODING_DEFAULT; 51 private String encoding = HostDatabase.ENCODING_DEFAULT;
52 private boolean stayConnected = false; 52 private boolean stayConnected = false;
53 private boolean wantX11Forward = false; 53 private boolean wantX11Forward = false;
54 private String x11Host = "localhost"; 54 private String x11Host = "localhost";
55 private int x11Port = 6000; 55 private int x11Port = 6000;
56 private String monitor = null; 56 private String monitor = null;
57 private String hostemulation = null;
58 private String encryption5250 = null;
57 59
58 public HostBean() { 60 public HostBean() {
59 } 61 }
60 62
61 @Override 63 @Override
248 return this.monitor; 250 return this.monitor;
249 } 251 }
250 252
251 public void setMonitor(String monitor) { 253 public void setMonitor(String monitor) {
252 this.monitor = monitor; 254 this.monitor = monitor;
255 }
256
257 public String getHostEmulation() {
258 return this.hostemulation;
259 }
260
261 public void setHostEmulation(String hostemulation) {
262 this.hostemulation = hostemulation;
263 }
264
265 public String getEncryption5250() {
266 return this.encryption5250;
267 }
268
269 public void setEncryption5250(String encryption5250) {
270 this.encryption5250 = encryption5250;
253 } 271 }
254 272
255 @Override 273 @Override
256 public ContentValues getValues() { 274 public ContentValues getValues() {
257 ContentValues values = new ContentValues(); 275 ContentValues values = new ContentValues();
277 values.put(HostDatabase.FIELD_HOST_STAYCONNECTED, stayConnected); 295 values.put(HostDatabase.FIELD_HOST_STAYCONNECTED, stayConnected);
278 values.put(HostDatabase.FIELD_HOST_WANTX11FORWARD, wantX11Forward); 296 values.put(HostDatabase.FIELD_HOST_WANTX11FORWARD, wantX11Forward);
279 values.put(HostDatabase.FIELD_HOST_X11HOST, x11Host); 297 values.put(HostDatabase.FIELD_HOST_X11HOST, x11Host);
280 values.put(HostDatabase.FIELD_HOST_X11PORT, x11Port); 298 values.put(HostDatabase.FIELD_HOST_X11PORT, x11Port);
281 values.put(HostDatabase.FIELD_HOST_MONITOR, monitor); 299 values.put(HostDatabase.FIELD_HOST_MONITOR, monitor);
300 values.put(HostDatabase.FIELD_HOST_EMULATION, emulation);
301 values.put(HostDatabase.FIELD_HOST_ENCRYPTION5250, encryption5250);
282 return values; 302 return values;
283 } 303 }
284 304
285 @Override 305 @Override
286 public boolean equals(Object o) { 306 public boolean equals(Object o) {