aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/media/event/MediaEvent.java
blob: 6192832b8b16928d31aabf8242d384329f50cd99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.sip.communicator.service.media.event;

import net.java.sip.communicator.service.media.*;
import net.java.sip.communicator.service.protocol.*;

/**
 * 
 * @author Symphorien Wanko
 */
public class MediaEvent
    extends java.util.EventObject
{
    CallParticipant callParticipant;

    /**
     * Remote user involved in the event.
     */
    String from;
    
    public MediaEvent(Object source)
    {
        super(source);
    }

    /**
     * Constructor for a new media event which occurs
     * inside a <tt>RtpFlow</tt>.
     *
     * @param flow the <tt>RtpFlow</tt> where the event occured.
     * @param from the origi of the event.
     */
    public MediaEvent(RtpFlow flow, String from)
    {
        super(flow);
        this.from = from;
    }

    /**
     * Return the remote name of the user which has caused this
     * event.
     */
    public String getFrom()
    {
        return from;
    }
}