org.xnap.plugin.joscar
Class JOscarConnection
java.lang.Object
org.xnap.plugin.joscar.JOscarConnection
- All Implemented Interfaces:
- java.util.Observer
public class JOscarConnection
- extends java.lang.Object
- implements java.util.Observer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JOscarConnection
public JOscarConnection()
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.