@@ -0,0 +1,3090 @@
+/*%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 */%0Apackage net.java.sip.communicator.service.protocol.event;%0A%0Aimport java.util.*;%0A%0Aimport net.java.sip.communicator.service.protocol.*;%0A%0A/**%0A *%0A * @author Emil Ivov%0A */%0Apublic class CallParticipantEvent%0A    extends EventObject%0A%7B%0A    /**%0A     * The call that the source call participant is associated with.%0A     */%0A    private Call sourceCall = null;%0A%0A    /**%0A     * An event id value indicating that this event is about the fact that%0A     * the source call participant has joined the source call.%0A     */%0A    public static final int CALL_PARTICIPANT_ADDED = 1;%0A%0A    /**%0A     * An event id value indicating that this event is about the fact that%0A     * the source call participant has left the source call.%0A     */%0A    public static final int CALL_PARTICIPANT_REMVOVED = 2;%0A%0A    /**%0A     * The id indicating the type of this event.%0A     */%0A    private int eventID = -1;%0A%0A    /**%0A     * Creates a call participant event instance indicating that an event with%0A     * id %3Ctt%3EeventID%3C/tt%3E has happened to %3Ctt%3EsourceCallParticipant%3C/tt%3E in%0A     * %3Ctt%3EsourceCall%3C/tt%3E%0A     * @param sourceCallParticipant the call participant that this event is%0A     * about.%0A     * @param sourceCall the call that the source call participant is associated%0A     * with.%0A     * @param eventID one of the CALL_PARTICIPANT_XXX member ints indicating%0A     * the type of this event.%0A     */%0A    public CallParticipantEvent(CallParticipant sourceCallParticipant,%0A                                Call            sourceCall,%0A                                int             eventID)%0A    %7B%0A        super(sourceCallParticipant);%0A        this.sourceCall = sourceCall;%0A        this.eventID = eventID;%0A    %7D%0A%0A    /**%0A     * Returnst one of the CALL_PARTICIPANT_XXX member ints indicating%0A     * the type of this event.%0A     * @return one of the CALL_PARTICIPANT_XXX member ints indicating%0A     * the type of this event.%0A     */%0A    public int getEventID()%0A    %7B%0A        return this.eventID;%0A    %7D%0A%0A    /**%0A     * Returns the call that the source call participant is associated with.%0A     *%0A     * @return a reference to the %3Ctt%3ECall%3C/tt%3E that the source call participant%0A     * is associated with.%0A     */%0A    public Call getSourceCall()%0A    %7B%0A        return sourceCall;%0A    %7D%0A%0A    /**%0A     * Returns the  source call participant (the one that this event is about).%0A     *%0A     * @return a reference to the source %3Ctt%3ECallParticipant%3C/tt%3E instance.%0A     */%0A    public CallParticipant getSourceCallParticipant()%0A    %7B%0A        return (CallParticipant)getSource();%0A    %7D%0A%0A    /**%0A     * Returns a String representation of this %3Ctt%3ECallParticipantEvent%3C/tt%3E.%0A     *%0A     * @return  a String representation of this %3Ctt%3ECallParticipantEvent%3C/tt%3E.%0A     */%0A    public String toString()%0A    %7B%0A%0A        return %22CallParticipantEvent: ID=%22 + getEventID()%0A               + %22 source participant=%22 + getSourceCallParticipant()%0A               + %22 source call=%22 + getSourceCall();%0A    %7D%0A%0A%7D%0A

Support for SIP (Work in Progress)