Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol
Class CallGroup

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.CallGroup
All Implemented Interfaces:
EventListener, CallChangeListener

public class CallGroup
extends Object
implements CallChangeListener

This class represents group of several calls. It is used to make cross-protocol conference calls.

Author:
Sebastien Vincent

Constructor Summary
CallGroup()
           
 
Method Summary
 void addCall(Call call)
          Adds a call.
 void callPeerAdded(CallPeerEvent evt)
          Indicates that a new call peer has joined the source call.
 void callPeerRemoved(CallPeerEvent evt)
          Indicates that a call peer has left the source call.
 void callStateChanged(CallChangeEvent evt)
          Indicates that a change has occurred in the state of the source call.
 void fireCallGroupEvent(Call call, int eventID)
          Fires CallGroupEvent.
 List<Call> getCalls()
          Returns list of existing Calls in this CallGroup.
 void removeCall(Call call)
          Removes a call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallGroup

public CallGroup()
Method Detail

getCalls

public List<Call> getCalls()
Returns list of existing Calls in this CallGroup.

Returns:
list of existing Calls in this CallGroup.

fireCallGroupEvent

public void fireCallGroupEvent(Call call,
                               int eventID)
Fires CallGroupEvent.

Parameters:
call - source Call
eventID - event ID

addCall

public void addCall(Call call)
Adds a call.

Parameters:
call - call to add

removeCall

public void removeCall(Call call)
Removes a call.

Parameters:
call - call to remove

callPeerAdded

public void callPeerAdded(CallPeerEvent evt)
Indicates that a new call peer has joined the source call.

Specified by:
callPeerAdded in interface CallChangeListener
Parameters:
evt - the CallPeerEvent containing the source call and call peer.

callPeerRemoved

public void callPeerRemoved(CallPeerEvent evt)
Indicates that a call peer has left the source call.

Specified by:
callPeerRemoved in interface CallChangeListener
Parameters:
evt - the CallPeerEvent containing the source call and call peer.

callStateChanged

public void callStateChanged(CallChangeEvent evt)
Indicates that a change has occurred in the state of the source call.

Specified by:
callStateChanged in interface CallChangeListener
Parameters:
evt - the CallChangeEvent instance containing the source calls and its old and new state.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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