|
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.Objectjava.util.EventObject
net.java.sip.communicator.service.protocol.event.CallEvent
public class CallEvent
An event class representing that an incoming or an outgoing call has been created. The event id indicates the exact reason for this event.
| Field Summary | |
|---|---|
static int |
CALL_ENDED
An event id value indicating that this event has been triggered as a result of a call being ended (all its peers have left). |
static int |
CALL_INITIATED
An event id value indicating that this event has been triggered as a result of an outgoing call. |
static int |
CALL_RECEIVED
An event id value indicating that this event has been triggered as a result of an incoming call. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
CallEvent(Call call,
int eventID)
Creates an event instance indicating that an incoming/outgoing call has been created |
|
| Method Summary | |
|---|---|
int |
getEventID()
Returns an event ID int indicating whether this event was triggered by an outgoing or an incoming call. |
Map<MediaType,MediaDirection> |
getMediaDirections()
Return the media directions map |
List<MediaType> |
getMediaTypes()
Return the media types supported by this call, if information is available. |
Call |
getSourceCall()
Returns the Call that trigered this event. |
boolean |
isVideoCall()
Returns whether or not the call is a video call. |
void |
setMediaDirections(Map<MediaType,MediaDirection> mediaDirections)
Update media types for the event. |
String |
toString()
Returns a String representation of this CallEvent. |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int CALL_INITIATED
public static final int CALL_RECEIVED
public static final int CALL_ENDED
| Constructor Detail |
|---|
public CallEvent(Call call,
int eventID)
call - the call that triggered this event.eventID - determines whether this is an incoming or an outgoing
call.| Method Detail |
|---|
public Call getSourceCall()
public int getEventID()
public String toString()
toString in class EventObjectpublic List<MediaType> getMediaTypes()
public Map<MediaType,MediaDirection> getMediaDirections()
public void setMediaDirections(Map<MediaType,MediaDirection> mediaDirections)
mediaDirections - the new media types.public boolean isVideoCall()
|
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 | |||||||||