Classes | |
| class | GMCPWatcher |
Public Member Functions | |
| Processor (final Handler useme, final String pEncoding, final Context pContext) | |
| final boolean | isDebugTelnet () |
| final void | setDebugTelnet (final boolean debugTelnet) |
| final byte[] | rawProcess (final byte[] data) |
| final void | dispatchIAC (final byte action, final byte option) |
| final boolean | dispatchSUB (final byte[] negotiation) |
| final void | setEncoding (final String encoding) |
| final String | getEncoding () |
| final void | setDisplayDimensions (final int rows, final int cols) |
| final void | disaptchNawsString () |
| final void | reset () |
| final Object | getGMCPValue (final String str) |
| final HashMap< String, Object > | getGMCPTable (final String path) |
| final void | initGMCP () |
| final byte[] | getGMCPResponse (final String str) throws UnsupportedEncodingException |
| final void | dumpGMCP () |
| final void | addWatcher (final String module, final String plugin, final String callback) |
| final void | setUseGMCP (final Boolean value) |
| final void | setGMCPSupports (final String value) |
Class implementation for the telnet state machine.
| com.offsetnull.bt.service.Processor.Processor | ( | final Handler | useme, |
| final String | pEncoding, | ||
| final Context | pContext | ||
| ) |
Constructor.
| useme | reporting handler target. |
| pEncoding | selected encoding to use. |
| pContext | application content. |

| final void com.offsetnull.bt.service.Processor.addWatcher | ( | final String | module, |
| final String | plugin, | ||
| final String | callback | ||
| ) |
Adds a new gmcp watcher for a given module path.
| module | Module path, e.g. char.vitals.hp. |
| plugin | The target plugin that is watching. |
| callback | The callback function to execute when module has changed. |
| final void com.offsetnull.bt.service.Processor.disaptchNawsString | ( | ) |
Helper method for naws. This may happen because the foreground window changed shape.


| final void com.offsetnull.bt.service.Processor.dispatchIAC | ( | final byte | action, |
| final byte | option | ||
| ) |
Telnet negotiation sequence.
| action | The action byte (WILL, WONT, DO, DONT) |
| option | The numeric indicator of the telnet negotiation type (TTYPE, GMCP, ECHO ...) |


| final boolean com.offsetnull.bt.service.Processor.dispatchSUB | ( | final byte[] | negotiation | ) |
Telnet subnegotiation handler.
| negotiation | the subnegotiation sequence. |


| final void com.offsetnull.bt.service.Processor.dumpGMCP | ( | ) |
Utility method to dump the current gmcp data to the log.

| final String com.offsetnull.bt.service.Processor.getEncoding | ( | ) |
Getter for mEncoding.
| final byte [] com.offsetnull.bt.service.Processor.getGMCPResponse | ( | final String | str | ) | throws UnsupportedEncodingException |
Helper method to respond to the GMCP negotiation sequence.
| str | The subnegotiation string. |
| UnsupportedEncodingException | Thrown if the selected encoding isn't supported. |

| final HashMap<String, Object> com.offsetnull.bt.service.Processor.getGMCPTable | ( | final String | path | ) |
Helper method to get a GMCP table for a given path.
| path | The module path, e.g. char.vitals.hp |

| final Object com.offsetnull.bt.service.Processor.getGMCPValue | ( | final String | str | ) |
Helper method to get a GMCP module quickly.
| str | The module to get? |

| final void com.offsetnull.bt.service.Processor.initGMCP | ( | ) |
Utility method to initialize GMCP.


| final boolean com.offsetnull.bt.service.Processor.isDebugTelnet | ( | ) |
Getter for mDebugTelnet.
| final byte [] com.offsetnull.bt.service.Processor.rawProcess | ( | final byte[] | data | ) |
The main processing routine.
| data | The data to process. |

| final void com.offsetnull.bt.service.Processor.reset | ( | ) |
Reset method, this is called when the settings have been foreably reloaded.

| final void com.offsetnull.bt.service.Processor.setDebugTelnet | ( | final boolean | debugTelnet | ) |
Setter for mDebugTelnet.
| debugTelnet | value for mDebugTelnet |
| final void com.offsetnull.bt.service.Processor.setDisplayDimensions | ( | final int | rows, |
| final int | cols | ||
| ) |
Helper method for NAWS.
| rows | Rows in display. |
| cols | Columns in display. |

| final void com.offsetnull.bt.service.Processor.setEncoding | ( | final String | encoding | ) |
Setter for mEncoding.
| encoding | Selected encoding. |

| final void com.offsetnull.bt.service.Processor.setGMCPSupports | ( | final String | value | ) |
Setter method for mGMCPSupports.
| value | The new value for mGMCPSupports. |
| final void com.offsetnull.bt.service.Processor.setUseGMCP | ( | final Boolean | value | ) |
Setter method for mUseGMCP.
| value | the new value for mUseGMCP. |

1.8.3.1