Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.notification
Interface SoundNotificationHandler

All Superinterfaces:
NotificationHandler
All Known Implementing Classes:
SoundNotificationHandlerImpl

public interface SoundNotificationHandler
extends NotificationHandler

The SoundNotificationHandler interface is meant to be implemented by the notification bundle in order to provide handling of sound actions.

Author:
Yana Stamcheva

Method Summary
 void start(SoundNotificationAction action, NotificationData data)
          Start playing the sound pointed by getDescriotor.
 void stop(NotificationData data)
          Stops playing the sound pointing by getDescriptor.
 
Methods inherited from interface net.java.sip.communicator.service.notification.NotificationHandler
getActionType
 

Method Detail

start

void start(SoundNotificationAction action,
           NotificationData data)
Start playing the sound pointed by getDescriotor. This method should check the loopInterval value to distinguish whether to play a simple sound or to play it in loop.

Parameters:
action - the action to act upon
data - Additional data for the event.

stop

void stop(NotificationData data)
Stops playing the sound pointing by getDescriptor. This method is meant to be used to stop sounds that are played in loop.

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.