public class MockCall extends AbstractCall<MockCallPeer,MockProvider> implements CallPeerListener
CONFERENCE, CONFERENCE_FOCUS, useTranslator
Constructor and Description |
---|
MockCall(MockProvider sourceProvider)
Constructs a new MockCall.
|
Modifier and Type | Method and Description |
---|---|
void |
addCallPeer(MockCallPeer callPeer)
Adds callPeer to the list of peers in this call.
|
void |
addLocalUserSoundLevelListener(SoundLevelListener l)
Adds a specific SoundLevelListener to the list of
listeners interested in and notified about changes in local sound level
related information.
|
boolean |
isConferenceFocus()
Gets the indicator which determines whether the local peer represented by
this Call is acting as a conference focus and thus should send
the "isfocus" parameter in the Contact headers of its outgoing
SIP signaling.
|
void |
peerAddressChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the address of the source
CallPeer.
|
void |
peerDisplayNameChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the display name of the source
CallPeer.
|
void |
peerImageChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the image of the source
CallPeer.
|
void |
peerStateChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the status of the source
CallPeer.
|
void |
peerTransportAddressChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the transport address that we
use to communicate with the peer.
|
void |
removeCallPeer(MockCallPeer callPeer)
Removes callPeer from the list of peers in this
call.
|
void |
removeLocalUserSoundLevelListener(SoundLevelListener l)
Removes a specific SoundLevelListener of the list of
listeners interested in and notified about changes in local sound level
related information.
|
addPropertyChangeListener, doAddCallPeer, doRemoveCallPeer, firePropertyChange, getCallPeerCount, getCallPeerList, getCallPeers, getProtocolProvider, removePropertyChangeListener
addCallChangeListener, createConference, equals, fireCallChangeEvent, fireCallChangeEvent, fireCallPeerEvent, fireCallPeerEvent, getCallID, getCallState, getConference, hashCode, isAutoAnswer, isDefaultEncrypted, isSipZrtpAttribute, removeCallChangeListener, setAutoAnswer, setCallState, setCallState, setConference, toString
getData, setData
public MockCall(MockProvider sourceProvider)
sourceProvider
- Providerpublic void addCallPeer(MockCallPeer callPeer)
callPeer
- the new CallPeerpublic void removeCallPeer(MockCallPeer callPeer)
callPeer
- the CallPeer leaving the call;public void peerStateChanged(CallPeerChangeEvent evt)
CallPeerListener
peerStateChanged
in interface CallPeerListener
evt
- The CallPeerChangeEvent instance containing
the source event as well as its previous and its new status.public void peerDisplayNameChanged(CallPeerChangeEvent evt)
CallPeerListener
peerDisplayNameChanged
in interface CallPeerListener
evt
- The CallPeerChangeEvent instance containing
the source event as well as its previous and its new display names.public void peerAddressChanged(CallPeerChangeEvent evt)
CallPeerListener
peerAddressChanged
in interface CallPeerListener
evt
- The CallPeerChangeEvent instance containing
the source event as well as its previous and its new address.public void peerImageChanged(CallPeerChangeEvent evt)
CallPeerListener
peerImageChanged
in interface CallPeerListener
evt
- The CallPeerChangeEvent instance containing
the source event as well as its previous and its new image.public void peerTransportAddressChanged(CallPeerChangeEvent evt)
CallPeerListener
peerTransportAddressChanged
in interface CallPeerListener
evt
- The CallPeerChangeEvent instance containing
the source event as well as its previous and its new transport address.public boolean isConferenceFocus()
isConferenceFocus
in class Call
public void addLocalUserSoundLevelListener(SoundLevelListener l)
addLocalUserSoundLevelListener
in class Call
l
- the SoundLevelListener to addpublic void removeLocalUserSoundLevelListener(SoundLevelListener l)
removeLocalUserSoundLevelListener
in class Call
l
- the SoundLevelListener to remove
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.