|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.walluck.oscar.handlers.SNACHandler
org.walluck.oscar.handlers.BuddyListHandler
public class BuddyListHandler
Family 0x0003 - Old-style Buddylist Management (non-SSI).
SNACHandler| Constructor Summary | |
|---|---|
BuddyListHandler()
Family 0x0003. |
|
| Method Summary | |
|---|---|
void |
addBuddy(AIMSession sess,
AIMConnection conn,
String sn)
Subtype 0x0004 - Adds a single buddy to your buddy list. |
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's. |
void |
removeBuddy(AIMSession sess,
AIMConnection conn,
String sn)
Subtype 0x0004 - Removes a single buddy from your buddy list. |
void |
reqBuddyRights(AIMSession sess,
AIMConnection conn)
Subtype 0x0002 - Request buddy list rights. |
void |
setBuddyList(AIMSession sess,
AIMConnection conn,
String buddyList)
Subtype 0x0004 - Add multiple buddies to your buddy list. |
| Methods inherited from class org.walluck.oscar.handlers.SNACHandler |
|---|
getFamily, getVersion, setFamily, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuddyListHandler()
| Method Detail |
|---|
public void reqBuddyRights(AIMSession sess,
AIMConnection conn)
throws IOException
sess - the oscar sessionconn - the bos connection for this session
IOException - if an error occurs
public void addBuddy(AIMSession sess,
AIMConnection conn,
String sn)
throws IOException
TODO: Make this an extension of setBuddyList.
sess - the oscar sessionconn - the bos connection for this sessionsn - the screename of the buddy you wish to add
IOException - if an error occurs
public void setBuddyList(AIMSession sess,
AIMConnection conn,
String buddyList)
throws IOException
This just builds the "set buddy list" command then queues it.
sess - the oscar sessionconn - the bos connection for this sessionbuddyList - "ScreenNameOne&ScreenNameTwo&"
IOException - if an error occurs
public void removeBuddy(AIMSession sess,
AIMConnection conn,
String sn)
throws IOException
TODO: make this an extension of setBuddyList, and support removing multiple buddies.
sess - the oscar sessionconn - the bos connection for this sessionsn - the screename of the buddy you wish to remove
IOException - if an error occurs
public void handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
throws IOException
handleSNAC in class SNACHandlersess - the oscar sessionhandler - the handlerframe - the incoming framesnac - the incoming SNACbuffer - the incoming buffer
IOException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||