Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.utils
Class NotificationManager

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.utils.NotificationManager

public class NotificationManager
extends Object


Field Summary
static String BUSY_CALL
           
static String CALL_SAVED
           
static String CALL_SECURITY_ERROR
           
static String CALL_SECURITY_ON
           
static String DIALING
           
static String HANG_UP
           
static String INCOMING_CALL
           
static String INCOMING_FILE
           
static String INCOMING_MESSAGE
           
static String OUTGOING_CALL
           
static String PROACTIVE_NOTIFICATION
           
static String SECURITY_MESSAGE
           
 
Constructor Summary
NotificationManager()
           
 
Method Summary
static void fireChatNotification(Object chatContact, String eventType, String messageTitle, String message)
          Fires a chat message notification for the given event type through the NotificationService.
static void fireNotification(String eventType)
          Fires a notification for the given event type through the NotificationService.
static void fireNotification(String eventType, String messageTitle, String message)
          Fires a message notification for the given event type through the NotificationService.
static void registerGuiNotifications()
           
static void stopSound(String eventType)
          Stops all sounds for the given event type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCOMING_MESSAGE

public static final String INCOMING_MESSAGE
See Also:
Constant Field Values

INCOMING_CALL

public static final String INCOMING_CALL
See Also:
Constant Field Values

OUTGOING_CALL

public static final String OUTGOING_CALL
See Also:
Constant Field Values

BUSY_CALL

public static final String BUSY_CALL
See Also:
Constant Field Values

DIALING

public static final String DIALING
See Also:
Constant Field Values

HANG_UP

public static final String HANG_UP
See Also:
Constant Field Values

PROACTIVE_NOTIFICATION

public static final String PROACTIVE_NOTIFICATION
See Also:
Constant Field Values

SECURITY_MESSAGE

public static final String SECURITY_MESSAGE
See Also:
Constant Field Values

CALL_SECURITY_ON

public static final String CALL_SECURITY_ON
See Also:
Constant Field Values

CALL_SECURITY_ERROR

public static final String CALL_SECURITY_ERROR
See Also:
Constant Field Values

INCOMING_FILE

public static final String INCOMING_FILE
See Also:
Constant Field Values

CALL_SAVED

public static final String CALL_SAVED
See Also:
Constant Field Values
Constructor Detail

NotificationManager

public NotificationManager()
Method Detail

registerGuiNotifications

public static void registerGuiNotifications()

fireNotification

public static void fireNotification(String eventType,
                                    String messageTitle,
                                    String message)
Fires a message notification for the given event type through the NotificationService.

Parameters:
eventType - the event type for which we fire a notification
messageTitle - the title of the message
message - the content of the message

fireChatNotification

public static void fireChatNotification(Object chatContact,
                                        String eventType,
                                        String messageTitle,
                                        String message)
Fires a chat message notification for the given event type through the NotificationService.

Parameters:
chatContact - the chat contact to which the chat message corresponds; the chat contact could be a Contact or a ChatRoom.
eventType - the event type for which we fire a notification
messageTitle - the title of the message
message - the content of the message

fireNotification

public static void fireNotification(String eventType)
Fires a notification for the given event type through the NotificationService. The event type is one of the static constants defined in this class.

Parameters:
eventType - the event type for which we want to fire a notification

stopSound

public static void stopSound(String eventType)
Stops all sounds for the given event type.

Parameters:
eventType - the event type for which we should stop sounds. One of the static event types defined in this class.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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