SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol
Class AbstractConferenceMember

java.lang.Object
  extended by net.java.sip.communicator.util.PropertyChangeNotifier
      extended by net.java.sip.communicator.service.protocol.AbstractConferenceMember
All Implemented Interfaces:
ConferenceMember
Direct Known Subclasses:
ConferenceMemberGibberishImpl, ConferenceMemberSipImpl

public class AbstractConferenceMember
extends PropertyChangeNotifier
implements ConferenceMember

Provides the default implementation of the ConferenceMember interface.

Author:
Lubomir Marinov, Yana Stamcheva, Emil Ivov

Field Summary
 
Fields inherited from interface net.java.sip.communicator.service.protocol.ConferenceMember
DISPLAY_NAME_PROPERTY_NAME, STATE_PROPERTY_NAME
 
Constructor Summary
AbstractConferenceMember(CallPeer conferenceFocusCallPeer, String address)
          Creates an instance of AbstractConferenceMember by specifying the corresponding conferenceFocusCallPeer, to which this member is connected.
 
Method Summary
 String getAddress()
          Returns the protocol address of this ConferenceMember.
 CallPeer getConferenceFocusCallPeer()
          Returns the CallPeer, to which this member is connected.
 String getDisplayName()
          Returns the display name of this conference member.
 long getSSRC()
          Returns the SSRC value associated with this participant;
 ConferenceMemberState getState()
          Returns the state of this conference member.
 void setDisplayName(String displayName)
          Sets the user-friendly display name of this ConferenceMember in the conference and fires a new PropertyChangeEvent for the property #DISPLAY_NAME_PROPERTY_NAME.
 void setSSRC(long ssrc)
          Sets the SSRC identifier of this member.
 void setState(ConferenceMemberState state)
          Sets the state of the device and signaling session of this ConferenceMember in the conference and fires a new PropertyChangeEvent for the property #STATE_PROPERTY_NAME.
 
Methods inherited from class net.java.sip.communicator.util.PropertyChangeNotifier
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.java.sip.communicator.service.protocol.ConferenceMember
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

AbstractConferenceMember

public AbstractConferenceMember(CallPeer conferenceFocusCallPeer,
                                String address)
Creates an instance of AbstractConferenceMember by specifying the corresponding conferenceFocusCallPeer, to which this member is connected.

Parameters:
conferenceFocusCallPeer - the CallPeer to which this member is connected
address - the protocol address of this ConferenceMember
Method Detail

getConferenceFocusCallPeer

public CallPeer getConferenceFocusCallPeer()
Returns the CallPeer, to which this member is connected. Implements ConferenceMember#getConferenceFocusCallPeer().

Specified by:
getConferenceFocusCallPeer in interface ConferenceMember
Returns:
the CallPeer, to which this member is connected

getDisplayName

public String getDisplayName()
Returns the display name of this conference member. Implements ConferenceMember#getDisplayName().

Specified by:
getDisplayName in interface ConferenceMember
Returns:
the display name of this conference member

getState

public ConferenceMemberState getState()
Returns the state of this conference member. Implements ConferenceMember#getState().

Specified by:
getState in interface ConferenceMember
Returns:
the state of this conference member

getAddress

public String getAddress()
Returns the protocol address of this ConferenceMember.

Specified by:
getAddress in interface ConferenceMember
Returns:
the protocol address of this ConferenceMember

setDisplayName

public void setDisplayName(String displayName)
Sets the user-friendly display name of this ConferenceMember in the conference and fires a new PropertyChangeEvent for the property #DISPLAY_NAME_PROPERTY_NAME.

Parameters:
displayName - the user-friendly display name of this ConferenceMember in the conference

setState

public void setState(ConferenceMemberState state)
Sets the state of the device and signaling session of this ConferenceMember in the conference and fires a new PropertyChangeEvent for the property #STATE_PROPERTY_NAME.

Parameters:
state - the state of the device and signaling session of this ConferenceMember in the conference

getSSRC

public long getSSRC()
Returns the SSRC value associated with this participant;

Specified by:
getSSRC in interface ConferenceMember
Returns:
the ssrc

setSSRC

public void setSSRC(long ssrc)
Sets the SSRC identifier of this member.

Parameters:
ssrc - the SSRC ID to set for this member.

SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.