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;
|
|
|
|
|
|
|
|
/**
|
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.
|
2003-04-13 06:51:37 +02:00
|
|
|
*
|
|
|
|
* @author Matt Tucker
|
|
|
|
*/
|
|
|
|
public interface RosterListener {
|
|
|
|
|
|
|
|
/**
|
2003-08-21 05:30:25 +02:00
|
|
|
* Called when a roster entry is added or removed.
|
2003-04-13 06:51:37 +02:00
|
|
|
*/
|
2003-08-21 05:30:25 +02:00
|
|
|
public void rosterModified();
|
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
|
|
|
}
|
|
|
|
|