/* * 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 net.java.sip.communicator.util.*; /** * Represents a member and its details in a telephony conference managed by a * CallPeer in its role as a conference focus. * * @author Lubomir Marinov */ public interface ConferenceMember { /** * The name of the property of ConferenceMember which specifies * the user-friendly display name of the respective * ConferenceMember in the conference. */ public static final String DISPLAY_NAME_PROPERTY_NAME = "DisplayName"; /** * The name of the property of ConferenceMember which specifies * the state of the device and signaling session of the respective * ConferenceMember in the conference. */ public static final String STATE_PROPERTY_NAME = "State"; /** * Adds a specific PropertyChangeListener to the list of * listeners interested in and notified about changes in the values of the * properties of this ConferenceMember such as * #DISPLAY_NAME_PROPERTY_NAME and * #STATE_PROPERTY_NAME. * * @param listener * a PropertyChangeListener to be notified about * changes in the values of the properties of this * ConferenceMember. 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 user-friendly display name of this ConferenceMember * in the conference. * * @return the user-friendly display name of this * ConferenceMember in the conference */ public String getDisplayName(); /** * Gets the CallPeer which is the conference focus of * this ConferenceMember. * * @return the CallPeer which is the conference focus of * this ConferenceMember */ public CallPeer getConferenceFocusCallPeer(); /** * Gets the state of the device and signaling session of this * ConferenceMember in the conference in the form of a * ConferenceMemberState value. * * @return a ConferenceMemberState value which represents the * state of the device and signaling session of this * ConferenceMember in the conference */ public ConferenceMemberState getState(); /** * Removes a specific PropertyChangeListener from the list of * listeners interested in and notified about changes in the values of the * properties of this ConferenceMember such as * #DISPLAY_NAME_PROPERTY_NAME and * #STATE_PROPERTY_NAME. * * @param listener * a PropertyChangeListener to no longer be notified * about changes in the values of the properties of this * ConferenceMember */ public void removePropertyChangeListener(PropertyChangeListener listener); }