|
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.Call
public abstract class Call
A representation of a Call. The Call class must only be created by users (i.e. telephony protocols) of the PhoneUIService such as a SIP protocol implementation. Extensions of this class might have names like CallSipImpl or CallJabberImpl or CallAnyOtherTelephonyProtocolImpl
| Constructor Summary | |
|---|---|
protected |
Call(ProtocolProviderService sourceProvider)
Creates a new Call instance. |
| Method Summary | |
|---|---|
void |
addCallChangeListener(CallChangeListener listener)
Adds a call change listener to this call so that it could receive events on new call peers, theme changes and others. |
abstract 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 |
equals(Object obj)
Compares the specified object with this call and returns true if it the specified object is an instance of a Call object and if the extending telephony protocol considers the calls represented by both objects to be the same. |
protected void |
fireCallChangeEvent(String type,
Object oldValue,
Object newValue)
Creates a CallChangeEvent with this class as sourceCall, and the specified eventID and old and new values and dispatches it on all currently registered listeners. |
protected void |
fireCallChangeEvent(String type,
Object oldValue,
Object newValue,
CallPeerChangeEvent cause)
Creates a CallChangeEvent with this class as sourceCall, and the specified eventID and old and new values and dispatches it on all currently registered listeners. |
protected void |
fireCallPeerEvent(CallPeer sourceCallPeer,
int eventID)
Creates a CallPeerEvent with sourceCallPeer and eventID and dispatches it on all currently registered listeners. |
abstract CallGroup |
getCallGroup()
Returns the CallGroup from which this Call belongs. |
String |
getCallID()
Returns the id of the specified Call. |
abstract int |
getCallPeerCount()
Returns the number of peers currently associated with this call. |
abstract Iterator<? extends CallPeer> |
getCallPeers()
Returns an iterator over all call peers. |
CallState |
getCallState()
Returns the state that this call is currently in. |
abstract int |
getCrossProtocolCallPeerCount()
Returns the number of cross-protocol peers currently associated with this call. |
abstract Iterator<CallPeer> |
getCrossProtocolCallPeers()
Returns an iterator over all cross-protocol call peers. |
ProtocolProviderService |
getProtocolProvider()
Returns a reference to the ProtocolProviderService instance that created this call. |
int |
hashCode()
Returns a hash code value for this call. |
abstract 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. |
boolean |
isDefaultEncrypted()
Returns the default call encryption flag |
boolean |
isSipZrtpAttribute()
Check if to include the ZRTP attribute to SIP/SDP |
void |
removeCallChangeListener(CallChangeListener listener)
Removes listener to this call so that it won't receive further CallChangeEvents. |
abstract 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. |
abstract void |
setCallGroup(CallGroup callGroup)
Sets the CallGroup of this Call. |
protected void |
setCallState(CallState newState)
Sets the state of this call and fires a call change event notifying registered listeners for the change. |
protected void |
setCallState(CallState newState,
CallPeerChangeEvent cause)
Sets the state of this call and fires a call change event notifying registered listeners for the change. |
String |
toString()
Returns a string textually representing this Call. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.protocol.event.CallGroupListener |
|---|
callAdded, callRemoved |
| Constructor Detail |
|---|
protected Call(ProtocolProviderService sourceProvider)
sourceProvider - the proto provider that created us.| Method Detail |
|---|
public String getCallID()
public boolean equals(Object obj)
equals in class Objectobj - the call to compare this one with.
public int hashCode()
hashCode in class Objectpublic void addCallChangeListener(CallChangeListener listener)
listener - the listener to registerpublic void removeCallChangeListener(CallChangeListener listener)
listener - the listener to registerpublic ProtocolProviderService getProtocolProvider()
protected void fireCallPeerEvent(CallPeer sourceCallPeer,
int eventID)
sourceCallPeer - the source CallPeer for the
newly created event.eventID - the ID of the event to create (see CPE member ints)public String toString()
toString in class Object
protected void fireCallChangeEvent(String type,
Object oldValue,
Object newValue)
type - the type of the event to create (see CallChangeEvent member
ints)oldValue - the value of the call property that changed, before the
event had occurred.newValue - the value of the call property that changed, after the
event has occurred.
protected void fireCallChangeEvent(String type,
Object oldValue,
Object newValue,
CallPeerChangeEvent cause)
type - the type of the event to create (see CallChangeEvent member
ints)oldValue - the value of the call property that changed, before the
event had occurred.newValue - the value of the call property that changed, after the
event has occurred.cause - the event that is the initial cause of the current one.public CallState getCallState()
protected void setCallState(CallState newState)
newState - a reference to the CallState instance that the
call is to enter.
protected void setCallState(CallState newState,
CallPeerChangeEvent cause)
newState - a reference to the CallState instance that the
call is to enter.cause - the event that is the cause of the current change of state.public boolean isDefaultEncrypted()
public boolean isSipZrtpAttribute()
public abstract void setCallGroup(CallGroup callGroup)
callGroup - CallGroup to setpublic abstract CallGroup getCallGroup()
public abstract Iterator<? extends CallPeer> getCallPeers()
public abstract int getCallPeerCount()
public abstract Iterator<CallPeer> getCrossProtocolCallPeers()
public abstract int getCrossProtocolCallPeerCount()
public abstract boolean isConferenceFocus()
public abstract void addLocalUserSoundLevelListener(SoundLevelListener l)
l - the SoundLevelListener to addpublic abstract void removeLocalUserSoundLevelListener(SoundLevelListener l)
l - the SoundLevelListener to remove
|
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 | |||||||||