aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol/ConferenceMember.java
blob: 0f67a3bc8322c122d38a1e26dcf7961ff35ff096 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
 * 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.protocol;

import java.beans.*;


/**
 * Represents a member and its details in a telephony conference managed by a
 * <tt>CallPeer</tt> in its role as a conference focus.
 *
 * @author Lubomir Marinov
 */
public interface ConferenceMember
{
    /**
     * The name of the property of <tt>ConferenceMember</tt> which specifies
     * the user-friendly display name of the respective
     * <tt>ConferenceMember</tt> in the conference.
     */
    public static final String DISPLAY_NAME_PROPERTY_NAME = "DisplayName";

    /**
     * The name of the property of <tt>ConferenceMember</tt> which specifies
     * the state of the device and signaling session of the respective
     * <tt>ConferenceMember</tt> in the conference.
     */
    public static final String STATE_PROPERTY_NAME = "State";

    /**
     * Adds a specific <tt>PropertyChangeListener</tt> to the list of
     * listeners interested in and notified about changes in the values of the
     * properties of this <tt>ConferenceMember</tt> such as
     * <tt>#DISPLAY_NAME_PROPERTY_NAME</tt> and
     * <tt>#STATE_PROPERTY_NAME</tt>.
     *
     * @param listener
     *            a <tt>PropertyChangeListener</tt> to be notified about
     *            changes in the values of the properties of this
     *            <tt>ConferenceMember</tt>. If the specified listener is
     *            already in the list of interested listeners (i.e. it has been
     *            previously added), it is not added again.
     */
    public void addPropertyChangeListener(PropertyChangeListener listener);

    /**
     * Gets the SIP address of this <tt>ConferenceMember</tt> as specified by
     * the conference-info XML received from its
     * <tt>conferenceFocusCallPeer</tt>.
     *
     * @return the SIP address of this <tt>ConferenceMember</tt> as specified by
     * the conference-info XML received from its
     * <tt>conferenceFocusCallPeer</tt>
     */
    public String getAddress();

    /**
     * Gets the user-friendly display name of this <tt>ConferenceMember</tt>
     * in the conference.
     *
     * @return the user-friendly display name of this
     *         <tt>ConferenceMember</tt> in the conference
     */
    public String getDisplayName();

    /**
     * Gets the <tt>CallPeer</tt> which is the conference focus of
     * this <tt>ConferenceMember</tt>.
     *
     * @return the <tt>CallPeer</tt> which is the conference focus of
     *         this <tt>ConferenceMember</tt>
     */
    public CallPeer getConferenceFocusCallPeer();

    /**
     * Gets the state of the device and signaling session of this
     * <tt>ConferenceMember</tt> in the conference in the form of a
     * <tt>ConferenceMemberState</tt> value.
     *
     * @return a <tt>ConferenceMemberState</tt> value which represents the
     *         state of the device and signaling session of this
     *         <tt>ConferenceMember</tt> in the conference
     */
    public ConferenceMemberState getState();

    /**
     * Removes a specific <tt>PropertyChangeListener</tt> from the list of
     * listeners interested in and notified about changes in the values of the
     * properties of this <tt>ConferenceMember</tt> such as
     * <tt>#DISPLAY_NAME_PROPERTY_NAME</tt> and
     * <tt>#STATE_PROPERTY_NAME</tt>.
     *
     * @param listener
     *            a <tt>PropertyChangeListener</tt> to no longer be notified
     *            about changes in the values of the properties of this
     *            <tt>ConferenceMember</tt>
     */
    public void removePropertyChangeListener(PropertyChangeListener listener);

    /**
     * Returns the SSRC value associated with this participant or <tt>null</tt>
     * if the value is not currently known.;
     *
     * @return the ssrc associated with the RTP stream that this participant
     * is transmitting or <tt>null</tt> if this value is not currently known.
     */
    public long getSSRC();
}