Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class DTMFReceivedEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.java.sip.communicator.service.protocol.event.DTMFReceivedEvent
All Implemented Interfaces:
Serializable

public class DTMFReceivedEvent
extends EventObject

DTMFReceivedEvents indicate reception of a DTMF tone.

Author:
Damian Minkov
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DTMFReceivedEvent(ProtocolProviderService source, DTMFTone value, long duration)
          Creates a MessageReceivedEvent representing reception of the source message received from the specified from contact.
 
Method Summary
 long getDuration()
          Returns the tone duration for this event.
 DTMFTone getValue()
          Returns the tone this event is indicating of.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DTMFReceivedEvent

public DTMFReceivedEvent(ProtocolProviderService source,
                         DTMFTone value,
                         long duration)
Creates a MessageReceivedEvent representing reception of the source message received from the specified from contact.

Parameters:
source - the Message whose reception this event represents.
value - dmtf tone value
duration - duration of the DTMF tone
Method Detail

getValue

public DTMFTone getValue()
Returns the tone this event is indicating of.

Returns:
the tone this event is indicating of.

getDuration

public long getDuration()
Returns the tone duration for this event.

Returns:
the tone duration for this event.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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