Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.contactlist.notifsource
Class NotificationContactSource

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.contactlist.notifsource.NotificationContactSource
All Implemented Interfaces:
MessageWaitingListener

public class NotificationContactSource
extends Object
implements MessageWaitingListener

The NotificationContactSource represents a contact source that would listen for message waiting notifications and would display them in the history view of the contact list.

Author:
Yana Stamcheva

Constructor Summary
NotificationContactSource()
           
 
Method Summary
 Iterator<? extends UIGroup> getNotificationGroups()
          Returns an Iterator over a list of all notification groups contained in this source.
 Iterator<? extends UIContact> getNotifications(UIGroup group)
          Returns an Iterator over a list of all notification contacts contained in the given group.
 void messageWaitingNotify(MessageWaitingEvent evt)
          Adds the received waiting message to the corresponding group and contact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationContactSource

public NotificationContactSource()
Method Detail

messageWaitingNotify

public void messageWaitingNotify(MessageWaitingEvent evt)
Adds the received waiting message to the corresponding group and contact. Also adds it the UINotificationManager that would take care of notifying the user.

Specified by:
messageWaitingNotify in interface MessageWaitingListener
Parameters:
evt - the notification event.

getNotificationGroups

public Iterator<? extends UIGroup> getNotificationGroups()
Returns an Iterator over a list of all notification groups contained in this source.

Returns:
an Iterator over a list of all notification groups contained in this source

getNotifications

public Iterator<? extends UIContact> getNotifications(UIGroup group)
Returns an Iterator over a list of all notification contacts contained in the given group.

Parameters:
group - the group, which notification contacts we're looking for
Returns:
an Iterator over a list of all notification contacts contained in the given group

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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