|
||||||||||
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.windows.WindowsConnector
public final class WindowsConnector
A connector implementation for Windows based on the SWT libraries. Please, use Win32Connector if SWT is not an option for you.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.skype.connector.Connector |
---|
Connector.Status |
Method Summary | |
---|---|
protected Connector.Status |
connect(int timeout)
Implementation of the connect method for this connector. |
protected void |
disposeImpl()
Clean up and disconnect. |
String |
getInstalledPath()
Returns the location of Skype.exe file from the MS Windows registry (implicit it check if Skype is installed or not). |
static WindowsConnector |
getInstance()
Gets the singleton instance of the WindowsConnector class. |
protected void |
initializeImpl()
Initialize the connector. |
boolean |
isRunning()
Checks if the Skype client is running or not. |
protected void |
sendApplicationName(String applicationName)
Send the application name to the 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, 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 WindowsConnector getInstance()
public String getInstalledPath()
getInstalledPath
in class Connector
Skype.exe
file if Skype is
installed or null
.public boolean isRunning() throws ConnectorException
isRunning
in class Connector
ConnectorException
- if checking the Skype client status failedprotected void initializeImpl() throws ConnectorException
initializeImpl
in class Connector
timeout
- Maximum amout of time in millieseconds to initialize.
ConnectorException
- when initialization cannot be completed.protected Connector.Status connect(int timeout) throws ConnectorException
connect
in class Connector
timeout
- maximum amout of time to connect.
ConnectorException
- when connection could not be established.protected void sendApplicationName(String applicationName) throws ConnectorException
sendApplicationName
in class Connector
applicationName
- the new applicationname.
ConnectorException
- when connection to Skype client has gone bad.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 |