CallParticipant methods with the purpose of only leaving custom
* protocol development to clients using the PhoneUI service.
*
* @author Emil Ivov
*/
public abstract class AbstractCallParticipant
implements CallParticipant
{
private static final Logger logger
= Logger.getLogger(AbstractCallParticipant.class);
/**
* All the CallParticipant listeners registered with this CallParticipant.
*/
protected final ListCallParticipant transitioned
* into a state (likely {@link CallParticipantState#CONNECTED}) marking the
* start of the duration of the participation in a Call.
*
* @return the time at which this CallParticipant transitioned
* into a state marking the start of the duration of the
* participation in a Call or
* {@link CallParticipant#CALL_DURATION_START_TIME_UNKNOWN} if such
* a transition has not been performed
*/
public long getCallDurationStartTime()
{
return callDurationStartTime;
}
/**
* Determines whether the audio stream (if any) being sent to this
* participant is mute.
* * The default implementation returns false. *
* * @return true if an audio stream is being sent to this * participant and it is currently mute; false, otherwise */ public boolean isMute() { return false; } /** * Sets the security status for this call participant. * * @param isSecurityOntrue to indicate that the security is
* turned on and false - otherwise.
* @param sessionType the type of the call session - audio or video.
*/
public void setSecurityOn( boolean isSecurityOn,
String sessionType,
String cipher,
String securityString,
boolean isVerified)
{
if (isSecurityOn)
fireCallParticipantSecurityOnEvent(
sessionType,
cipher,
securityString,
isVerified);
}
public void setSecurityOff(String sessionType)
{
fireCallParticipantSecurityOffEvent(sessionType);
}
/**
* Sets the security message associated with a failure/warning or
* information coming from the encryption protocol.
*
* @param messageType the type of the message.
* @param message the message
*/
public void setSecurityMessage( String messageType,
String message,
String i18nMessage)
{
fireCallParticipantSecurityMessageEvent(messageType,
message,
i18nMessage);
}
}