|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object core.EventNotifier core.PresenceManager
This class is responsible for updating presence information to the application.
Constructor Summary | |
PresenceManager(ContactList contactList,
Contact me)
|
Method Summary | |
boolean |
accept(Contact contact)
Accepts a subscription request contact the Contact. |
void |
block(Contact contact)
|
boolean |
deny(Contact contact)
Denies a subscription request contact the Contact. |
void |
finalPresence()
Sends UNAVAILABLE presence to all subscribed contacts. |
void |
incomingPresence(PresenceMessage presence)
|
void |
initialPresence()
Sends presence probes and availability to properly subscribed contacts. |
void |
remove(Contact contact)
|
void |
run()
|
void |
start()
|
void |
stop()
|
boolean |
subscribe(Contact from)
Sends a subscription request to the Contact specified. |
Methods inherited from class core.EventNotifier |
addListener, removeListener |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PresenceManager(ContactList contactList, Contact me)
contactList
- the user's contactlist.me
- the user's contact informationMethod Detail |
public void initialPresence()
public void finalPresence()
public boolean subscribe(Contact from)
from
- The contact to subscribe to.
public boolean accept(Contact contact)
contact
- the contact whose subscription request it was
public boolean deny(Contact contact)
contact
- the contact whose subscription request it was
public void remove(Contact contact)
public void block(Contact contact)
public void incomingPresence(PresenceMessage presence)
public void start()
public void stop()
public void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |