Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.gibberish
Class CallPeerGibberishImpl

java.lang.Object
  extended by net.java.sip.communicator.util.event.PropertyChangeNotifier
      extended by net.java.sip.communicator.service.protocol.AbstractCallPeer<CallGibberishImpl,ProtocolProviderServiceGibberishImpl>
          extended by net.java.sip.communicator.impl.protocol.gibberish.CallPeerGibberishImpl
All Implemented Interfaces:
CallPeer

public class CallPeerGibberishImpl
extends AbstractCallPeer<CallGibberishImpl,ProtocolProviderServiceGibberishImpl>

A Gibberish implementation of the CallPeer interface.

Author:
Yana Stamcheva

Field Summary
 
Fields inherited from class net.java.sip.communicator.service.protocol.AbstractCallPeer
callPeerConferenceListeners, callPeerListeners, callPeerSecurityListeners, NO_CONFERENCE_MEMBERS
 
Fields inherited from interface net.java.sip.communicator.service.protocol.CallPeer
CALL_DURATION_START_TIME_UNKNOWN, MUTE_PROPERTY_NAME
 
Constructor Summary
CallPeerGibberishImpl(String address, CallGibberishImpl owningCall)
          Creates an instance of CallPeerGibberishImpl by specifying the call peer address and the parent owningCall.
 
Method Summary
 void addConferenceMembersSoundLevelListener(ConferenceMembersSoundLevelListener listener)
          Adds a specific SoundLevelListener to the list of listeners interested in and notified about changes in conference members sound level.
 void addStreamSoundLevelListener(SoundLevelListener listener)
          Adds a specific SoundLevelListener to the list of listeners interested in and notified about changes in stream sound level related information.
(package private)  void fireConferenceMembersSoundLevelEvent(Map<ConferenceMember,Integer> levels)
          Fires a StreamSoundLevelEvent and notifies all registered listeners.
(package private)  void fireStreamSoundLevelEvent(int level)
          Fires a StreamSoundLevelEvent and notifies all registered listeners.
 String getAddress()
          Returns a String locator for that peer.
 CallGibberishImpl getCall()
          Returns a reference to the call that this peer belongs to.
 Contact getContact()
          Returns the contact corresponding to this peer or null if no particular contact has been associated.
 String getDisplayName()
          Returns a human readable name representing this peer.
 byte[] getImage()
          The method returns an image representation of the call peer (e.g.
 String getPeerID()
          Returns a unique identifier representing this peer.
 ProtocolProviderServiceGibberishImpl getProtocolProvider()
          Returns the protocol provider that this peer belongs to.
 String getURI()
          Returns full URI of the address.
 void removeConferenceMembersSoundLevelListener(ConferenceMembersSoundLevelListener listener)
          Removes a specific SoundLevelListener of the list of listeners interested in and notified about changes in conference members sound level.
 void removeStreamSoundLevelListener(SoundLevelListener listener)
          Removes a specific SoundLevelListener of the list of listeners interested in and notified about changes in stream sound level related information.
 
Methods inherited from class net.java.sip.communicator.service.protocol.AbstractCallPeer
addCallPeerConferenceListener, addCallPeerListener, addCallPeerSecurityListener, addConferenceMember, findConferenceMember, fireCallPeerChangeEvent, fireCallPeerChangeEvent, fireCallPeerChangeEvent, fireCallPeerConferenceEvent, fireCallPeerSecurityMessageEvent, fireCallPeerSecurityNegotiationStartedEvent, fireCallPeerSecurityOffEvent, fireCallPeerSecurityOnEvent, fireCallPeerSecurityTimeoutEvent, getCallDurationStartTime, getCallInfoURL, getConferenceMemberCount, getConferenceMembers, getCurrentSecuritySettings, getState, isConferenceFocus, isMute, removeCallPeerConferenceListener, removeCallPeerListener, removeCallPeerSecurityListener, removeConferenceMember, setConferenceFocus, setMute, setState, setState, setState, toString
 
Methods inherited from class net.java.sip.communicator.util.event.PropertyChangeNotifier
addPropertyChangeListener, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.sip.communicator.service.protocol.CallPeer
addPropertyChangeListener, removePropertyChangeListener
 

Constructor Detail

CallPeerGibberishImpl

public CallPeerGibberishImpl(String address,
                             CallGibberishImpl owningCall)
Creates an instance of CallPeerGibberishImpl by specifying the call peer address and the parent owningCall.

Parameters:
address - the address of the peer
owningCall - the parent call
Method Detail

getAddress

public String getAddress()
Returns a String locator for that peer.

Returns:
the peer's address or phone number.

getURI

public String getURI()
Returns full URI of the address.

Returns:
full URI of the address

getCall

public CallGibberishImpl getCall()
Returns a reference to the call that this peer belongs to.

Specified by:
getCall in interface CallPeer
Specified by:
getCall in class AbstractCallPeer<CallGibberishImpl,ProtocolProviderServiceGibberishImpl>
Returns:
a reference to the call containing this peer.

getDisplayName

public String getDisplayName()
Returns a human readable name representing this peer.

Returns:
a String containing a name for that peer.

getImage

public byte[] getImage()
The method returns an image representation of the call peer (e.g.

Returns:
byte[] a byte array containing the image or null if no image is available.

getPeerID

public String getPeerID()
Returns a unique identifier representing this peer.

Returns:
an identifier representing this call peer.

getContact

public Contact getContact()
Returns the contact corresponding to this peer or null if no particular contact has been associated.

Returns:
the Contact corresponding to this peer or null if no particular contact has been associated.

getProtocolProvider

public ProtocolProviderServiceGibberishImpl getProtocolProvider()
Returns the protocol provider that this peer belongs to.

Specified by:
getProtocolProvider in interface CallPeer
Specified by:
getProtocolProvider in class AbstractCallPeer<CallGibberishImpl,ProtocolProviderServiceGibberishImpl>
Returns:
a reference to the ProtocolProviderService that this peer belongs to.

addStreamSoundLevelListener

public void addStreamSoundLevelListener(SoundLevelListener listener)
Adds a specific SoundLevelListener to the list of listeners interested in and notified about changes in stream sound level related information.

Parameters:
listener - the SoundLevelListener to add

removeStreamSoundLevelListener

public void removeStreamSoundLevelListener(SoundLevelListener listener)
Removes a specific SoundLevelListener of the list of listeners interested in and notified about changes in stream sound level related information.

Parameters:
listener - the SoundLevelListener to remove

addConferenceMembersSoundLevelListener

public void addConferenceMembersSoundLevelListener(ConferenceMembersSoundLevelListener listener)
Adds a specific SoundLevelListener to the list of listeners interested in and notified about changes in conference members sound level.

Parameters:
listener - the SoundLevelListener to add

removeConferenceMembersSoundLevelListener

public void removeConferenceMembersSoundLevelListener(ConferenceMembersSoundLevelListener listener)
Removes a specific SoundLevelListener of the list of listeners interested in and notified about changes in conference members sound level.

Parameters:
listener - the SoundLevelListener to remove

fireStreamSoundLevelEvent

void fireStreamSoundLevelEvent(int level)
Fires a StreamSoundLevelEvent and notifies all registered listeners.

Parameters:
level - the new sound level

fireConferenceMembersSoundLevelEvent

void fireConferenceMembersSoundLevelEvent(Map<ConferenceMember,Integer> levels)
Fires a StreamSoundLevelEvent and notifies all registered listeners.

Parameters:
levels - the new sound levels

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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