2003-04-13 06:51:37 +02:00
|
|
|
/**
|
|
|
|
* $RCSfile$
|
|
|
|
* $Revision$
|
|
|
|
* $Date$
|
|
|
|
*
|
2004-11-03 00:53:30 +01:00
|
|
|
* Copyright 2003-2004 Jive Software.
|
2003-04-13 06:51:37 +02:00
|
|
|
*
|
2004-11-03 00:53:30 +01:00
|
|
|
* All rights reserved. Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2003-04-13 06:51:37 +02:00
|
|
|
*
|
2004-11-03 00:53:30 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2003-04-13 06:51:37 +02:00
|
|
|
*
|
2004-11-03 00:53:30 +01:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
2003-04-13 06:51:37 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
package org.jivesoftware.smack;
|
|
|
|
|
2005-11-04 19:31:21 +01:00
|
|
|
import java.util.Collection;
|
|
|
|
|
2003-04-13 06:51:37 +02:00
|
|
|
/**
|
2003-08-21 05:30:25 +02:00
|
|
|
* A listener that is fired any time a roster is changed or the presence of
|
|
|
|
* a user in the roster is changed.
|
2006-05-30 23:53:50 +02:00
|
|
|
*
|
|
|
|
* @see Roster#addRosterListener(RosterListener)
|
2003-04-13 06:51:37 +02:00
|
|
|
* @author Matt Tucker
|
|
|
|
*/
|
|
|
|
public interface RosterListener {
|
|
|
|
|
|
|
|
/**
|
2005-11-04 19:31:21 +01:00
|
|
|
* Called when roster entries are added.
|
|
|
|
*
|
|
|
|
* @param addresses the XMPP addresses of the contacts that have been added to the roster.
|
|
|
|
*/
|
|
|
|
public void entriesAdded(Collection addresses);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when a roster entries are updated.
|
|
|
|
*
|
|
|
|
* @param addresses the XMPP addresses of the contacts whose entries have been updated.
|
|
|
|
*/
|
|
|
|
public void entriesUpdated(Collection addresses);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when a roster entries are removed.
|
|
|
|
*
|
|
|
|
* @param addresses the XMPP addresses of the contacts that have been removed from the roster.
|
2003-04-13 06:51:37 +02:00
|
|
|
*/
|
2005-11-04 19:31:21 +01:00
|
|
|
public void entriesDeleted(Collection addresses);
|
2003-04-13 06:51:37 +02:00
|
|
|
|
2003-08-21 05:30:25 +02:00
|
|
|
/**
|
|
|
|
* Called when the presence of a roster entry is changed.
|
|
|
|
*
|
2004-11-05 18:43:46 +01:00
|
|
|
* @param XMPPAddress the XMPP address of the user who's presence has changed,
|
|
|
|
* including the resource.
|
2003-08-21 05:30:25 +02:00
|
|
|
*/
|
|
|
|
public void presenceChanged(String XMPPAddress);
|
2003-04-13 06:51:37 +02:00
|
|
|
}
|
|
|
|
|