org.xnap.plugin.joscar
Class JOscarConnection

java.lang.Object
  extended by org.xnap.plugin.joscar.JOscarConnection
All Implemented Interfaces:
java.util.Observer

public class JOscarConnection
extends java.lang.Object
implements java.util.Observer


Constructor Summary
JOscarConnection()
           
 
Method Summary
 void addMessagingListener(JOscarLib.Integration.Event.MessagingListener l)
           
 void addStateListener(StateListener listener)
           
 void addStatusListener(JOscarLib.Integration.Event.StatusListener l)
           
 void addUser(java.lang.String uin)
           
 void connect()
           
 void disconnect()
           
 State getState()
           
 void removeStateListener(StateListener listener)
           
 void sendMessage(java.lang.String uin, java.lang.String message)
          Adds message to its internal message queue JOscarMessageQueue which is emptied by the JOscarMessageSender.
 void sendSMS(java.lang.String uin, java.lang.String message)
          Adds SMS message to its internal message queue JOscarMessageQueue which is emptied by the JOscarMessageSender.
 void update(java.util.Observable obs, java.lang.Object obj)
          Implements the Observer interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JOscarConnection

public JOscarConnection()
Method Detail

addMessagingListener

public void addMessagingListener(JOscarLib.Integration.Event.MessagingListener l)

addStatusListener

public void addStatusListener(JOscarLib.Integration.Event.StatusListener l)

sendMessage

public void sendMessage(java.lang.String uin,
                        java.lang.String message)
Adds message to its internal message queue JOscarMessageQueue which is emptied by the JOscarMessageSender.


sendSMS

public void sendSMS(java.lang.String uin,
                    java.lang.String message)
Adds SMS message to its internal message queue JOscarMessageQueue which is emptied by the JOscarMessageSender.


addUser

public void addUser(java.lang.String uin)

connect

public void connect()

disconnect

public void disconnect()

getState

public State getState()

addStateListener

public void addStateListener(StateListener listener)

removeStateListener

public void removeStateListener(StateListener listener)

update

public void update(java.util.Observable obs,
                   java.lang.Object obj)
Implements the Observer interface. The connection notifies us when it's connected.

Specified by:
update in interface java.util.Observer


Copyright © 2001-2005 XNap Team. All Rights Reserved.