|
||||||||||
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.BOSHandler
Family 0x0009 - Basic Oscar Service.
THe functionality of this family has been replaced by SSI.
SNACHandler
Constructor Summary | |
BOSHandler()
Family 0x0009 |
Method Summary | |
void |
changeVisibility(AIMSession sess,
AIMConnection conn,
int changetype,
java.lang.String list)
Subtypes 0x0005, 0x0006, 0x0007, 0x0008 - Modify the permit/deny lists. |
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's. |
void |
reqRights(AIMSession sess,
AIMConnection conn)
Subtype 0x0002 - Request BOS rights. |
void |
setGroupPerm(AIMSession sess,
AIMConnection conn,
int mask)
Subtype 0x0004 - Set the group permission mask. |
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 BOSHandler()
Method Detail |
public void reqRights(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 setGroupPerm(AIMSession sess, AIMConnection conn, int mask) throws java.io.IOException
This is normally set to 0x1f (allow all classes).
The group permission mask allows you to keep users of certain classes from being able to communicate with you. The mask is a bitwise OR of all of the classes that you wish to be able to communicate with you.
sess
- the oscar sessionconn
- the bos conenction for this sesionmask
- the permit/deny bitmask
java.io.IOException
- if an error occursAIMConstants
public void changeVisibility(AIMSession sess, AIMConnection conn, int changetype, java.lang.String list) throws java.io.IOException
Changes your visibility depending on change type:
Equivalents to options in WinAIM are:
AIM_VISIBILITYCHANGE_DENYADD
with only your name on itAIMConstants.AIM_VISIBILITYCHANGE_PERMITADD
with the
list the same as
your buddy listAIM_VISIBILITYCHANGE_PERMITADD
with everyone listed that you want to see youAIM_VISIBILITYCHANGE_PERMITADD
with only yourself in the listAIM_VISIBILITYCHANGE_DENYADD
with
the list of users to be blocked
sess
- the oscar sessionconn
- the bos connection for this sessionchangetype
- the change typelist
- the list, which contains the name of each buddy you wish to
permit/deny separated by an "&" character
java.io.IOException
- if an error occursAIMConstants
public 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 |