|
||||||||||
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
Family 0x0003 - Old-style Buddylist Management (non-SSI).
SNACHandler
Constructor Summary | |
BuddyListHandler()
Family 0x0003. |
Method Summary | |
void |
addBuddy(AIMSession sess,
AIMConnection conn,
java.lang.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,
java.lang.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,
java.lang.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 java.io.IOException
sess
- the oscar sessionconn
- the bos connection for this session
java.io.IOException
- if an error occurspublic void addBuddy(AIMSession sess, AIMConnection conn, java.lang.String sn) throws java.io.IOException
FIXME: 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
java.io.IOException
- if an error occurspublic void setBuddyList(AIMSession sess, AIMConnection conn, java.lang.String buddyList) throws java.io.IOException
This just builds the "set buddy list" command then queues it.
sess
- the oscar sessionconn
- the bos connection for this sessionbuddyList
- "ScreenNameOne&ScreenNameTwo&"
java.io.IOException
- if an error occurspublic void removeBuddy(AIMSession sess, AIMConnection conn, java.lang.String sn) throws java.io.IOException
FIXME: 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
java.io.IOException
- if an error occurspublic void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer) throws java.io.IOException
handleSNAC
in class SNACHandler
sess
- the oscar sessionhandler
- the handlerframe
- the incoming framesnac
- the incoming SNACbuffer
- the incoming buffer
java.io.IOException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |