com.xibit.jaimbuddy
Class JaimlibManager

java.lang.Object
  extended bycom.xibit.jaimbuddy.JaimlibManager

public class JaimlibManager
extends java.lang.Object


Constructor Summary
JaimlibManager(JaimBuddy parent)
          Sets up the manager and connects to the AOL TOC server.
 
Method Summary
 void comeBack()
          Come back from away mode.
 void disconnect()
          Disconnects from AOL TOC server; call only when closing JaimBuddy.
 void goAway(java.lang.String awayMessage)
          Go into the away mode with the specified away message.
 boolean login(java.lang.String userName, java.lang.String password)
          Log in to AIM with the specified userName and password.
 void logout()
          Log out of AIM.
 void receiveEvent(JaimEvent event)
          Receive a >Jaimlib event and process it according to its content
 boolean sendIM(java.lang.String buddy, java.lang.String msg, boolean autoresponse)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaimlibManager

public JaimlibManager(JaimBuddy parent)
Sets up the manager and connects to the AOL TOC server.

Method Detail

disconnect

public void disconnect()
Disconnects from AOL TOC server; call only when closing JaimBuddy.


login

public boolean login(java.lang.String userName,
                     java.lang.String password)
Log in to AIM with the specified userName and password.

Parameters:
userName - The username of the AOL buddy
password - The AOL buddy's password.
Returns:
true if there were no errors, false otherwise

logout

public void logout()
Log out of AIM.


comeBack

public void comeBack()
Come back from away mode.


goAway

public void goAway(java.lang.String awayMessage)
Go into the away mode with the specified away message.

Parameters:
awayMessage - The away message

receiveEvent

public void receiveEvent(JaimEvent event)
Receive a >Jaimlib event and process it according to its content

Parameters:
event - The JaimEvent to be processed

sendIM

public boolean sendIM(java.lang.String buddy,
                      java.lang.String msg,
                      boolean autoresponse)