comparison src/com/five_ten_sg/connectbot/transport/AbsTransport.java @ 29:017eeed8332c tn5250

start tn5250 integration
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Jun 2014 16:02:29 -0700
parents f3b3bbd227b8
children d738f6b876fe
comparison
equal deleted inserted replaced
28:ad194aedeaab 29:017eeed8332c
22 import java.util.Map; 22 import java.util.Map;
23 23
24 import com.five_ten_sg.connectbot.bean.HostBean; 24 import com.five_ten_sg.connectbot.bean.HostBean;
25 import com.five_ten_sg.connectbot.bean.PortForwardBean; 25 import com.five_ten_sg.connectbot.bean.PortForwardBean;
26 import com.five_ten_sg.connectbot.service.TerminalBridge; 26 import com.five_ten_sg.connectbot.service.TerminalBridge;
27 import com.five_ten_sg.connectbot.service.TerminalKeyListener;
27 import com.five_ten_sg.connectbot.service.TerminalManager; 28 import com.five_ten_sg.connectbot.service.TerminalManager;
28 import android.content.Context; 29 import android.content.Context;
29 import android.net.Uri; 30 import android.net.Uri;
31 import de.mud.terminal.vt320;
30 32
31 /** 33 /**
32 * @author Kenny Root 34 * @author Kenny Root
33 * 35 *
34 */ 36 */
283 * @return string that hints at the format for connection 285 * @return string that hints at the format for connection
284 */ 286 */
285 public abstract String getFormatHint(Context context); 287 public abstract String getFormatHint(Context context);
286 288
287 /** 289 /**
288 * @return 290 * @return do we use the network
289 */ 291 */
290 public abstract boolean usesNetwork(); 292 public abstract boolean usesNetwork();
293
294 /**
295 * @return do we need a relay object to read from the transport
296 * and send the data into the vt320 buffer
297 */
298 public boolean needsRelay() {
299 return true;
300 }
301
302 /**
303 * @return a key listener
304 */
305 public TerminalKeyListener(TerminalManager manager, TerminalBridge bridge, vt320 buffer, String encoding) {
306 return new TerminalKeyListener(manager, bridge, buffer, encoding);
307 }
308
291 } 309 }