Classes | |
class | Data |
Public Member Functions | |
Connection (final String display, final String host, final int port, final StellarService service) | |
final void | windowXCallS (final String name, final String function, final Object o) throws RemoteException |
final void | reloadSettings () |
final void | buildTriggerSystem () |
final void | registerWindowCallback (final String name, final IWindowCallback callback) |
final void | unregisterWindowCallback (final IWindowCallback callback) |
final void | setTriggersDirty () |
final void | sendDataToWindow (final String message) |
final void | sendBytesToWindow (final byte[] data) |
final Data | processCommand (final String cmd) |
final void | switchTo (final String connection) |
final WindowToken[] | getWindows () |
final String | getScript (final String plugin, final String name) |
final void | executeFunctionCallback (final int id, final String callback, final String args) |
final void | pluginXcallS (final String plugin, final String function, final String str) |
final WindowToken | getWindowByName (final String desired) |
final HashMap< String, TriggerData > | getTriggers () |
final HashMap< String, TriggerData > | getPluginTriggers (final String name) |
final void | addTrigger (final TriggerData data) |
final void | updateTrigger (final TriggerData from, final TriggerData to) |
final void | updatePluginTrigger (final String selectedPlugin, final TriggerData from, final TriggerData to) |
final void | newPluginTrigger (final String selectedPlugin, final TriggerData data) |
final TriggerData | getPluginTrigger (final String selectedPlugin, final String pattern) |
final TriggerData | getTrigger (final String pattern) |
final void | setPluginTriggerEnabled (final String selectedPlugin, final boolean enabled, final String key) |
final void | setTriggerEnabled (final boolean enabled, final String key) |
final void | deletePluginTrigger (final String selectedPlugin, final String which) |
final void | deleteTrigger (final String which) |
final void | setAliases (final HashMap< String, AliasData > map) |
final void | setPluginAliases (final String plugin, final HashMap< String, AliasData > map) |
final AliasData | getPluginAlias (final String plugin, final String key) |
final AliasData | getAlias (final String key) |
final void | deleteAlias (final String key) |
final void | deletePluginAlias (final String plugin, final String key) |
final HashMap< String, AliasData > | getAliases () |
final HashMap< String, AliasData > | getPluginAliases (final String plugin) |
final ArrayList< String > | getSystemCommands () |
final void | setPluginAliasEnabled (final String plugin, final boolean enabled, final String key) |
final void | setAliasEnabled (final boolean enabled, final String key) |
final byte[] | doKeyboardAliasReplace (final byte[] bytes, final Boolean reprocess) |
final void | startReconnect () |
final void | doReconnect () |
final void | deletePluginTimer (final String plugin, final String name) |
final TimerData | getTimer (final String name) |
final void | deleteTimer (final String name) |
final TimerData | getPluginTimer (final String plugin, final String name) |
final void | addPluginTimer (final String plugin, final TimerData newtimer) |
final void | updatePluginTimer (final String plugin, final TimerData old, final TimerData newtimer) |
final void | updateTimer (final TimerData old, final TimerData newtimer) |
final HashMap< String, TimerData > | getTimers () |
final HashMap< String, TimerData > | getPluginTimers (final String plugin) |
final void | addTimer (final TimerData newtimer) |
final boolean | isWindowShowing () |
final String | getDisplayName () |
final Context | getContext () |
final void | playTimer (final String key) |
final void | playPluginTimer (final String plugin, final String timer) |
final void | pauseTimer (final String key) |
final void | pausePluginTimer (final String plugin, final String timer) |
final void | stopTimer (final String key) |
final void | stopPluginTimer (final String plugin, final String key) |
final SettingsGroup | getSettings () |
final SettingsGroup | getPluginSettings (final String plugin) |
final void | updateBooleanSetting (final String key, final boolean value) |
final void | updatePluginBooleanSetting (final String plugin, final String key, final boolean value) |
final void | updateStringSetting (final String key, final String value) |
final void | updatePluginStringSetting (final String plugin, final String key, final String value) |
final void | updateIntegerSetting (final String key, final int value) |
final void | updatePluginIntegerSetting (final String plugin, final String key, final int value) |
final void | updateFloatSetting (final String key, final float value) |
final void | updatePluginFloatSetting (final String plugin, final String key, final float value) |
final void | handleWindowSettingsChanged (final String window, final String key, final String value) |
final void | updateSetting (final String key, final String value) |
final void | updateWindowBufferMaxValue (final String plugin, final String window, final int amount) |
final void | saveMainSettings () |
final void | exportSettings (final String path) |
final void | startExportSequence (final String path) |
final void | attatchWindowSettingsChangedListener (final WindowToken w) |
final boolean | isKeepLast () |
final boolean | isFullScren () |
final String | getHostName () |
final int | getPort () |
final void | resetSettings () |
final void | doResetSettings () |
final void | startLoadSettingsSequence (final String path) |
final void | doAddLink (final String path) |
final void | addLink (final String path) |
final void | deletePlugin (final String plugin) |
final void | setPluginEnabled (final String plugin, final boolean enabled) |
final HashMap< String, DirectionData > | getDirectionData () |
final void | setDirectionData (final HashMap< String, DirectionData > data) |
final int | getTitleBarHeight () |
final int | getStatusBarHeight () |
final boolean | isLinkLoaded (final String link) |
final void | initWindows () |
final void | shutdown () |
final String | getPluginPath (final String plugin) |
final void | dispatchLuaText (final String str) |
final void | callPluginFunction (final String plugin, final String function) |
final SettingsChangedListener | getSettingsListener () |
final void | callPlugin (final String plugin, final String function, final String data) |
final boolean | pluginSupports (final String plugin, final String function) |
final boolean | isPluginInstalled (final String desired) |
final Handler | getHandler () |
final ArrayList< Plugin > | getPlugins () |
final DataPumper | getPump () |
final Processor | getProcessor () |
final String | getDisplay () |
final String | getHost () |
final boolean | isConnected () |
final StellarService | getService () |
String | getPluginOptionValue (String plugin, String key) |
![]() | |
void | updateSetting (String key, String value) |
![]() | |
WindowToken | getWindowByName (String name) |
void | attatchWindowSettingsChangedListener (WindowToken w) |
void | callPlugin (String plugin, String function, String data) |
boolean | pluginSupports (String plugin, String function) |
Static Public Member Functions | |
static int | getResId (final String variableName, final Context context, final Class<?> c) |
Static Public Attributes | |
static final int | MESSAGE_STARTUP = 1 |
static final int | MESSAGE_STARTCOMPRESS = 2 |
static final int | MESSAGE_PROCESSORWARNING = 3 |
static final int | MESSAGE_SENDOPTIONDATA = 4 |
static final int | MESSAGE_BELLINC = 5 |
static final int | MESSAGE_DODIALOG = 6 |
static final int | MESSAGE_PROCESS = 7 |
static final int | MESSAGE_DISCONNECTED = 8 |
static final int | MESSAGE_MCCPFATALERROR = 9 |
static final int | MESSAGE_SENDDATA_BYTES = 9 |
static final int | MESSAGE_LINETOWINDOW = 10 |
static final int | MESSAGE_LUANOTE = 11 |
static final int | MESSAGE_DRAWINDOW = 12 |
static final int | MESSAGE_NEWWINDOW = 13 |
static final int | MESSAGE_WINDOWBUFFER = 15 |
static final int | MESSAGE_ADDFUNCTIONCALLBACK = 16 |
static final int | MESSAGE_WINDOWXCALLS = 17 |
static final int | MESSAGE_INVALIDATEWINDOWTEXT = 18 |
static final int | MESSAGE_GMCPTRIGGERED = 19 |
static final int | MESSAGE_SENDDATA_STRING = 20 |
static final int | MESSAGE_SAVESETTINGS = 21 |
static final int | MESSAGE_EXPORTFILE = 22 |
static final int | MESSAGE_IMPORTFILE = 23 |
static final int | MESSAGE_SENDGMCPDATA = 24 |
static final int | MESSAGE_WINDOWXCALLB = 25 |
static final int | MESSAGE_PLUGINLUAERROR = 26 |
static final int | MESSAGE_CONNECTED = 30 |
static final int | MESSAGE_TRIGGER_LUA_ERROR = 32 |
static final int | MESSAGE_RELOADSETTINGS = 33 |
static final int | MESSAGE_SETTRIGGERSDIRTY = 34 |
static final int | MESSAGE_TERMINATED_BY_PEER = 41 |
Protected Member Functions | |
final void | dispatchLuaError (final String message) |
final void | saveDirtyPlugin (final String changedplugin) |
final void | doInvalidateWindowText (final String name) throws RemoteException |
final void | windowXCallB (final String name, final String functions, final byte[] bytes) throws RemoteException |
final void | redrawWindow (final String win) |
final void | lineToWindow (final String target, final Object line) throws RemoteException |
final void | doDisconnect (final boolean override) |
final void | killNetThreads (final boolean noreconnect) |
final void | dispatchDialog (final String str) |
Connection class implementation.
com.offsetnull.bt.service.Connection.Connection | ( | final String | display, |
final String | host, | ||
final int | port, | ||
final StellarService | service | ||
) |
Public constructor for the Connection.
display | The display name. |
host | The host name. |
port | The port number. |
service | Parent that initated this connection. |
final void com.offsetnull.bt.service.Connection.addLink | ( | final String | path | ) |
Entry point for the foreground window to add an external plugin and reload the settings.
path | The location of the external settings file. |
final void com.offsetnull.bt.service.Connection.addPluginTimer | ( | final String | plugin, |
final TimerData | newtimer | ||
) |
Adds a timer to the target plugin.
plugin | Name of the target plugin. |
newtimer | New timer data. |
final void com.offsetnull.bt.service.Connection.addTimer | ( | final TimerData | newtimer | ) |
Adds a new timer into the main settings plugin.
newtimer | New timer to add. |
final void com.offsetnull.bt.service.Connection.addTrigger | ( | final TriggerData | data | ) |
Adds a trigger into the main settings plugin.
data | The trigger to add. |
final void com.offsetnull.bt.service.Connection.attatchWindowSettingsChangedListener | ( | final WindowToken | w | ) |
Attatches a WindowSettingsChangedListener to the given WindowToken.
w | The window to attatch a new settings changed listener to. |
final void com.offsetnull.bt.service.Connection.buildTriggerSystem | ( | ) |
Work horse function to rebuild the trigger system.
I think this is called from a number of placed, but it should really be called from dispatch() when triggers are dirty.
Implements com.offsetnull.bt.service.ConnectionPluginCallback.
final void com.offsetnull.bt.service.Connection.callPlugin | ( | final String | plugin, |
final String | function, | ||
final String | data | ||
) |
final void com.offsetnull.bt.service.Connection.callPluginFunction | ( | final String | plugin, |
final String | function | ||
) |
Calls an anonymous global function in the target plugin. Does not provide an arugment.
plugin | Name of the target plugin. |
function | Name of the function to call. |
final void com.offsetnull.bt.service.Connection.deleteAlias | ( | final String | key | ) |
Removes an alias form the main settings plugin.
key | The pre part of the alias to delete. |
final void com.offsetnull.bt.service.Connection.deletePlugin | ( | final String | plugin | ) |
Entry poit routine for removing a plugin.
plugin | The name of the plugin to remove. |
final void com.offsetnull.bt.service.Connection.deletePluginAlias | ( | final String | plugin, |
final String | key | ||
) |
Removes an alias from the target plugin.
plugin | The name of the plugin to affect. |
key | The pre part of the alias to remove. |
final void com.offsetnull.bt.service.Connection.deletePluginTimer | ( | final String | plugin, |
final String | name | ||
) |
Removes a timer from the target plugin.
plugin | Name of the target plugin. |
name | Name of the timer to remove. |
final void com.offsetnull.bt.service.Connection.deletePluginTrigger | ( | final String | selectedPlugin, |
final String | which | ||
) |
Removes a trigger from the target plugin.
selectedPlugin | Name of the plugin to search in. |
which | Name of the trigger to remove. |
final void com.offsetnull.bt.service.Connection.deleteTimer | ( | final String | name | ) |
Removes a timer from the main settings plugin.
name | Name of the trigger to remove. |
final void com.offsetnull.bt.service.Connection.deleteTrigger | ( | final String | which | ) |
Removes a trigger from the main settings plugin.
which | Name of the trigger to remove. |
|
protected |
Called from a few places I think. Triggers the network disconnected dialog in the foreground window. Unless the auto reconnect is set.
str | The message fro the dialog. |
|
protected |
Quick frontend for dispatchNoProcess(...) for sending a lua error message.
message | The message to show. |
final void com.offsetnull.bt.service.Connection.dispatchLuaText | ( | final String | str | ) |
Entry point for Plugins to send data to the foreground window without trigger parsing.
str | The string to send. |
final void com.offsetnull.bt.service.Connection.doAddLink | ( | final String | path | ) |
Work horse for the foreground window to add an external plugin and reload the settings.
path | The location of the external settings file. |
|
protected |
Called from the DataPumper when the net threads have been shut down.
override | Indicates weather the auto reconnect should be overridden. |
|
protected |
Work horse method for plugins to invalidate a target window's text.
name | Name of the window that should invalidate it's text. |
RemoteException | Thrown when there is a problem with the aidl bridge. |
final byte [] com.offsetnull.bt.service.Connection.doKeyboardAliasReplace | ( | final byte[] | bytes, |
final Boolean | reprocess | ||
) |
Helper function for the keyboard command. Does an alias replacment in a special kind of way.
bytes | Bytes to process. |
reprocess | Weather to do recursive alias replacement. |
final void com.offsetnull.bt.service.Connection.doReconnect | ( | ) |
Helper method to initiate a reconnect right now.
final void com.offsetnull.bt.service.Connection.doResetSettings | ( | ) |
Work horse routine that actually resets the settings.
final void com.offsetnull.bt.service.Connection.executeFunctionCallback | ( | final int | id, |
final String | callback, | ||
final String | args | ||
) |
Calls an anonymous global function in the target plugin with arguments.
id | The ID of the plugin to target. |
callback | The name of the desired function to execute. |
args | The data to supply to |
callback. |
final void com.offsetnull.bt.service.Connection.exportSettings | ( | final String | path | ) |
Export settings routine. Called from either the main settings save routine or the export settings dialog.
path | File name to save to. Must be absolute from the OS root directory. |
final AliasData com.offsetnull.bt.service.Connection.getAlias | ( | final String | key | ) |
Gets an alias from the main settings plugin.
key | The pre part of the alias. |
final HashMap<String, AliasData> com.offsetnull.bt.service.Connection.getAliases | ( | ) |
Gets the alias map for the main settings plugin.
final Context com.offsetnull.bt.service.Connection.getContext | ( | ) |
Helper method for getting the application context out here in the desert of the Service.
Implements com.offsetnull.bt.service.ConnectionPluginCallback.
final HashMap<String, DirectionData> com.offsetnull.bt.service.Connection.getDirectionData | ( | ) |
Gets the direction data from the main settings plugin.
final String com.offsetnull.bt.service.Connection.getDisplay | ( | ) |
Getter for the display name.
final String com.offsetnull.bt.service.Connection.getDisplayName | ( | ) |
Getter method for mDisplay.
Implements com.offsetnull.bt.service.ConnectionPluginCallback.
final Handler com.offsetnull.bt.service.Connection.getHandler | ( | ) |
Getter for mHandler.
final String com.offsetnull.bt.service.Connection.getHost | ( | ) |
Getter for the host name.
final String com.offsetnull.bt.service.Connection.getHostName | ( | ) |
final AliasData com.offsetnull.bt.service.Connection.getPluginAlias | ( | final String | plugin, |
final String | key | ||
) |
Gets an alias for a target plugin.
plugin | Name of the plugin to search. |
key | The pre part of the alias. |
final HashMap<String, AliasData> com.offsetnull.bt.service.Connection.getPluginAliases | ( | final String | plugin | ) |
Gets the alias map for a target plugin.
plugin | The desired plugin to interrogate. |
String com.offsetnull.bt.service.Connection.getPluginOptionValue | ( | String | plugin, |
String | key | ||
) |
final String com.offsetnull.bt.service.Connection.getPluginPath | ( | final String | plugin | ) |
Gets the path for a plugin.
plugin | Name of the plugin to interrogate. |
final ArrayList<Plugin> com.offsetnull.bt.service.Connection.getPlugins | ( | ) |
Getter for the plugin list.
final SettingsGroup com.offsetnull.bt.service.Connection.getPluginSettings | ( | final String | plugin | ) |
Gets the settings object for a target plugin.
plugin | Name of the target plugin. |
final TimerData com.offsetnull.bt.service.Connection.getPluginTimer | ( | final String | plugin, |
final String | name | ||
) |
Gets a timer from the target plugin.
plugin | Name of the target plugin. |
name | Name of the trigger to get. |
final HashMap<String, TimerData> com.offsetnull.bt.service.Connection.getPluginTimers | ( | final String | plugin | ) |
Gets the timer map for a target plugin.
plugin | Name of the target plugin. |
final TriggerData com.offsetnull.bt.service.Connection.getPluginTrigger | ( | final String | selectedPlugin, |
final String | pattern | ||
) |
Gets a trigger in the target plugin.
selectedPlugin | Name of the plugin to look in. |
pattern | Name of the desired trigger. |
final HashMap<String, TriggerData> com.offsetnull.bt.service.Connection.getPluginTriggers | ( | final String | name | ) |
Helper function to get the triggers for a given plugin.
name | The name of the plugin to interrogate. |
final int com.offsetnull.bt.service.Connection.getPort | ( | ) |
Getter for this connection's port value.
Implements com.offsetnull.bt.service.ConnectionPluginCallback.
final Processor com.offsetnull.bt.service.Connection.getProcessor | ( | ) |
Getter for mProcessor.
final DataPumper com.offsetnull.bt.service.Connection.getPump | ( | ) |
Getter for mPump.
|
static |
Helper method for reverse mapping R.java constants from name to id.
variableName | The desired field name e.g. "alias_dialog". |
context | THe current application context to use. |
c | The class to search, this is usually R.layout or R.drawable. |
final String com.offsetnull.bt.service.Connection.getScript | ( | final String | plugin, |
final String | name | ||
) |
Called from the foreground window. This method fetches a named script body from a plugin.
plugin | The plugin to look in. |
name | The name of the script to fetch. |
final StellarService com.offsetnull.bt.service.Connection.getService | ( | ) |
Getter for mService. This is really ugly and should be fixed immediatly.
final SettingsGroup com.offsetnull.bt.service.Connection.getSettings | ( | ) |
Gets the settings object for the main settings plugin.
final SettingsChangedListener com.offsetnull.bt.service.Connection.getSettingsListener | ( | ) |
Gets the default SettingsChangedListener used by the parent Connection.
Implements com.offsetnull.bt.service.ConnectionPluginCallback.
final int com.offsetnull.bt.service.Connection.getStatusBarHeight | ( | ) |
Getter for the status bar height.
Implements com.offsetnull.bt.service.ConnectionPluginCallback.
final ArrayList<String> com.offsetnull.bt.service.Connection.getSystemCommands | ( | ) |
Gets the list of all the installed system commands.
final TimerData com.offsetnull.bt.service.Connection.getTimer | ( | final String | name | ) |
Gets a timer from the main settings plugin.
name | Name of the timer to get. |
final HashMap<String, TimerData> com.offsetnull.bt.service.Connection.getTimers | ( | ) |
Gets the timer map for the main settings plugin.
final int com.offsetnull.bt.service.Connection.getTitleBarHeight | ( | ) |
Getter for the title bar height.
Implements com.offsetnull.bt.service.ConnectionPluginCallback.
final TriggerData com.offsetnull.bt.service.Connection.getTrigger | ( | final String | pattern | ) |
Gets a trigger from the main settings plugin.
pattern | Name of the trigger to get. |
final HashMap<String, TriggerData> com.offsetnull.bt.service.Connection.getTriggers | ( | ) |
Helper function to get the triggers for the main conenction settings.
final WindowToken com.offsetnull.bt.service.Connection.getWindowByName | ( | final String | desired | ) |
Helper function to get a window by name.
desired | The name of the window to look up. |
final WindowToken [] com.offsetnull.bt.service.Connection.getWindows | ( | ) |
Gets the current window token list in loaded order as an array.
final void com.offsetnull.bt.service.Connection.handleWindowSettingsChanged | ( | final String | window, |
final String | key, | ||
final String | value | ||
) |
Work horse of the main window settings change listener.
window | Name of the window that was affected. |
key | Name of the key that changed. |
value | The value that it was changed to. |
final void com.offsetnull.bt.service.Connection.initWindows | ( | ) |
Kicks off the loadInternalSettings() routine.
final boolean com.offsetnull.bt.service.Connection.isConnected | ( | ) |
getter for mIsConnected.
final boolean com.offsetnull.bt.service.Connection.isFullScren | ( | ) |
Target for the foreground window to check if the full screen settings is set.
final boolean com.offsetnull.bt.service.Connection.isKeepLast | ( | ) |
Target for the foreground window to check if the keep last setting is set.
final boolean com.offsetnull.bt.service.Connection.isLinkLoaded | ( | final String | link | ) |
Utility method to test to see if a link has been loaded.
link | The path of the link to test. Relative to the BlowTorch sd card root. |
final boolean com.offsetnull.bt.service.Connection.isPluginInstalled | ( | final String | desired | ) |
Test to see of a plugin is installed.
desired | Name of the desired plugin. |
final boolean com.offsetnull.bt.service.Connection.isWindowShowing | ( | ) |
Helper method to see if the window is currently being shown.
Implements com.offsetnull.bt.service.ConnectionPluginCallback.
|
protected |
Called from various sources to kill the DataPumper and all of its threads.
noreconnect | true if there should be no reconnect attempt made. |
|
protected |
Actual working method for the LineToWindow Lua function.
target | Name of the window to recieve the line. |
line | The TextTree.Line to send to |
target |
RemoteException | Thrown when there is a problem with the aidl bridge. |
final void com.offsetnull.bt.service.Connection.newPluginTrigger | ( | final String | selectedPlugin, |
final TriggerData | data | ||
) |
Adds a new trigger in the target plugin.
selectedPlugin | Target plugin for the new trigger. |
data | The new trigger. |
final void com.offsetnull.bt.service.Connection.pausePluginTimer | ( | final String | plugin, |
final String | timer | ||
) |
Pauses a timer in the target plugin.
plugin | Name of the target plugin. |
timer | Name of the timer to pause. |
final void com.offsetnull.bt.service.Connection.pauseTimer | ( | final String | key | ) |
Pauses a timer in the main settings plugin.
key | Name of the plugin to pause. |
final void com.offsetnull.bt.service.Connection.playPluginTimer | ( | final String | plugin, |
final String | timer | ||
) |
Starts a timer in the target plugin.
plugin | Name of the target plugin. |
timer | Name of the timer to start. |
final void com.offsetnull.bt.service.Connection.playTimer | ( | final String | key | ) |
Starts a timer in the main settings plugin with the target name.
key | Name of the timer to start. |
final boolean com.offsetnull.bt.service.Connection.pluginSupports | ( | final String | plugin, |
final String | function | ||
) |
final void com.offsetnull.bt.service.Connection.pluginXcallS | ( | final String | plugin, |
final String | function, | ||
final String | str | ||
) |
The reciever of the foreground window PluginXCallS Lua function.
plugin | The name of the plugin to look in. |
function | The name of the anonymous global function to call. |
str | The argument to pass to function. |
final Data com.offsetnull.bt.service.Connection.processCommand | ( | final String | cmd | ) |
Data generator for outside package use of the Data class.
cmd | The input string to parse. |
|
protected |
end of the line of the DrawWindow function. I don't think this is used.
win | Name of the window to redraw. |
final void com.offsetnull.bt.service.Connection.registerWindowCallback | ( | final String | name, |
final IWindowCallback | callback | ||
) |
Called from the aidl bridge housing in StellarService when the foreground window has started a new window and needs to let the Connection know that a new window is open for it.
name | The name of the new window. |
callback | The IWindowCallback aidl conenction object associated with the window. |
final void com.offsetnull.bt.service.Connection.reloadSettings | ( | ) |
Calling this method will reload the connection settings and all plugins.
final void com.offsetnull.bt.service.Connection.resetSettings | ( | ) |
Entry point for the foreground window to reset the settings for this connection.
|
protected |
Saves dirty plugins or the main settings wad.
changedplugin | The name of the plugin, "" will save the main settings. |
final void com.offsetnull.bt.service.Connection.saveMainSettings | ( | ) |
The main starting point for the save settings routine. This is called for a few different locations.
final void com.offsetnull.bt.service.Connection.sendBytesToWindow | ( | final byte[] | data | ) |
Sends bytes to the main output window.
data | The bytes to send. |
final void com.offsetnull.bt.service.Connection.sendDataToWindow | ( | final String | message | ) |
Sends a string to the main output window.
message | The string to send. |
final void com.offsetnull.bt.service.Connection.setAliasEnabled | ( | final boolean | enabled, |
final String | key | ||
) |
Sets the enabled state of an alias in the main settings plugin.
enabled | Desired state of the alias. |
key | The pre part of the alias to affect. |
final void com.offsetnull.bt.service.Connection.setAliases | ( | final HashMap< String, AliasData > | map | ) |
Sets the aliases for the main settings plugin. This comes from the foreground window in one glob.
map | The new alias map (HashMap<String, AliasData>). |
final void com.offsetnull.bt.service.Connection.setDirectionData | ( | final HashMap< String, DirectionData > | data | ) |
Sets the directio data for the main settings plugin. This is supplied from the foreground window.
data | Diretion data wad from to use for the main settings wad. |
final void com.offsetnull.bt.service.Connection.setPluginAliasEnabled | ( | final String | plugin, |
final boolean | enabled, | ||
final String | key | ||
) |
Sets the enabled state of an alias in the target plugin.
plugin | Name of the target plugin. |
enabled | Desired state of the alias. |
key | The pre part of the alias to affect. |
final void com.offsetnull.bt.service.Connection.setPluginAliases | ( | final String | plugin, |
final HashMap< String, AliasData > | map | ||
) |
Sets the aliases for a given plugin. This comes from the foreground window in one glob.
plugin | Name of the target plugin to affect. |
map | The new alias map (HashMap<String, AliasData>) |
final void com.offsetnull.bt.service.Connection.setPluginEnabled | ( | final String | plugin, |
final boolean | enabled | ||
) |
Sets a plugin enabled.
plugin | Name of the plugin to affect. |
enabled | Desired state of the plugin. |
final void com.offsetnull.bt.service.Connection.setPluginTriggerEnabled | ( | final String | selectedPlugin, |
final boolean | enabled, | ||
final String | key | ||
) |
Sets the enabled state of a trigger in the target plugin.
selectedPlugin | Name of the target plugin to affect. |
enabled | Desired state of the trigger. |
key | The name of the trigger to affect. |
final void com.offsetnull.bt.service.Connection.setTriggerEnabled | ( | final boolean | enabled, |
final String | key | ||
) |
Sets the enabled state of a trigger in the main settings plugin.
enabled | Desired state of the target trigger. |
key | Name of the trigger to affect. |
final void com.offsetnull.bt.service.Connection.setTriggersDirty | ( | ) |
Setter for triggersDirty.
Implements com.offsetnull.bt.service.ConnectionPluginCallback.
final void com.offsetnull.bt.service.Connection.shutdown | ( | ) |
Immediatly shuts down this connection and all associated data structures.
final void com.offsetnull.bt.service.Connection.startExportSequence | ( | final String | path | ) |
Access point for the foreground window to initate a custom export action with the provided path.
path | Path to save settings to, this must be absolute from the root directory (?) |
final void com.offsetnull.bt.service.Connection.startLoadSettingsSequence | ( | final String | path | ) |
Entry point for the foreground window to import a custom settings file at the given location.
path | Path of the settings to load. |
final void com.offsetnull.bt.service.Connection.startReconnect | ( | ) |
Helper method that kicks off the reconnection sequence.
final void com.offsetnull.bt.service.Connection.stopPluginTimer | ( | final String | plugin, |
final String | key | ||
) |
Stops a timer in the target plugin.
plugin | Name of the target plugin. |
key | Name of the timer to stop. |
final void com.offsetnull.bt.service.Connection.stopTimer | ( | final String | key | ) |
Stops a timer in the main settings plugin.
key | Name of the timer to stop. |
final void com.offsetnull.bt.service.Connection.switchTo | ( | final String | connection | ) |
Switches to another open connection.
connection | Name of the connection to switch to. |
final void com.offsetnull.bt.service.Connection.unregisterWindowCallback | ( | final IWindowCallback | callback | ) |
Called from the aidl bridge housing in StellarService when the foreground window has stopped and destroyed a window and needs to let the Connection know that the IWindowCallback is invalid.
callback | The IWindowCallback aidl connection object of the destroyed window. |
final void com.offsetnull.bt.service.Connection.updateBooleanSetting | ( | final String | key, |
final boolean | value | ||
) |
Updates a boolean setting in the main settings plugin.
key | id of the setting to affect. |
value | new value for setting key |
final void com.offsetnull.bt.service.Connection.updateFloatSetting | ( | final String | key, |
final float | value | ||
) |
Updates a float setting in the main settings plugin.
key | key id of the setting to update. |
value | the value to use. |
final void com.offsetnull.bt.service.Connection.updateIntegerSetting | ( | final String | key, |
final int | value | ||
) |
Udpates an integer setting in the main settings plugin.
key | key id of the setting to affect. |
value | the value to use. |
final void com.offsetnull.bt.service.Connection.updatePluginBooleanSetting | ( | final String | plugin, |
final String | key, | ||
final boolean | value | ||
) |
Updates a boolean setting in the target plugin.
plugin | Name of the target plugin. |
key | key id of the setting to affect. |
value | the value to use. |
final void com.offsetnull.bt.service.Connection.updatePluginFloatSetting | ( | final String | plugin, |
final String | key, | ||
final float | value | ||
) |
Updates a float setting in the target plugin.
plugin | Name of the target plugin. |
key | key id of the setting to affect. |
value | the value to use. |
final void com.offsetnull.bt.service.Connection.updatePluginIntegerSetting | ( | final String | plugin, |
final String | key, | ||
final int | value | ||
) |
Updates an integer setting in the target plugin.
plugin | Name of the target plugin. |
key | key id of the setting to affect. |
value | the value to use. |
final void com.offsetnull.bt.service.Connection.updatePluginStringSetting | ( | final String | plugin, |
final String | key, | ||
final String | value | ||
) |
Updates a string setting in the target plugin.
plugin | Name of the target plugin. |
key | key id of the setting to affect. |
value | the value to use. |
final void com.offsetnull.bt.service.Connection.updatePluginTimer | ( | final String | plugin, |
final TimerData | old, | ||
final TimerData | newtimer | ||
) |
Updates a timer in the target plugin.
plugin | Name of the target plugin. |
old | Old timer data. |
newtimer | New timer data. |
final void com.offsetnull.bt.service.Connection.updatePluginTrigger | ( | final String | selectedPlugin, |
final TriggerData | from, | ||
final TriggerData | to | ||
) |
Updates a trigger in the target plugin.
selectedPlugin | Name of the plugin to work in. |
from | Old plugin. |
to | New plugin. |
final void com.offsetnull.bt.service.Connection.updateSetting | ( | final String | key, |
final String | value | ||
) |
final void com.offsetnull.bt.service.Connection.updateStringSetting | ( | final String | key, |
final String | value | ||
) |
Updates a string setting in the main settings plugin.
key | key id of the setting to affect. |
value | the value to use. |
final void com.offsetnull.bt.service.Connection.updateTimer | ( | final TimerData | old, |
final TimerData | newtimer | ||
) |
Updates a timer in the main settings plugin.
old | Old timer data. |
newtimer | New timer data. |
final void com.offsetnull.bt.service.Connection.updateTrigger | ( | final TriggerData | from, |
final TriggerData | to | ||
) |
Updates a trigger in the main settings plugin.
from | Old trigger. |
to | New trigger. |
final void com.offsetnull.bt.service.Connection.updateWindowBufferMaxValue | ( | final String | plugin, |
final String | window, | ||
final int | amount | ||
) |
Possibly Deprecated. Sets the buffer size for a target window in a target plugin.
plugin | The target plugin. |
window | The target window. |
amount | The new buffer size value. |
|
protected |
Work horse method for WindowXCallB Lua function.
name | Name of the target window. |
functions | Name of the anonymous global function to call. |
bytes | Bytes to provide as an argument to |
function |
RemoteException | Thrown when there is a problem with the aidl bridge. |
final void com.offsetnull.bt.service.Connection.windowXCallS | ( | final String | name, |
final String | function, | ||
final Object | o | ||
) | throws RemoteException |
Work horse method for WindowXCallS Lua function.
name | Name of the target window. |
function | Name of the anonymous global function to call |
o | String argument to provide to |
function |
RemoteException | Thrown when there is a problem with the aidl bridge. |
|
static |
Sent from Plugin.RegisterSpecialCommandFunction and registers a .command callback.
|
static |
Sent from the Processor indicating the bell character has been recieved.
|
static |
Sent from DataPumper indicating that the tcp connection to the server has started.
|
static |
Sent from the DataPumper when the connection has been lost.
|
static |
Not sure where this is sent from, I think the Xml parser or the datapumper. Used to put up an alert dialog with some text to the foreground window if connected.
|
static |
Sent from Plugin.DrawWindowFunction, I think this is no longer used and deprecated.
|
static |
Sent from either the foreground window or the save settings routine, exports settings to a given path.
|
static |
Sent from Processor indicating that gmcp has triggered.
|
static |
Sent from either the foreground window or the settings loader routing, imports settings from a given location into this active connection.
|
static |
Sent from plugin functions, used to redraw a target window.
|
static |
Sent from Plugin.LineToWindowFunction contains a TextTree.Line object to send to a specific window.
|
static |
Sent from Plugin.NoteFunction with text to send to the output window.
|
static |
Sent from the DataPumper indicating a fatal mccp error.
|
static |
Sent from Plugin.NewWindowFucntion used to create a new miniwindow with then given configuration.
|
static |
Sent from Plugin, indicating an error condition from a script entry point.
|
static |
Sent from Processor, contains the non-telnet related data in the incoming transmission.
|
static |
Sent by various objects to throw text to the window bypassing the trigger parse routine.
|
static |
Sent from the foreground window, initiates the settings reloading process.
|
static |
Sent from various sources, initates the settings loader routine.
|
static |
Sent from the foreground window with data to be sent to the server.
|
static |
Sent from various sources, containing a string to be sent to the server in the selected encoding.
|
static |
Sent from Plugin.SendGMCPDataFunction, sends the given data to the server using gmcp.
|
static |
Sent from the Processor to send data to the DataPumper's output thread.
|
static |
Sent from various sources, indicates that triggers need to be rebuilt, I believe this is deprecated.
|
static |
Bridge between Processor and DataPumper to initiate MCCP compression.
|
static |
Initiates the connection with the server.
|
static |
Sent from the DataPumper indicating the orderly shutdown of the tcp connection.
|
static |
Sent from AckWithResponder when a trigger executes script code that results in error.
|
static |
Sent from Plugin.WindowBufferFunction and sets the buffering option of a window. I think this is deprecated.
|
static |
Sent from Plugin.WindowXCallB, same as WindowXCallS only great care is taken to preserve the "bytes".
|
static |
Sent from Plugin.WindowXCallSFunction, calls an anonymous global function in the target window with data.