comparison src/com/five_ten_sg/connectbot/bean/HostBean.java @ 83:4ccfde0bc506

disable host config items that are not applicable to the host protocol
author Carl Byington <carl@five-ten-sg.com>
date Mon, 16 Jun 2014 10:43:30 -0700
parents 07c7055cc124
children 1c22e6a7efff
comparison
equal deleted inserted replaced
82:d8da9f32074c 83:4ccfde0bc506
69 this.nickname = nickname; 69 this.nickname = nickname;
70 this.protocol = protocol; 70 this.protocol = protocol;
71 this.username = username; 71 this.username = username;
72 this.hostname = hostname; 72 this.hostname = hostname;
73 this.port = port; 73 this.port = port;
74 }
75
76 public boolean isSSH() {
77 return (protocol == "ssh");
78 }
79
80 public boolean is5250() {
81 return (protocol == "tn5250");
82 }
83
84 public boolean isTelnet() {
85 return (protocol == "telnet");
86 }
87
88 public boolean isAsync() {
89 return isSSH() || isTelnet();
74 } 90 }
75 91
76 public void setId(long id) { 92 public void setId(long id) {
77 this.id = id; 93 this.id = id;
78 } 94 }