Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.net.xmpp.roster.RosterTracker Class Reference

List of all members.

Public Member Functions

 RosterTracker (XMPPConnectionService connectionService)
void addRosterListener (IRosterListener rosterListener)
void removeRosterListener (IRosterListener rosterListener)
Roster getRoster ()
List< Presence > getPresences (JID from)
List< JIDgetAvailablePresences (JID from)

Detailed Description

The RosterTracker is responsible for offering a convenient access for receiving roster listener changes, if one is not interested in tracking whether the connection is changed.


Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.net.xmpp.roster.RosterTracker.RosterTracker ( XMPPConnectionService  connectionService)

Member Function Documentation

void de.fu_berlin.inf.dpp.net.xmpp.roster.RosterTracker.addRosterListener ( IRosterListener  rosterListener)

Adds a listener to this roster. The listener will be fired anytime one or more changes to the roster are pushed from the server.

Parameters:
rosterListenera roster listener.
List<JID> de.fu_berlin.inf.dpp.net.xmpp.roster.RosterTracker.getAvailablePresences ( JID  from)

Returns the RQ-JIDs of all presences of the given (plain) JID which are available.

An empty list is returned if no presence for the given JID is online.

List<Presence> de.fu_berlin.inf.dpp.net.xmpp.roster.RosterTracker.getPresences ( JID  from)

Returns all currently known online presences associated with a JID or an unavailable presence if the user is not online or an empty list if no roster is available.

Roster de.fu_berlin.inf.dpp.net.xmpp.roster.RosterTracker.getRoster ( )

Returns the roster that this tracker is currently using.

Returns:
the current roster or null if no roster is available
void de.fu_berlin.inf.dpp.net.xmpp.roster.RosterTracker.removeRosterListener ( IRosterListener  rosterListener)

Removes a listener from this roster. The listener will be fired anytime one or more changes to the roster are pushed from the server.

Parameters:
rosterListenera roster listener.
 All Classes Namespaces Files Functions Variables Enumerations