@@ -0,0 +1,2097 @@
+/*%0A * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.%0A *%0A * Distributable under LGPL license.%0A * See terms of license at gnu.org.%0A */%0A%0Apackage net.java.sip.communicator.service.protocol.event;%0A%0Aimport java.util.*;%0A%0Aimport net.java.sip.communicator.service.protocol.*;%0A%0A/**%0A * An event class representing that an incoming or an outgoing call has been%0A * created. The event id indicates the exact reason for this event.%0A *%0A * @author Emil Ivov%0A */%0Apublic class CallEvent%0A    extends EventObject%0A%7B%0A    /**%0A     * An event id value indicating that this event has been triggerred as a%0A     * result of an outgoing call.%0A     */%0A    public static final int CALL_INITIATED = 1;%0A%0A    /**%0A     * An event id value indicating that this event has been triggerred as a%0A     * result of an incoming call.%0A     */%0A    public static final int CALL_RECEIVED  = 2;%0A%0A    /**%0A     * An event id value indicating that this event has been triggerred as a%0A     * result of a call being ended (all its participants have left).%0A     */%0A    public static final int CALL_ENDED  = 3;%0A%0A%0A    /**%0A     * Determines whether this event has been fired to indicate an incoming or%0A     * an outgoing call.%0A     */%0A    private int eventID;%0A%0A    /**%0A     * Creates an event instance indicating that an incoming/outgoing call%0A     * has been created%0A     *%0A     * @param call the call that triggerred this event.%0A     * @param eventID determines whether this is an incoming or an outgoing%0A     * call.%0A     */%0A    public CallEvent(Call call, int eventID)%0A    %7B%0A        super(call);%0A        this.eventID = eventID;%0A    %7D%0A%0A    /**%0A     * Returns the %3Ctt%3ECall%3C/tt%3E that trigerred this event.%0A     *%0A     * @return the %3Ctt%3ECall%3C/tt%3E that trigerred this event.%0A     */%0A    public Call getSourceCall()%0A    %7B%0A        return (Call)getSource();%0A    %7D%0A%0A    /**%0A     * Returns an event ID int indicating whether this event was triggerred by%0A     * an outgoing or an incoming call.%0A     *%0A     * @return on of the CALL_XXX static member ints.%0A     */%0A    public int getEventID()%0A    %7B%0A        return this.eventID;%0A    %7D%0A%7D%0A

Support for SIP (Work in Progress)