Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.communication.chat.AbstractChat Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.communication.chat.AbstractChat:
de.fu_berlin.inf.dpp.communication.chat.IChat de.fu_berlin.inf.dpp.communication.chat.muc.MultiUserChat de.fu_berlin.inf.dpp.communication.chat.single.SingleUserChat

List of all members.

Public Member Functions

void addHistoryEntry (ChatElement entry)
List< ChatElementgetHistory ()
void clearHistory ()
void addChatListener (IChatListener chatListener)
void removeChatListener (IChatListener chatListener)
void notifyJIDConnected (JID jid)
void notifyJIDDisconnected (JID jid)
void notifyJIDMessageReceived (JID sender, String message)
void notifyJIDStateChanged (JID jid, ChatState state)

Detailed Description

Abstract chat class that implements history management and provides basic functionality for adding and removing IChatListeners.


Member Function Documentation

void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.addChatListener ( IChatListener  chatListener)

Add chat listener to receive notifications on events.

Parameters:
chatListenerchat listener to add

Implements de.fu_berlin.inf.dpp.communication.chat.IChat.

void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.addHistoryEntry ( ChatElement  entry)

Add ChatElement to this chat's history.

Parameters:
entrychat element to add

Implements de.fu_berlin.inf.dpp.communication.chat.IChat.

void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.clearHistory ( )

Clears the current chat history.

Implements de.fu_berlin.inf.dpp.communication.chat.IChat.

List<ChatElement> de.fu_berlin.inf.dpp.communication.chat.AbstractChat.getHistory ( )

Returns the chat history for this chat.

Returns:
the chat history for this chat

Implements de.fu_berlin.inf.dpp.communication.chat.IChat.

void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.notifyJIDConnected ( JID  jid)

Notify all IChatListeners about a connected JID.

void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.notifyJIDDisconnected ( JID  jid)

Notify all IChatListeners about a disconnected JID.

void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.notifyJIDMessageReceived ( JID  sender,
String  message 
)

Notify all IChatListeners about a received message

void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.notifyJIDStateChanged ( JID  jid,
ChatState  state 
)

Notify all IChatListeners about a changed ChatState

void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.removeChatListener ( IChatListener  chatListener)

Remove chat listener so it will not receive notifications on events.

Parameters:
chatListener

Implements de.fu_berlin.inf.dpp.communication.chat.IChat.

 All Classes Namespaces Files Functions Variables Enumerations