Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.globalshortcut
Class CallShortcut

java.lang.Object
  extended by net.java.sip.communicator.impl.globalshortcut.CallShortcut
All Implemented Interfaces:
EventListener, GlobalShortcutListener, CallListener

public class CallShortcut
extends Object
implements GlobalShortcutListener, CallListener

Shortcut for call (take the call, hang up, ...).

Author:
Sebastien Vincent, Vincent Lucas

Constructor Summary
CallShortcut()
          Constructor.
 
Method Summary
 void callEnded(CallEvent event)
          Indicates that all peers have left the source call and that it has been ended.
 void incomingCallReceived(CallEvent event)
          This method is called by a protocol provider whenever an incoming call is received.
 void outgoingCallCreated(CallEvent event)
          This method is called by a protocol provider upon initiation of an outgoing call.
 void shortcutReceived(GlobalShortcutEvent evt)
          Callback when an shortcut is typed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallShortcut

public CallShortcut()
Constructor.

Method Detail

shortcutReceived

public void shortcutReceived(GlobalShortcutEvent evt)
Callback when an shortcut is typed

Specified by:
shortcutReceived in interface GlobalShortcutListener
Parameters:
evt - GlobalShortcutEvent

incomingCallReceived

public void incomingCallReceived(CallEvent event)
This method is called by a protocol provider whenever an incoming call is received.

Specified by:
incomingCallReceived in interface CallListener
Parameters:
event - a CallEvent instance describing the new incoming call

outgoingCallCreated

public void outgoingCallCreated(CallEvent event)
This method is called by a protocol provider upon initiation of an outgoing call.

Specified by:
outgoingCallCreated in interface CallListener
Parameters:
event - a CalldEvent instance describing the new incoming call.

callEnded

public void callEnded(CallEvent event)
Indicates that all peers have left the source call and that it has been ended. The event may be considered redundant since there are already events issued upon termination of a single call peer but we've decided to keep it for listeners that are only interested in call duration and don't want to follow other call details.

Specified by:
callEnded in interface CallListener
Parameters:
event - the CallEvent containing the source call.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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