Mercurial > 510Connectbot
diff 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 |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/AbsTransport.java Tue Jun 03 12:38:59 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/transport/AbsTransport.java Tue Jun 03 16:02:29 2014 -0700 @@ -24,9 +24,11 @@ import com.five_ten_sg.connectbot.bean.HostBean; import com.five_ten_sg.connectbot.bean.PortForwardBean; import com.five_ten_sg.connectbot.service.TerminalBridge; +import com.five_ten_sg.connectbot.service.TerminalKeyListener; import com.five_ten_sg.connectbot.service.TerminalManager; import android.content.Context; import android.net.Uri; +import de.mud.terminal.vt320; /** * @author Kenny Root @@ -285,7 +287,23 @@ public abstract String getFormatHint(Context context); /** - * @return + * @return do we use the network */ public abstract boolean usesNetwork(); + + /** + * @return do we need a relay object to read from the transport + * and send the data into the vt320 buffer + */ + public boolean needsRelay() { + return true; + } + + /** + * @return a key listener + */ + public TerminalKeyListener(TerminalManager manager, TerminalBridge bridge, vt320 buffer, String encoding) { + return new TerminalKeyListener(manager, bridge, buffer, encoding); + } + }