2006-11-23 02:51:00 +01:00
|
|
|
/**
|
|
|
|
*
|
2007-02-12 01:59:05 +01:00
|
|
|
* Copyright 2003-2007 Jive Software.
|
2006-11-23 02:51:00 +01:00
|
|
|
*
|
2014-02-17 18:57:38 +01:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
2006-11-23 02:51:00 +01:00
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2014-02-15 11:35:08 +01:00
|
|
|
package org.jivesoftware.smackx.chatstates;
|
2006-11-23 02:51:00 +01:00
|
|
|
|
2015-01-22 13:53:50 +01:00
|
|
|
import org.jivesoftware.smack.chat.ChatMessageListener;
|
2016-01-23 13:55:09 +01:00
|
|
|
import org.jivesoftware.smack.packet.Message;
|
2006-11-23 02:51:00 +01:00
|
|
|
|
|
|
|
/**
|
2006-11-23 22:10:59 +01:00
|
|
|
* Events for when the state of a user in a chat changes.
|
2006-11-23 02:51:00 +01:00
|
|
|
*
|
2006-11-23 22:10:59 +01:00
|
|
|
* @author Alexander Wenckus
|
2006-11-23 02:51:00 +01:00
|
|
|
*/
|
2014-10-12 18:01:19 +02:00
|
|
|
public interface ChatStateListener extends ChatMessageListener {
|
2006-11-23 22:10:59 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Fired when the state of a chat with another user changes.
|
|
|
|
*
|
|
|
|
* @param chat the chat in which the state has changed.
|
|
|
|
* @param state the new state of the participant.
|
2016-04-16 00:25:09 +02:00
|
|
|
* @param message the message carrying the chat state.
|
2006-11-23 22:10:59 +01:00
|
|
|
*/
|
2017-01-11 19:35:55 +01:00
|
|
|
// TODO Migrate to new chat2 API on Smack 4.3.
|
|
|
|
@SuppressWarnings("deprecation")
|
|
|
|
void stateChanged(org.jivesoftware.smack.chat.Chat chat, ChatState state, Message message);
|
2006-11-23 02:51:00 +01:00
|
|
|
}
|