Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main
Class UINotificationManager

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.UINotificationManager

public class UINotificationManager
extends Object

The UINotificationManager manages all notifications dedicated to be shown in the main application window. These could be missed calls, voice messages, etc.

Author:
Yana Stamcheva

Constructor Summary
UINotificationManager()
           
 
Method Summary
static void addNotification(UINotification notification)
          Adds the given notification to the list of unread notifications and notifies interested listeners.
static void addNotificationListener(UINotificationListener l)
          Adds the given UINotificationListener to the list of listeners that would be notified on any changes in missed calls count.
static Collection<UINotificationGroup> getNotificationGroups()
          Returns a list of all notification groups.
static Iterator<UINotification> getUnreadNotifications(UINotificationGroup group)
          Returns a list of all unread notifications.
static void removeAllNotifications()
          Removes all unread notifications from all notification groups.
static void removeAllNotifications(UINotificationGroup group)
          Removes all unread notifications.
static void removeNotificationListener(UINotificationListener l)
          Removes the given UINotificationListener from the list of listeners that are notified on any changes in missed calls count.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UINotificationManager

public UINotificationManager()
Method Detail

addNotificationListener

public static void addNotificationListener(UINotificationListener l)
Adds the given UINotificationListener to the list of listeners that would be notified on any changes in missed calls count.

Parameters:
l - the UINotificationListener to add

removeNotificationListener

public static void removeNotificationListener(UINotificationListener l)
Removes the given UINotificationListener from the list of listeners that are notified on any changes in missed calls count.

Parameters:
l - the UINotificationListener to remove

addNotification

public static void addNotification(UINotification notification)
Adds the given notification to the list of unread notifications and notifies interested listeners.

Parameters:
notification - the UINotification to add

removeAllNotifications

public static void removeAllNotifications(UINotificationGroup group)
Removes all unread notifications.

Parameters:
group - removes all unread notifications for the given notification group

removeAllNotifications

public static void removeAllNotifications()
Removes all unread notifications from all notification groups.


getUnreadNotifications

public static Iterator<UINotification> getUnreadNotifications(UINotificationGroup group)
Returns a list of all unread notifications.

Parameters:
group - the notification group, which notification we're looking for
Returns:
a list of all unread notifications

getNotificationGroups

public static Collection<UINotificationGroup> getNotificationGroups()
Returns a list of all notification groups.

Returns:
a list of all notification groups

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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