From d0ce3d56870c626e604e9f212f940a9423976af6 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Thu, 21 Aug 2003 03:30:25 +0000 Subject: [PATCH] Added method to allow tracking presence updates in the roster. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2053 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/RosterListener.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source/org/jivesoftware/smack/RosterListener.java b/source/org/jivesoftware/smack/RosterListener.java index 16e21297d..24d960486 100644 --- a/source/org/jivesoftware/smack/RosterListener.java +++ b/source/org/jivesoftware/smack/RosterListener.java @@ -53,16 +53,23 @@ package org.jivesoftware.smack; /** - * A listener that is fired anytime a roster is changed. + * A listener that is fired any time a roster is changed or the presence of + * a user in the roster is changed. * * @author Matt Tucker */ public interface RosterListener { /** - * Called when the roster is modified. + * Called when a roster entry is added or removed. */ - public void rosterModified(); + public void rosterModified(); + /** + * Called when the presence of a roster entry is changed. + * + * @param XMPPAddress the XMPP address of the user who's presence has changed. + */ + public void presenceChanged(String XMPPAddress); }