comparison src/com/five_ten_sg/connectbot/transport/AbsTransport.java @ 11:f3b3bbd227b8 tn5250

adding tn5250 files
author Carl Byington <carl@five-ten-sg.com>
date Thu, 22 May 2014 18:26:27 -0700
parents 0ce5cc452d02
children 017eeed8332c
comparison
equal deleted inserted replaced
10:e773d0952613 11:f3b3bbd227b8
52 */ 52 */
53 public static String getProtocolName() { 53 public static String getProtocolName() {
54 return "unknown"; 54 return "unknown";
55 } 55 }
56 56
57
57 /** 58 /**
58 * Encode the current transport into a URI that can be passed via intent calls. 59 * Encode the current transport into a URI that can be passed via intent calls.
59 * @return URI to host 60 * @return URI to host
60 */ 61 */
61 public static Uri getUri(String input) { 62 public abstract Uri getUri(String input);
62 return null; 63
63 }
64 64
65 /** 65 /**
66 * Causes transport to connect to the target host. After connecting but before a 66 * Causes transport to connect to the target host. After connecting but before a
67 * session is started, must call back to {@link TerminalBridge#onConnected()}. 67 * session is started, must call back to {@link TerminalBridge#onConnected()}.
68 * After that call a session may be opened. 68 * After that call a session may be opened.
280 280
281 /** 281 /**
282 * @param context context containing the correct resources 282 * @param context context containing the correct resources
283 * @return string that hints at the format for connection 283 * @return string that hints at the format for connection
284 */ 284 */
285 public static String getFormatHint(Context context) { 285 public abstract String getFormatHint(Context context);
286 return "???";
287 }
288 286
289 /** 287 /**
290 * @return 288 * @return
291 */ 289 */
292 public abstract boolean usesNetwork(); 290 public abstract boolean usesNetwork();