public class ActiveCallsRepositoryJabberGTalkImpl<T extends AbstractCallJabberGTalkImpl<U>,U extends AbstractCallPeerJabberGTalkImpl<T,?,?>> extends ActiveCallsRepository<T,OperationSetBasicTelephonyJabberImpl>
parentOperationSet
Constructor and Description |
---|
ActiveCallsRepositoryJabberGTalkImpl(OperationSetBasicTelephonyJabberImpl opSet)
It's where we store all active calls
|
Modifier and Type | Method and Description |
---|---|
T |
findCallId(java.lang.String callid)
Returns the Call with ID equal to callid.
|
U |
findCallPeer(java.lang.String sid)
Returns the
CallPeerJabberImpl whose jingle session has the
specified jingle sid. |
U |
findCallPeerBySessInitPacketID(java.lang.String id)
Returns the
CallPeerJabberImpl whose session-init's ID has
the specified IQ id. |
T |
findSID(java.lang.String sid)
Returns the
CallJabberImpl containing a CallPeerJabberImpl whose corresponding jingle session has the specified
jingle sid. |
protected void |
fireCallEvent(int eventID,
Call sourceCall,
CallChangeEvent cause)
Creates and dispatches a CallEvent notifying registered
listeners that an event with id eventID has occurred on
sourceCall.
|
addCall, callStateChanged, fireCallEvent, getActiveCallCount, getActiveCalls
callPeerAdded, callPeerRemoved
public ActiveCallsRepositoryJabberGTalkImpl(OperationSetBasicTelephonyJabberImpl opSet)
opSet
- the OperationSetBasicTelphony instance which has
been used to create calls in this repositorypublic T findSID(java.lang.String sid)
CallJabberImpl
containing a CallPeerJabberImpl
whose corresponding jingle session has the specified
jingle sid.sid
- the jingle sid we're looking for.CallJabberImpl
containing the peer with the
specified sid or null if we couldn't find one matching
it.public T findCallId(java.lang.String callid)
callid
- the ID to search forpublic U findCallPeer(java.lang.String sid)
CallPeerJabberImpl
whose jingle session has the
specified jingle sid.sid
- the jingle sid we're looking for.CallPeerJabberImpl
with the specified sid
or null if we couldn't find one matching it.public U findCallPeerBySessInitPacketID(java.lang.String id)
CallPeerJabberImpl
whose session-init's ID has
the specified IQ id.id
- the IQ id we're looking for.CallPeerJabberImpl
with the specified id
or null if we couldn't find one matching it.protected void fireCallEvent(int eventID, Call sourceCall, CallChangeEvent cause)
fireCallEvent
in class ActiveCallsRepository<T extends AbstractCallJabberGTalkImpl<U>,OperationSetBasicTelephonyJabberImpl>
eventID
- the ID of the event to dispatchsourceCall
- the call on which the event has occurredcause
- the CallChangeEvent, if any, which is the cause
that necessitated a new CallEvent to be firedActiveCallsRepository.fireCallEvent(int, Call, CallChangeEvent)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.