Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public interface AdHocChatRoomMessageListener
extends EventListener

A listener that registers for AdHocChatRoomMessageEvents issued by a particular AdHocChatRoom.

Author:
Valentin Martinet

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

Method Detail

messageReceived

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

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

messageDelivered

void messageDelivered(AdHocChatRoomMessageDeliveredEvent 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 AdHocChatRoomMessageDeliveredEvent containing the id of the message that has caused the event.

messageDeliveryFailed

void messageDeliveryFailed(AdHocChatRoomMessageDeliveryFailedEvent 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 AdHocChatroomMessageDeliveryFailedEvent 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.