Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Interface ChatRoomMessageListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
ChatAlerterActivator, ConferenceChatManager, HistoryWindow, MessageHistoryServiceImpl, NotificationManager

public interface ChatRoomMessageListener
extends EventListener

A listener that registers for ChatRoomMessageEvents issued by a particular ChatRoom.

Author:
Emil Ivov

Method Summary
 void messageDelivered(ChatRoomMessageDeliveredEvent evt)
          Called when the underlying implementation has received an indication that a message, sent earlier has been successfully received by the destination.
 void messageDeliveryFailed(ChatRoomMessageDeliveryFailedEvent evt)
          Called to indicate that delivery of a message sent earlier to the chat room has failed.
 void messageReceived(ChatRoomMessageReceivedEvent evt)
          Called when a new incoming Message has been received.
 

Method Detail

messageReceived

void messageReceived(ChatRoomMessageReceivedEvent evt)
Called when a new incoming Message has been received.

Parameters:
evt - the ChatRoomMessageReceivedEvent containing the newly received message, its sender and other details.

messageDelivered

void messageDelivered(ChatRoomMessageDeliveredEvent evt)
Called when the underlying implementation has received an indication that a message, sent earlier has been successfully received by the destination.

Parameters:
evt - the ChatRoomMessageDeliveredEvent containing the id of the message that has caused the event.

messageDeliveryFailed

void messageDeliveryFailed(ChatRoomMessageDeliveryFailedEvent evt)
Called to indicate that delivery of a message sent earlier to the chat room has failed. Reason code and phrase are contained by the MessageFailedEvent

Parameters:
evt - the ChatroomMessageDeliveryFailedEvent containing the ID of the message whose delivery has failed.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.