Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.notification
Class SoundNotificationHandlerImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.notification.SoundNotificationHandlerImpl
All Implemented Interfaces:
NotificationHandler, SoundNotificationHandler

public class SoundNotificationHandlerImpl
extends Object
implements SoundNotificationHandler

An implementation of the SoundNotificationHandler interface.

Author:
Yana Stamcheva

Field Summary
(package private)  WeakHashMap<SCAudioClip,NotificationData> playedClips
           
 
Constructor Summary
SoundNotificationHandlerImpl()
           
 
Method Summary
 String getActionType()
          Gets the type of this handler.
 void start(SoundNotificationAction action, NotificationData data)
          Plays the sound given by the containing soundFileDescriptor.
 void stop(NotificationData data)
          Stops the sound.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

playedClips

WeakHashMap<SCAudioClip,NotificationData> playedClips
Constructor Detail

SoundNotificationHandlerImpl

public SoundNotificationHandlerImpl()
Method Detail

getActionType

public String getActionType()
Gets the type of this handler.

Specified by:
getActionType in interface NotificationHandler
Returns:
the type of this handler.

start

public void start(SoundNotificationAction action,
                  NotificationData data)
Plays the sound given by the containing soundFileDescriptor. The sound is played in loop if the loopInterval is defined.

Specified by:
start in interface SoundNotificationHandler
Parameters:
action - The action to act upon.
data - Additional data for the event.

stop

public void stop(NotificationData data)
Stops the sound.

Specified by:
stop in interface SoundNotificationHandler
Parameters:
data - Additional data for the event.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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