|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.valhalla.jbother.jabber.smack.PresencePacketListener
This class listens to all presence packets, and delivers them according to their type, etc...
Constructor Summary | |
PresencePacketListener()
|
Method Summary | |
void |
performPresenceTasks(BuddyStatus buddy,
org.jivesoftware.smack.packet.Presence.Type type)
Performs presence tasks, like playing sounds when a buddy signs on or off or displaying that they have done so in their conversation window if it exists |
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
Called when a Presence packet is recieved |
void |
requestSubscription(java.lang.String userId)
If someone sends a subscription request packet, the user will be asked if they want to accept the request |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PresencePacketListener()
Method Detail |
public void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket
in interface org.jivesoftware.smack.PacketListener
public void performPresenceTasks(BuddyStatus buddy, org.jivesoftware.smack.packet.Presence.Type type)
buddy
- the buddy to processtype
- the presence typepublic void requestSubscription(java.lang.String userId)
userId
- the requesting user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |