|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.skype.connector.Connector
com.skype.connector.win32.Win32Connector
public final class Win32Connector
Implementation of a connector for Windows. This implementation uses a small dll to connect. The WindowsConnector uses SWT library. Choose wisely.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.skype.connector.Connector |
---|
Connector.Status |
Method Summary | |
---|---|
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. |
Methods inherited from class com.skype.connector.Connector |
---|
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, useJNIConnector, waitForEndWithId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Connector getInstance()
public String getInstalledPath()
getInstalledPath
in class Connector
protected void initializeImpl()
initializeImpl
in class Connector
timeout
- maximum time in miliseconds to initialize.protected Connector.Status connect(int timeout) throws ConnectorException
connect
in class Connector
timeout
- the maximum time in milliseconds to connect.
ConnectorException
- when connection can not be established.protected void sendApplicationName(String applicationName) throws ConnectorException
sendApplicationName
in class Connector
applicationName
- 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 Connector
protected void sendCommand(String command)
sendCommand
in class Connector
command
- The command to send.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |