|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.walluck.oscar.tools.Tool
org.walluck.oscar.tools.IconTool
public class IconTool
Icon tool.
TODO: Find a better place to store icons!
| Field Summary |
|---|
| Fields inherited from class org.walluck.oscar.tools.Tool |
|---|
listeners |
| Constructor Summary | |
|---|---|
IconTool()
Creates a new Icon tool. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.walluck.oscar.tools.Tool |
|---|
getFamily, getId, getSession, getToolData, getVersion, setFamily, setId, setSession, setToolData, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IconTool()
| Method Detail |
|---|
public boolean checkIcon(String sn,
int iconcsum)
sn - the screennameiconcsum - the icon checksum
public boolean checkIcon(String sn,
byte[] iconcsum)
sn - the screennameiconcsum - the icon checksum
public void writeIcon(String sn,
byte[] icon)
sn - the screennameicon - the icon data
public 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 session
public 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[] value
public void uploadAck(AIMSession sess,
AIMFrame frame,
byte[] cksum)
uploadAck method here.
uploadAck in interface IconListenersess - an AIMSession valueframe - an AIMFrame valuecksum - a byte[] value
public void rateResp(AIMSession sess,
AIMFrame frame)
rateResp method here.
rateResp in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame value
public void redirect(AIMSession sess,
AIMFrame frame,
Redir redir)
redirect method here.
redirect in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valueredir - a Redir value
public 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 value
public void serverPause(AIMSession sess,
AIMFrame frame)
ServiceListenerserverPause method here.
serverPause in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame value
public void serverResume(AIMSession sess,
AIMFrame frame)
ServiceListenerserverResume method here.
serverResume in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame value
public void selfInfo(AIMSession sess,
AIMFrame frame,
UserInfo userinfo)
ServiceListenerselfInfo method here.
selfInfo in interface ServiceListenersess - an AIMSession valueframe - an AIMFrame valueuserinfo - an UserInfo value
public 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 value
public 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[] value
public 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 value
public 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)
shutdown in class Toolsess - the oscar sessionpublic void bosConnectionAvailable()
bosConnectionAvailable in class Tool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||