Mercurial > 510Connectbot
diff 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 |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/bean/HostBean.java Wed Jun 11 15:44:59 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/bean/HostBean.java Fri Jun 13 15:27:08 2014 -0700 @@ -29,31 +29,33 @@ public static final String BEAN_NAME = "host"; /* Database fields */ - private long id = -1; - private String nickname = null; - private String username = null; - private String hostname = null; - private int port = 22; - private String protocol = "ssh"; - private String hostKeyAlgo = null; - private byte[] hostKey = null; - private long lastConnect = -1; - private String color; + private long id = -1; + private String nickname = null; + private String username = null; + private String hostname = null; + private int port = 22; + private String protocol = "ssh"; + private String hostKeyAlgo = null; + private byte[] hostKey = null; + private long lastConnect = -1; + private String color; private boolean useKeys = true; - private String useAuthAgent = HostDatabase.AUTHAGENT_NO; - private String postLogin = null; - private long pubkeyId = -1; + 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 int fontSize = -1; + private String delKey = HostDatabase.DELKEY_DEL; + private int fontSize = -1; private boolean compression = false; - private String httpproxy = null; - private String encoding = HostDatabase.ENCODING_DEFAULT; + private String httpproxy = null; + private String encoding = HostDatabase.ENCODING_DEFAULT; private boolean stayConnected = false; private boolean wantX11Forward = false; - private String x11Host = "localhost"; - private int x11Port = 6000; - private String monitor = null; + private String x11Host = "localhost"; + private int x11Port = 6000; + private String monitor = null; + private String hostemulation = null; + private String encryption5250 = null; public HostBean() { } @@ -252,6 +254,22 @@ this.monitor = monitor; } + public String getHostEmulation() { + return this.hostemulation; + } + + public void setHostEmulation(String hostemulation) { + this.hostemulation = hostemulation; + } + + public String getEncryption5250() { + return this.encryption5250; + } + + public void setEncryption5250(String encryption5250) { + this.encryption5250 = encryption5250; + } + @Override public ContentValues getValues() { ContentValues values = new ContentValues(); @@ -279,6 +297,8 @@ values.put(HostDatabase.FIELD_HOST_X11HOST, x11Host); values.put(HostDatabase.FIELD_HOST_X11PORT, x11Port); values.put(HostDatabase.FIELD_HOST_MONITOR, monitor); + values.put(HostDatabase.FIELD_HOST_EMULATION, emulation); + values.put(HostDatabase.FIELD_HOST_ENCRYPTION5250, encryption5250); return values; }