BlowTorch
 All Classes Namespaces Files Functions Variables Enumerator Pages
Public Member Functions | List of all members
com.offsetnull.bt.service.ConnectionPluginCallback Interface Reference
Inheritance diagram for com.offsetnull.bt.service.ConnectionPluginCallback:
Inheritance graph
[legend]

Public Member Functions

void setTriggersDirty ()
 
WindowToken getWindowByName (String name)
 
boolean isWindowShowing ()
 
void attatchWindowSettingsChangedListener (WindowToken w)
 
int getStatusBarHeight ()
 
int getTitleBarHeight ()
 
void buildTriggerSystem ()
 
String getDisplayName ()
 
String getHostName ()
 
int getPort ()
 
Context getContext ()
 
SettingsChangedListener getSettingsListener ()
 
void callPlugin (String plugin, String function, String data)
 
boolean pluginSupports (String plugin, String function)
 

Detailed Description

Callback interface for plugins to interact with their parent Connection.

Member Function Documentation

void com.offsetnull.bt.service.ConnectionPluginCallback.attatchWindowSettingsChangedListener ( WindowToken  w)

Attaches a window settings changed listener to the target window.

Parameters
wWindowToken to attach a listener to.
void com.offsetnull.bt.service.ConnectionPluginCallback.buildTriggerSystem ( )

Causes an immediate rebuild of the trigger system.

Implemented in com.offsetnull.bt.service.Connection.

Here is the caller graph for this function:

void com.offsetnull.bt.service.ConnectionPluginCallback.callPlugin ( String  plugin,
String  function,
String  data 
)

Calls a function in a target plugin.

Parameters
pluginThe target plugin.
functionThe target function.
dataArugment to supply to target
Context com.offsetnull.bt.service.ConnectionPluginCallback.getContext ( )

Gets the application context.

Returns
The application context.

Implemented in com.offsetnull.bt.service.Connection.

Here is the caller graph for this function:

String com.offsetnull.bt.service.ConnectionPluginCallback.getDisplayName ( )

Gets the display name for the Connection.

Returns
The display name.

Implemented in com.offsetnull.bt.service.Connection.

String com.offsetnull.bt.service.ConnectionPluginCallback.getHostName ( )

Gets the host name for the Connection.

Returns
The host name.

Implemented in com.offsetnull.bt.service.Connection.

int com.offsetnull.bt.service.ConnectionPluginCallback.getPort ( )

Gets the port number for the Connection.

Returns
The port number.

Implemented in com.offsetnull.bt.service.Connection.

SettingsChangedListener com.offsetnull.bt.service.ConnectionPluginCallback.getSettingsListener ( )

Gets the default SettingsChangedListener used by the parent Connection.

Returns
The SettingsChangedListener.

Implemented in com.offsetnull.bt.service.Connection.

int com.offsetnull.bt.service.ConnectionPluginCallback.getStatusBarHeight ( )

Gets the status bar height.

Returns
The status bar height.

Implemented in com.offsetnull.bt.service.Connection.

int com.offsetnull.bt.service.ConnectionPluginCallback.getTitleBarHeight ( )

Gets the title bar height.

Returns
The title bar height.

Implemented in com.offsetnull.bt.service.Connection.

WindowToken com.offsetnull.bt.service.ConnectionPluginCallback.getWindowByName ( String  name)

Finds a window by name.

Parameters
nameDesired window name.
Returns
The WindowToken associated with name. null if window does not exist.
boolean com.offsetnull.bt.service.ConnectionPluginCallback.isWindowShowing ( )

Interrogates the foreground window as to its visibility state.

Returns
The foreground window visibility state.

Implemented in com.offsetnull.bt.service.Connection.

boolean com.offsetnull.bt.service.ConnectionPluginCallback.pluginSupports ( String  plugin,
String  function 
)

Tests weather a plugin supports a given function.

Parameters
pluginThe target plugin.
functionThe target function name to test.
Returns
True if plugin supports function. False if not or plugin does not exist.
void com.offsetnull.bt.service.ConnectionPluginCallback.setTriggersDirty ( )

Sets the plugin system dirty bit.

Implemented in com.offsetnull.bt.service.Connection.

Here is the caller graph for this function:


The documentation for this interface was generated from the following file: