public class Win32Connector extends Connector
Connector.Status| Modifier | Constructor and Description |
|---|---|
protected |
Win32Connector()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Connector.Status |
connect(int timeout)
Connect to Skype client.
|
protected void |
disposeImpl()
Clean up the connector and the native lib.
|
String |
getInstalledPath()
Return the path of Skype.exe.
|
static Connector |
getInstance()
Get singleton instance.
|
protected void |
initializeImpl()
Initialize the connector.
|
void |
jni_onAttach(int status)
Set the connector status.
|
void |
jni_onSkypeMessage(String message)
This method gets called when the native lib has a message received.
|
protected void |
sendApplicationName(String applicationName)
Send applicationname to Skype client.
|
protected void |
sendCommand(String command)
Send a command to the Skype client.
|
addConnectorListener, addConnectorListener, addConnectorListener, connect, dispose, execute, execute, execute, execute, execute, executeWithId, executeWithoutTimeout, fireMessageReceived, getApplicationName, getCommandTimeout, getConnectTimeout, getDebugOut, getStatus, getStringProperty, initialize, isRunning, removeConnectorListener, sendProtocol, setApplicationName, setCommandTimeout, setConnectTimeout, setDebug, setDebugOut, setDebugOut, setInstance, setStatus, setStringProperty, waitForEndWithIdpublic static Connector getInstance()
public String getInstalledPath()
getInstalledPath in class Connectorprotected void initializeImpl()
initializeImpl in class Connectortimeout - maximum time in miliseconds to initialize.LoadLibraryExceptionprotected Connector.Status connect(int timeout) throws ConnectorException
connect in class Connectortimeout - the maximum time in milliseconds to connect.ConnectorException - when connection can not be established.protected void sendApplicationName(String applicationName) throws ConnectorException
sendApplicationName in class ConnectorapplicationName - The new Application name.ConnectorException - when Skype Client connection has gone bad.public void jni_onAttach(int status)
status - The new status.public void jni_onSkypeMessage(String message)
message - The received message.protected void disposeImpl()
disposeImpl in class Connectorprotected void sendCommand(String command)
sendCommand in class Connectorcommand - The command to send.Copyright © 2013. All Rights Reserved.