public class IconTool extends Tool implements IconListener, ServiceListener
| Constructor and Description |
|---|
IconTool()
Creates a new Icon tool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bosConnectionAvailable()
Method called by the LoginTool once the BOS connection is available.
|
boolean |
checkIcon(String sn,
byte[] iconcsum) |
boolean |
checkIcon(String sn,
int iconcsum) |
void |
evilNotify(AIMSession sess,
AIMFrame frame,
int newEvil,
UserInfo userinfo)
Describe
evilNotify method here. |
void |
getIcon(String nsn,
byte[] data)
Add an icon to the request queue.
|
void |
getIcons(AIMSession sess)
Get everyone's icon.
|
void |
memRequest(AIMSession sess,
AIMFrame frame,
int offset,
int len,
String modname)
Describe
memRequest method here. |
void |
migrate(AIMSession sess,
AIMFrame frame,
String ip,
byte[] cookie)
Describe
migrate method here. |
void |
motd(AIMSession sess,
AIMFrame frame,
int id,
String msg)
Describe
motd method here. |
void |
parseIcon(AIMSession sess,
AIMFrame frame,
String sn,
byte[] iconcsum,
byte[] icon)
Describe
parseIcon method here. |
void |
rateChange(AIMSession sess,
AIMFrame frame,
int code,
RateClass rc)
Describe
rateChange method here. |
void |
rateResp(AIMSession sess,
AIMFrame frame)
Describe
rateResp method here. |
void |
redirect(AIMSession sess,
AIMFrame frame,
Redir redir)
Describe
redirect method here. |
void |
selfInfo(AIMSession sess,
AIMFrame frame,
UserInfo userinfo)
Describe
selfInfo method here. |
void |
serverPause(AIMSession sess,
AIMFrame frame)
Describe
serverPause method here. |
void |
serverResume(AIMSession sess,
AIMFrame frame)
Describe
serverResume method here. |
void |
shutdown(AIMSession sess)
Called when the tool is shutting down.
|
void |
uploadAck(AIMSession sess,
AIMFrame frame,
byte[] cksum)
Describe
uploadAck method here. |
void |
writeIcon(String sn,
byte[] icon)
Write an icon to a file.
|
getFamily, getId, getSession, getToolData, getVersion, setFamily, setId, setSession, setToolData, setVersionpublic boolean checkIcon(String sn, int iconcsum)
sn - the screennameiconcsum - the icon checksumpublic boolean checkIcon(String sn, byte[] iconcsum)
sn - the screennameiconcsum - the icon checksumpublic void writeIcon(String sn, byte[] icon)
sn - the screennameicon - the icon datapublic void getIcon(String nsn, byte[] data)
nsn - Normalized buddy name.data - Cookie data needed to get the iconpublic void getIcons(AIMSession sess)
sess - the oscar sessionpublic void parseIcon(AIMSession sess, AIMFrame frame, String sn, byte[] iconcsum, byte[] icon)
parseIcon method here.parseIcon in interface IconListenersess - an AIMSession valueframe - an AIMFrame valuesn - a String valueiconcsum - a byte[] valueicon - a byte[] valuepublic void uploadAck(AIMSession sess, AIMFrame frame, byte[] cksum)
uploadAck method here.uploadAck in interface IconListenersess - an AIMSession valueframe - an AIMFrame valuecksum - a byte[] valuepublic void rateResp(AIMSession sess, AIMFrame frame)
rateResp method here.rateResp in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valuepublic void redirect(AIMSession sess, AIMFrame frame, Redir redir)
redirect method here.redirect in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valueredir - a Redir valuepublic void rateChange(AIMSession sess, AIMFrame frame, int code, RateClass rc)
ServiceListenerrateChange method here.rateChange in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valuecode - an int valuerc - a RateClass valuepublic void serverPause(AIMSession sess, AIMFrame frame)
ServiceListenerserverPause method here.serverPause in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valuepublic void serverResume(AIMSession sess, AIMFrame frame)
ServiceListenerserverResume method here.serverResume in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valuepublic void selfInfo(AIMSession sess, AIMFrame frame, UserInfo userinfo)
ServiceListenerselfInfo method here.selfInfo in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valueuserinfo - an UserInfo valuepublic void evilNotify(AIMSession sess, AIMFrame frame, int newEvil, UserInfo userinfo)
ServiceListenerevilNotify method here.evilNotify in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valuenewEvil - an int valueuserinfo - an UserInfo valuepublic void migrate(AIMSession sess, AIMFrame frame, String ip, byte[] cookie)
ServiceListenermigrate method here.migrate in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valueip - a String valuecookie - a byte[] valuepublic void motd(AIMSession sess, AIMFrame frame, int id, String msg)
ServiceListenermotd method here.motd in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valueid - an int valuemsg - a String valuepublic void memRequest(AIMSession sess, AIMFrame frame, int offset, int len, String modname)
ServiceListenermemRequest method here.memRequest in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valueoffset - an int valuelen - an int valuemodname - a String valuepublic void shutdown(AIMSession sess)
public void bosConnectionAvailable()
bosConnectionAvailable in class Tool