Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.communication.chat.AbstractChatService Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.communication.chat.AbstractChatService:
de.fu_berlin.inf.dpp.communication.chat.IChatService de.fu_berlin.inf.dpp.communication.chat.muc.MultiUserChatService de.fu_berlin.inf.dpp.communication.chat.single.SingleUserChatService

List of all members.

Public Member Functions

void addChatServiceListener (IChatServiceListener chatServiceListener)
void removeChatServiceListener (IChatServiceListener chatServiceListener)
void notifyChatCreated (IChat chat, boolean createdLocally)
void notifyChatDestroyed (IChat chat)
void notifyChatAborted (IChat chat, XMPPException exception)

Detailed Description

Parent class for chat services. It provides convenience methods for notifying registered listeners.


Member Function Documentation

void de.fu_berlin.inf.dpp.communication.chat.AbstractChatService.addChatServiceListener ( IChatServiceListener  chatServiceListener)

Register chat service listener for events.

Parameters:
chatServiceListenerchat service listener to register for events

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

void de.fu_berlin.inf.dpp.communication.chat.AbstractChatService.notifyChatAborted ( IChat  chat,
XMPPException  exception 
)

Notify all IChatServiceListeners that an IChat has been aborted through errors in the XMPP/network layer.

Parameters:
chatthe IChat that has been aborted
exceptionXMPPException that has been thrown
void de.fu_berlin.inf.dpp.communication.chat.AbstractChatService.notifyChatCreated ( IChat  chat,
boolean  createdLocally 
)

Notify all IChatServiceListeners that an IChat has been created.

Parameters:
chatIChat which has been created
createdLocallytrue if the chat has been created by the local user, false if the chat has been created by some remote action
void de.fu_berlin.inf.dpp.communication.chat.AbstractChatService.notifyChatDestroyed ( IChat  chat)

Notify all IChatServiceListeners that an IChat has been destroyed.

Parameters:
chatIChat which has been destroyed
void de.fu_berlin.inf.dpp.communication.chat.AbstractChatService.removeChatServiceListener ( IChatServiceListener  chatServiceListener)

Unregister chat service listener from events.

Parameters:
chatServiceListenerchat service listener to unregister from events

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

 All Classes Namespaces Files Functions Variables Enumerations