Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public interface MessageListener
extends EventListener

A listener that would gather events notifying of message delivery status. Message received

Author:
Emil Ivov

Method Summary
 void messageDelivered(MessageDeliveredEvent evt)
          Called when the underlying implementation has received an indication that a message, sent earlier has been successfully received by the destination.
 void messageDeliveryFailed(MessageDeliveryFailedEvent evt)
          Called to indicated that delivery of a message sent earlier has failed.
 void messageReceived(MessageReceivedEvent evt)
          Called when a new incoming Message has been received.
 

Method Detail

messageReceived

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

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

messageDelivered

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

messageDeliveryFailed

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

Parameters:
evt - the MessageFailedEvent 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.