|
|||||||||
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 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 IconListener
sess
- 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 IconListener
sess
- an AIMSession
valueframe
- an AIMFrame
valuecksum
- a byte[]
valuepublic void rateResp(AIMSession sess, AIMFrame frame)
rateResp
method here.
rateResp
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valuepublic void redirect(AIMSession sess, AIMFrame frame, Redir redir)
redirect
method here.
redirect
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valueredir
- a Redir
valuepublic void rateChange(AIMSession sess, AIMFrame frame, int code, RateClass rc)
ServiceListener
rateChange
method here.
rateChange
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valuecode
- an int
valuerc
- a RateClass
valuepublic void serverPause(AIMSession sess, AIMFrame frame)
ServiceListener
serverPause
method here.
serverPause
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valuepublic void serverResume(AIMSession sess, AIMFrame frame)
ServiceListener
serverResume
method here.
serverResume
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valuepublic void selfInfo(AIMSession sess, AIMFrame frame, UserInfo userinfo)
ServiceListener
selfInfo
method here.
selfInfo
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valueuserinfo
- an UserInfo
valuepublic void evilNotify(AIMSession sess, AIMFrame frame, int newEvil, UserInfo userinfo)
ServiceListener
evilNotify
method here.
evilNotify
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valuenewEvil
- an int
valueuserinfo
- an UserInfo
valuepublic void migrate(AIMSession sess, AIMFrame frame, String ip, byte[] cookie)
ServiceListener
migrate
method here.
migrate
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valueip
- a String
valuecookie
- a byte[]
valuepublic void motd(AIMSession sess, AIMFrame frame, int id, String msg)
ServiceListener
motd
method here.
motd
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valueid
- an int
valuemsg
- a String
valuepublic void memRequest(AIMSession sess, AIMFrame frame, int offset, int len, String modname)
ServiceListener
memRequest
method here.
memRequest
in interface ServiceListener
sess
- an AIMSession
valueframe
- an AIMFrame
valueoffset
- an int
valuelen
- an int
valuemodname
- a String
valuepublic void shutdown(AIMSession sess)
shutdown
in class Tool
sess
- 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 |