|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XmppListener
Interface class to implement events
Method Summary | |
---|---|
void |
onAuth()
This event occurs when the login/authentication process succeeds. |
void |
onAuthFailed(java.lang.String message)
This event occurs when the login/authentication process fails. |
void |
onConnFailed()
This event is sent when a parser or connection error occurs. |
void |
onContactEvent(java.lang.String jid,
java.lang.String name,
java.lang.String group,
java.lang.String subscription)
This event occurs for each contact in roster when the roster is queried. |
void |
onContactRemoveEvent(java.lang.String jid)
This event occurs when someone has removed you from his roster (o rly?) |
void |
onMessageEvent(java.lang.String from,
java.lang.String body)
This event is sent when a message arrives. |
void |
onStatusEvent(java.lang.String jid,
java.lang.String show,
java.lang.String status)
This event occurs when a presence message comes from jabber server. |
void |
onSubscribeEvent(java.lang.String jid)
This event is sent when a subscription request arrives. |
void |
onThinkEvent(java.lang.String thinktype,
java.lang.String from,
java.lang.String pic,
java.lang.String thinkword,
java.lang.String word1,
java.lang.String word2,
java.lang.String word3)
This method handles messages exclusivly for ThinkAlike, the parametes can be null based on what type of thinktype message is sent. |
void |
onUnsubscribeEvent(java.lang.String jid)
This event is sent when a subscription remove event arrives. |
Method Detail |
---|
void onConnFailed()
void onAuth()
void onAuthFailed(java.lang.String message)
message
- some error informationvoid onMessageEvent(java.lang.String from, java.lang.String body)
from
- the jid of the senderbody
- the message textvoid onContactRemoveEvent(java.lang.String jid)
jid
- the jid of the removervoid onContactEvent(java.lang.String jid, java.lang.String name, java.lang.String group, java.lang.String subscription)
jid
- the jid of the contactname
- the nickname of the contactgroup
- the group in which the contact is savedsubscription
- the subscription status of the contactvoid onStatusEvent(java.lang.String jid, java.lang.String show, java.lang.String status)
This event occurs when a presence message comes from jabber server. This can also be your own jid. The presence can be one of the following:
blank
: user is onlineAn offline user will send no status message at all.
show
- .jid
- the JID of the contact that changed his statusstatus
- the display statusvoid onSubscribeEvent(java.lang.String jid)
jid
- the jid of the one who wants to subscribe to youvoid onUnsubscribeEvent(java.lang.String jid)
jid
- the jid of the one who removes your subscriptionvoid onThinkEvent(java.lang.String thinktype, java.lang.String from, java.lang.String pic, java.lang.String thinkword, java.lang.String word1, java.lang.String word2, java.lang.String word3)
thinktype
- this described what type of message it is, to be handled by a swich methodfrom
- the sender of the thinktype messagepic
- the picture to be sent with the request, needs to be Base64 coded or somethingthinkword
- the acutal word that is assosiated with the pic from the requesterword1
- first suggested wordword2
- second suggested wordword3
- third suggested word
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |