|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.walluck.oscar.handlers.SNACHandler
org.walluck.oscar.handlers.ICQHandler
public class ICQHandler
Family 0x0015 - Encapsulated ICQ.
SNACHandler| Constructor Summary | |
|---|---|
ICQHandler()
Family 0x0015. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.walluck.oscar.handlers.SNACHandler |
|---|
getFamily, getVersion, setFamily, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ICQHandler()
| Method Detail |
|---|
public void reqOfflineMsgs(AIMSession sess)
throws IOException
sess - the oscar session
IOException - if an error occurs
public void ackOfflineMsgs(AIMSession sess)
throws IOException
sess - the oscar session
IOException - if an error occurs
public void metaSetGeneral(AIMSession sess,
ICQMetaGeneral user)
throws IOException
sess - the oscar sessionuser - the general information
IOException - if an error occurs
public void metaSetMore(AIMSession sess,
ICQMetaMore user)
throws IOException
sess - the oscar sessionuser - more information
IOException - if an error occurs
public void metaSetAbout(AIMSession sess,
String about)
throws IOException
sess - the oscar sessionabout - the about information
IOException - if an error occurs
public 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 descriptions
IOException - if an error occurs
public 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 kind
IOException - if an error occurs
public void metaSetPassword(AIMSession sess,
String newPassword)
throws IOException
sess - the oscar sessionnewPassword - the new password
IOException - if an error occurs
public void metaReqBasicInfo(AIMSession sess,
int uin)
throws IOException
sess - the oscar sessionuin - the UIN to request information for
IOException - if an error occurs
public void metaReqUnkInfo(AIMSession sess,
int uin)
throws IOException
sess - the oscar sessionuin - the UIN to request information for
IOException - if an error occurs
public void metaReqInfo(AIMSession sess,
int uin)
throws IOException
sess - the oscar sessionuin - the UIN to request information for
IOException - if an error occurs
public void metaSearchWP(AIMSession sess,
ICQMetaWP wp)
throws IOException
sess - the oscar sessionwp - the white page information
IOException - if an error occurs
public 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 email
IOException - if an error occurs
public void searchByUIN(AIMSession sess,
int uin)
throws IOException
sess - the oscar sessionuin - the UIN to search for
IOException - if an error occurs
public void searchByMail(AIMSession sess,
String email)
throws IOException
sess - the oscar sessionemail - the email to search for
IOException - if an error occurs
public void searchRandom(AIMSession sess,
int group)
throws IOException
sess - the oscar sessiongroup - the chat group
IOException - if an error occurs
public void setRandom(AIMSession sess,
int group)
throws IOException
sess - the oscar sessiongroup - the chat group
IOException - if an error occurs
public void metaSomething(AIMSession sess)
throws IOException
sess - the oscar session
IOException - if an error occurs
public void reqXML(AIMSession sess)
throws IOException
sess - the oscar session
IOException - if an error occurs
public void identifyClient(AIMSession sess)
throws IOException
sess - the oscar session
IOException - if an error occurs
public 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 message
IOException - if an error occurs
public void handleSNAC(AIMSession sess,
SNACHandler handler,
AIMFrame frame,
SNAC snac,
AIMInputStream buffer)
throws IOException
handleSNAC in class SNACHandlersess - the oscar sessionhandler - the handlerframe - the incoming framesnac - the incoming SNACbuffer - the incoming buffer
IOException - if an error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||