Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.gibberish
Class OperationSetTelephonyConferencingGibberishImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.gibberish.OperationSetTelephonyConferencingGibberishImpl
All Implemented Interfaces:
EventListener, CallChangeListener, OperationSet, OperationSetTelephonyConferencing

public class OperationSetTelephonyConferencingGibberishImpl
extends Object
implements OperationSetTelephonyConferencing, CallChangeListener

A basic implementation of the OperationSetTelephonyConferencing for the Gibberish protocol (used for test purposes).

Author:
Yana Stamcheva

Constructor Summary
OperationSetTelephonyConferencingGibberishImpl(ProtocolProviderServiceGibberishImpl provider, OperationSetBasicTelephonyGibberishImpl telephonyOpSet)
          Creates an OperationSetTelephonyConferencingGibberishImpl by specifying the protocol provider and the according telephonyOpSet.
 
Method Summary
 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.
 Call createConfCall(String[] callees)
          Creates a conference call with the given list of callees
 CallPeer inviteCalleeToCall(String callee, Call existingCall)
          Invites the given callee to the given existingCall.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationSetTelephonyConferencingGibberishImpl

public OperationSetTelephonyConferencingGibberishImpl(ProtocolProviderServiceGibberishImpl provider,
                                                      OperationSetBasicTelephonyGibberishImpl telephonyOpSet)
Creates an OperationSetTelephonyConferencingGibberishImpl by specifying the protocol provider and the according telephonyOpSet.

Parameters:
provider - the protocol provider
telephonyOpSet - the according telephony operation set
Method Detail

createConfCall

public Call createConfCall(String[] callees)
                    throws OperationNotSupportedException
Creates a conference call with the given list of callees

Specified by:
createConfCall in interface OperationSetTelephonyConferencing
Parameters:
callees - the list of callees to invite in the call
Returns:
the created call
Throws:
OperationNotSupportedException - indicates that the operation is not supported for the given callees.

inviteCalleeToCall

public CallPeer inviteCalleeToCall(String callee,
                                   Call existingCall)
                            throws OperationNotSupportedException
Invites the given callee to the given existingCall.

Specified by:
inviteCalleeToCall in interface OperationSetTelephonyConferencing
Parameters:
callee - the address of the callee to invite
existingCall - the call, to which she will be invited
Returns:
the CallPeer corresponding to the invited callee
Throws:
OperationNotSupportedException - if the operation is not supported

callPeerAdded

public void callPeerAdded(CallPeerEvent evt)
Description copied from interface: CallChangeListener
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)
Description copied from interface: CallChangeListener
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)
Description copied from interface: CallChangeListener
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.