public class BOSHandler extends SNACHandler
THe functionality of this family has been replaced by SSI.
SNACHandler
Constructor and Description |
---|
BOSHandler()
Family 0x0009
|
Modifier and Type | Method and Description |
---|---|
void |
changeVisibility(AIMSession sess,
AIMConnection conn,
int changetype,
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.
|
getFamily, getVersion, setFamily, setVersion
public void reqRights(AIMSession sess, AIMConnection conn) throws IOException
sess
- the oscar sessionconn
- the bos connection for this sessionIOException
- if an error occurspublic void setGroupPerm(AIMSession sess, AIMConnection conn, int mask) throws 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 bitmaskIOException
- if an error occursAIMConstants
public void changeVisibility(AIMSession sess, AIMConnection conn, int changetype, String list) throws 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 blockedsess
- 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 "&" characterIOException
- if an error occursAIMConstants
public void handleSNAC(AIMSession sess, SNACHandler handler, AIMFrame frame, SNAC snac, AIMInputStream buffer) throws IOException
handleSNAC
in class SNACHandler
sess
- the oscar sessionhandler
- the handlerframe
- the incoming framesnac
- the incoming SNACbuffer
- the incoming bufferIOException
- if an error occurs