com.skype.connector.osx
Class OSXConnector

java.lang.Object
  extended by com.skype.connector.Connector
      extended by com.skype.connector.osx.OSXConnector

public final class OSXConnector
extends Connector

Implementation of the connector for Mac OS X.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.skype.connector.Connector
Connector.Status
 
Method Summary
protected  Connector.Status connect(int timeout)
          Connects to Skype client.
static void disableSkypeEventLoop()
           
protected  void disposeImpl()
          Cleans up the connector and the native library.
 String getInstalledPath()
          Gets the absolute path of Skype.
static Connector getInstance()
          Get singleton instance.
protected  void initializeImpl()
          Initializes this connector.
 boolean isRunning()
          Checks if the Skype client is running or not.
protected  void sendCommand(String command)
          Sends a command to the Skype client.
protected  void sendProtocol()
          Sends the Skype API protocol version to use.
 
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, sendApplicationName, 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

getInstance

public static Connector getInstance()
Get singleton instance.

Returns:
instance.

disableSkypeEventLoop

public static void disableSkypeEventLoop()

isRunning

public boolean isRunning()
                  throws ConnectorException
Description copied from class: Connector
Checks if the Skype client is running or not.

Overrides:
isRunning in class Connector
Returns:
true if the Skype client is runnunig; false otherwise
Throws:
ConnectorException - if checking the Skype client status failed

getInstalledPath

public String getInstalledPath()
Gets the absolute path of Skype.

Overrides:
getInstalledPath in class Connector
Returns:
the absolute path of Skype.

initializeImpl

protected void initializeImpl()
                       throws ConnectorException
Initializes this connector.

Specified by:
initializeImpl in class Connector
Throws:
ConnectorException - if the initialization failed.

connect

protected Connector.Status connect(int timeout)
                            throws ConnectorException
Connects to Skype client.

Specified by:
connect in class Connector
Parameters:
timeout - the maximum time in milliseconds to connect.
Returns:
Status the status after connecting.
Throws:
ConnectorException - when connection can not be established.

sendProtocol

protected void sendProtocol()
                     throws ConnectorException
Description copied from class: Connector
Sends the Skype API protocol version to use. The default implementation uses the latest version of the Skype API.

Overrides:
sendProtocol in class Connector
Throws:
ConnectorException - if sending the protocol version failed

sendCommand

protected void sendCommand(String command)
Sends a command to the Skype client.

Specified by:
sendCommand in class Connector
Parameters:
command - The command to send.

disposeImpl

protected void disposeImpl()
Cleans up the connector and the native library.

Specified by:
disposeImpl in class Connector


Copyright © 2004-2011. All Rights Reserved.