| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smackx.ChatStateManager
public class ChatStateManager
Handles chat state for all chats on a particular Connection. This class manages both the
 packet extensions and the disco response neccesary for compliance with
 XEP-0085.
 NOTE: getInstance(org.jivesoftware.smack.Connection)
 needs to be called in order for the listeners to be registered appropriately with the connection.
 If this does not occur you will not receive the update notifications.
ChatState, 
ChatStateExtension| Method Summary | |
|---|---|
|  boolean | equals(Object o) | 
| static ChatStateManager | getInstance(Connection connection)Returns the ChatStateManager related to the Connection and it will create one if it does not yet exist. | 
|  int | hashCode() | 
|  void | setCurrentState(ChatState newState,
                Chat chat)Sets the current state of the provided chat. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static ChatStateManager getInstance(Connection connection)
connection - the connection to return the ChatStateManager
public void setCurrentState(ChatState newState,
                            Chat chat)
                     throws XMPPException
PacketExtension, if
 and only if the new chat state is different than the last state.
newState - the new state of the chatchat - the chat.
XMPPException - when there is an error sending the message
          packet.public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||