|
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.event.CallChangeAdapter
net.java.sip.communicator.service.protocol.ActiveCallsRepository<T,U>
T - CallU - OperationSetBasicTelephonypublic abstract class ActiveCallsRepository<T extends Call,U extends OperationSetBasicTelephony<? extends ProtocolProviderService>>
Keeps a list of all calls currently active and maintained by this protocol provider. Offers methods for finding a call by its ID, peer session and others. This class is meant for use by protocol implementations and cannot be accessed from other bundles.
| Field Summary | |
|---|---|
protected U |
parentOperationSet
The operation set that created us. |
| Constructor Summary | |
|---|---|
ActiveCallsRepository(U opSet)
Creates a new instance of this repository. |
|
| Method Summary | |
|---|---|
void |
addCall(T call)
Adds the specified call to the list of calls tracked by this repository. |
void |
callStateChanged(CallChangeEvent evt)
If evt indicates that the call has been ended we remove it from the repository. |
protected abstract void |
fireCallEvent(int eventID,
Call sourceCall)
Creates and dispatches a CallEvent notifying registered listeners that an event with id eventID has occurred on sourceCall. |
int |
getActiveCallCount()
Returns the number of calls currently tracked by this repository. |
Iterator<T> |
getActiveCalls()
Returns an iterator over all currently active (non-ended) calls. |
| Methods inherited from class net.java.sip.communicator.service.protocol.event.CallChangeAdapter |
|---|
callPeerAdded, callPeerRemoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final U extends OperationSetBasicTelephony<? extends ProtocolProviderService> parentOperationSet
| Constructor Detail |
|---|
public ActiveCallsRepository(U opSet)
opSet - a reference to the
AbstractOperationSetBasicTelephony extension that created us.| Method Detail |
|---|
public void addCall(T call)
call - CallSipImplpublic void callStateChanged(CallChangeEvent evt)
callStateChanged in interface CallChangeListenercallStateChanged in class CallChangeAdapterevt - the CallChangeEvent instance containing the source
calls and its old and new state.public Iterator<T> getActiveCalls()
public int getActiveCallCount()
protected abstract void fireCallEvent(int eventID,
Call sourceCall)
TODO The method is ugly because it can be implemented if parentOperationSet is an AbstractOperationSetBasicTelephony. But after the move of the latter in the .service.protocol.media package, it is not visible here.
eventID - the ID of the event to dispatchsourceCall - the call on which the event has occurred.
|
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 | |||||||||