|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.service.protocol.media.AbstractOperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>
net.java.sip.communicator.impl.protocol.gibberish.OperationSetBasicTelephonyGibberishImpl
public class OperationSetBasicTelephonyGibberishImpl
A Gibberish implementation of a basic telephony operation set.
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.protocol.OperationSetBasicTelephony |
|---|
MAX_MEDIA_PORT_NUMBER_PROPERTY_NAME, MIN_MEDIA_PORT_NUMBER_PROPERTY_NAME |
| Constructor Summary | |
|---|---|
OperationSetBasicTelephonyGibberishImpl(ProtocolProviderServiceGibberishImpl protocolProvider)
Creates an instance of OperationSetBasicTelephonyGibberishImpl by specifying the corresponding protocolProvider |
|
| Method Summary | |
|---|---|
void |
answerCallPeer(CallPeer peer)
Indicates a user request to answer an incoming call from the specified CallPeer. |
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 |
createCall(Contact callee)
Creates a new Call and invites a specific CallPeer to it given by her Contact. |
Call |
createCall(Contact callee,
CallGroup group)
Creates a new Call and invites a specific CallPeer to it given by her Contact. |
Call |
createCall(String uri)
Creates a new Call and invites a specific CallPeer to it given by her String URI. |
Call |
createCall(String callee,
CallGroup group)
Creates a new Call and invites a specific CallPeer to it given by her String URI. |
Iterator<Call> |
getActiveCalls()
Returns an iterator over all currently active calls. |
ProtocolProviderServiceGibberishImpl |
getProtocolProvider()
Returns the protocol provider that this operation set belongs to. |
void |
hangupCallPeer(CallPeer peer)
Indicates a user request to end a call with the specified call particiapnt. |
void |
putOffHold(CallPeer peer)
Resumes communication with a call peer previously put on hold. |
void |
putOnHold(CallPeer peer)
Puts the specified CallPeer "on hold". |
void |
setMute(CallPeer peer,
boolean mute)
Sets the mute state of the audio stream being sent to a specific CallPeer. |
| Methods inherited from class net.java.sip.communicator.service.protocol.media.AbstractOperationSetBasicTelephony |
|---|
addCallListener, createRecorder, fireCallEvent, fireCallEvent, removeCallListener, setMute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationSetBasicTelephonyGibberishImpl(ProtocolProviderServiceGibberishImpl protocolProvider)
protocolProvider - the protocol provider, where this operation set
is registered| Method Detail |
|---|
public void answerCallPeer(CallPeer peer)
throws OperationFailedException
answerCallPeer in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>peer - the call peer that we'd like to answer.
OperationFailedException - with the corresponding code if we
encounter an error while performing this operation.
public Call createCall(String uri)
throws OperationFailedException
createCall in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>uri - the address of the callee who we should invite to a new
Call
OperationFailedException - with the corresponding code if we fail
to create the callOperationSetBasicTelephony.createCall(String)
public Call createCall(Contact callee)
throws OperationFailedException
createCall in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>callee - the address of the callee who we should invite to a new
call
OperationFailedException - with the corresponding code if we fail
to create the callOperationSetBasicTelephony.createCall(Contact)
public Call createCall(String callee,
CallGroup group)
throws OperationFailedException
createCall in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>callee - the address of the callee who we should invite to a new
Callgroup - CallGroup from which the Call will belong
OperationFailedException - with the corresponding code if we fail
to create the call
public Call createCall(Contact callee,
CallGroup group)
throws OperationFailedException
createCall in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>callee - the address of the callee who we should invite to a new
callgroup - CallGroup from which the Call will belong
OperationFailedException - with the corresponding code if we fail
to create the callpublic Iterator<Call> getActiveCalls()
getActiveCalls in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>
public void hangupCallPeer(CallPeer peer)
throws OperationFailedException
hangupCallPeer in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>peer - the peer that we'd like to hang up on.
OperationFailedException - with the corresponding code if we
encounter an error while performing this operation.
public void putOffHold(CallPeer peer)
throws OperationFailedException
putOffHold in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>peer - the call peer to put on hold.
OperationFailedException - if we encounter an error while
performing this operation
public void putOnHold(CallPeer peer)
throws OperationFailedException
putOnHold in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>peer - the peer that we'd like to put on hold.
OperationFailedException - with the corresponding code if we
encounter an error while performing this operation.public void callPeerAdded(CallPeerEvent evt)
CallChangeListener
callPeerAdded in interface CallChangeListenerevt - the CallPeerEvent containing the source call
and call peer.public void callPeerRemoved(CallPeerEvent evt)
CallChangeListener
callPeerRemoved in interface CallChangeListenerevt - the CallPeerEvent containing the source call
and call peer.public void callStateChanged(CallChangeEvent evt)
CallChangeListener
callStateChanged in interface CallChangeListenerevt - the CallChangeEvent instance containing the source
calls and its old and new state.
public void setMute(CallPeer peer,
boolean mute)
The implementation sends silence through the audio stream.
peer - the CallPeer who receives the audio
stream to have its mute state setmute - true to mute the audio stream being sent to
peer; otherwise, falsepublic ProtocolProviderServiceGibberishImpl getProtocolProvider()
getProtocolProvider in interface OperationSetBasicTelephony<ProtocolProviderServiceGibberishImpl>
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||