public class ICQHandler extends SNACHandler
SNACHandler
Constructor and Description |
---|
ICQHandler()
Family 0x0015.
|
Modifier and Type | Method and Description |
---|---|
void |
ackOfflineMsgs(AIMSession sess)
Ack offline messages.
|
void |
handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
Handles incoming SNAC's.
|
void |
identifyClient(AIMSession sess)
Identify this client to the server.
|
void |
metaReqBasicInfo(AIMSession sess,
int uin)
Request basic user information.
|
void |
metaReqInfo(AIMSession sess,
int uin)
Request user information.
|
void |
metaReqUnkInfo(AIMSession sess,
int uin)
Request unk user information.
|
void |
metaSearchWP(AIMSession sess,
ICQMetaWP wp)
Search the white pages.
|
void |
metaSetAbout(AIMSession sess,
String about)
Set the about information.
|
void |
metaSetGeneral(AIMSession sess,
ICQMetaGeneral user)
Set general information.
|
void |
metaSetMore(AIMSession sess,
ICQMetaMore user)
Set more information.
|
void |
metaSetOrg(AIMSession sess,
byte orgCount,
ArrayList orgAreas,
ArrayList orgDescriptions,
byte affiliationCount,
ArrayList affiliationAreas,
ArrayList affiliationDescriptions)
Set your organization information.
|
void |
metaSetPassword(AIMSession sess,
String newPassword)
Set the password.
|
void |
metaSetSecurity(AIMSession sess,
byte auth,
byte webAware,
byte direct,
byte kind)
Set your security information.
|
void |
metaSomething(AIMSession sess)
Dunno.
|
void |
reqOfflineMsgs(AIMSession sess)
Request offline messages.
|
void |
reqXML(AIMSession sess)
Request XML information.
|
void |
searchByMail(AIMSession sess,
String email)
Search for a user by email.
|
void |
searchByPersInf(AIMSession sess,
String name,
String surname,
String nick,
String email)
Search for a user by personal information.
|
void |
searchByUIN(AIMSession sess,
int uin)
Search for a user by UIN.
|
void |
searchRandom(AIMSession sess,
int group)
Search for a random user to chat with.
|
void |
sendSMS(AIMSession sess,
ICQSMSMessage sms)
Send an SMS (Short Message Service) message.
|
void |
setRandom(AIMSession sess,
int group)
Set your random chat information.
|
getFamily, getVersion, setFamily, setVersion
public void reqOfflineMsgs(AIMSession sess) throws IOException
sess
- the oscar sessionIOException
- if an error occurspublic void ackOfflineMsgs(AIMSession sess) throws IOException
sess
- the oscar sessionIOException
- if an error occurspublic void metaSetGeneral(AIMSession sess, ICQMetaGeneral user) throws IOException
sess
- the oscar sessionuser
- the general informationIOException
- if an error occurspublic void metaSetMore(AIMSession sess, ICQMetaMore user) throws IOException
sess
- the oscar sessionuser
- more informationIOException
- if an error occurspublic void metaSetAbout(AIMSession sess, String about) throws IOException
sess
- the oscar sessionabout
- the about informationIOException
- if an error occurspublic void metaSetOrg(AIMSession sess, byte orgCount, ArrayList orgAreas, ArrayList orgDescriptions, byte affiliationCount, ArrayList affiliationAreas, ArrayList affiliationDescriptions) throws IOException
sess
- the oscar sessionorgCount
- the org countorgAreas
- the org areasorgDescriptions
- the org descriptionsaffiliationCount
- the affiliation countaffiliationAreas
- the affiliation areasaffiliationDescriptions
- the affiliation descriptionsIOException
- if an error occurspublic void metaSetSecurity(AIMSession sess, byte auth, byte webAware, byte direct, byte kind) throws IOException
sess
- the oscar sessionauth
- whether or not you require authorizationwebAware
- whether or not others can see your prescence on the webdirect
- direct connections with any user, only contact list, or
only authorizedkind
- user kindIOException
- if an error occurspublic void metaSetPassword(AIMSession sess, String newPassword) throws IOException
sess
- the oscar sessionnewPassword
- the new passwordIOException
- if an error occurspublic void metaReqBasicInfo(AIMSession sess, int uin) throws IOException
sess
- the oscar sessionuin
- the UIN to request information forIOException
- if an error occurspublic void metaReqUnkInfo(AIMSession sess, int uin) throws IOException
sess
- the oscar sessionuin
- the UIN to request information forIOException
- if an error occurspublic void metaReqInfo(AIMSession sess, int uin) throws IOException
sess
- the oscar sessionuin
- the UIN to request information forIOException
- if an error occurspublic void metaSearchWP(AIMSession sess, ICQMetaWP wp) throws IOException
sess
- the oscar sessionwp
- the white page informationIOException
- if an error occurspublic void searchByPersInf(AIMSession sess, String name, String surname, String nick, String email) throws IOException
sess
- the oscar sessionname
- the user's namesurname
- the user's last namenick
- the user's nickemail
- the user's emailIOException
- if an error occurspublic void searchByUIN(AIMSession sess, int uin) throws IOException
sess
- the oscar sessionuin
- the UIN to search forIOException
- if an error occurspublic void searchByMail(AIMSession sess, String email) throws IOException
sess
- the oscar sessionemail
- the email to search forIOException
- if an error occurspublic void searchRandom(AIMSession sess, int group) throws IOException
sess
- the oscar sessiongroup
- the chat groupIOException
- if an error occurspublic void setRandom(AIMSession sess, int group) throws IOException
sess
- the oscar sessiongroup
- the chat groupIOException
- if an error occurspublic void metaSomething(AIMSession sess) throws IOException
sess
- the oscar sessionIOException
- if an error occurspublic void reqXML(AIMSession sess) throws IOException
sess
- the oscar sessionIOException
- if an error occurspublic void identifyClient(AIMSession sess) throws IOException
sess
- the oscar sessionIOException
- if an error occurspublic void sendSMS(AIMSession sess, ICQSMSMessage sms) throws IOException
Currently this seems to really make my life difficult for making ICQ packets. I need to switch to a TLVChain model.
TLV(0x0001, 0x0016, 0x00000000000000000000000000000000)sess
- the oscar sessionsms
- the SMS messageIOException
- if an error occurspublic 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