org.jdesktop.wonderland.client.softphone
Class SoftphoneControlImpl

java.lang.Object
  extended by org.jdesktop.wonderland.client.softphone.SoftphoneControlImpl
All Implemented Interfaces:
SoftphoneControl

public class SoftphoneControlImpl
extends java.lang.Object
implements SoftphoneControl


Field Summary
 
Fields inherited from interface org.jdesktop.wonderland.client.softphone.SoftphoneControl
SOFTPHONE_PROP
 
Method Summary
 void addMicrophoneInfoListener(MicrophoneInfoListener listener)
           
 void addSoftphoneListener(SoftphoneListener listener)
           
 void addSpeakerInfoListener(SpeakerInfoListener listener)
           
 AudioQuality getAudioQuality()
           
 java.lang.String getCallID()
           
static SoftphoneControlImpl getInstance()
          Gets the one instance of SoftphoneControlImpl
 boolean isConnected()
           
 boolean isMuted()
           
 boolean isRunning()
           
 boolean isTooLoud()
           
 boolean isVisible()
           
 void logAudioProblem()
           
static void main(java.lang.String[] args)
           
 void mute(boolean isMuted)
           
 void pauseRecordingAudio()
           
 void recordAudio(java.lang.String recordingPath, boolean recordMic)
           
 void register(java.lang.String registrarAddress)
           
 void removeMicrophoneInfoListener(MicrophoneInfoListener listener)
           
 void removeSoftphoneListener(SoftphoneListener listener)
           
 void removeSpeakerInfoListener(SpeakerInfoListener listener)
           
 void resumeRecordingAudio()
           
 void runLineTest()
           
 void sendCommandToSoftphone(java.lang.String cmd)
           
 void setAudioQuality(AudioQuality quality)
           
 void setCallID(java.lang.String callID)
           
 void setVisible(boolean isVisible)
           
 void startMicVuMeter(boolean startVuMeter)
           
 java.lang.String startSoftphone(java.lang.String username, java.lang.String registrar, int registrarTimeout, java.lang.String localHost)
          Start up the softphone
 void startSpeakerVuMeter(boolean startSpeakerVuMeter)
           
 void stopRecordingAudio()
           
 void stopSoftphone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SoftphoneControlImpl getInstance()
Gets the one instance of SoftphoneControlImpl


startSoftphone

public java.lang.String startSoftphone(java.lang.String username,
                                       java.lang.String registrar,
                                       int registrarTimeout,
                                       java.lang.String localHost)
                                throws java.io.IOException
Start up the softphone

Specified by:
startSoftphone in interface SoftphoneControl
Throws:
java.io.IOException

stopSoftphone

public void stopSoftphone()
Specified by:
stopSoftphone in interface SoftphoneControl

setCallID

public void setCallID(java.lang.String callID)
Specified by:
setCallID in interface SoftphoneControl

getCallID

public java.lang.String getCallID()
Specified by:
getCallID in interface SoftphoneControl

register

public void register(java.lang.String registrarAddress)
Specified by:
register in interface SoftphoneControl

isRunning

public boolean isRunning()
Specified by:
isRunning in interface SoftphoneControl

isConnected

public boolean isConnected()
                    throws java.io.IOException
Specified by:
isConnected in interface SoftphoneControl
Throws:
java.io.IOException

isTooLoud

public boolean isTooLoud()

isVisible

public boolean isVisible()
Specified by:
isVisible in interface SoftphoneControl

setVisible

public void setVisible(boolean isVisible)
Specified by:
setVisible in interface SoftphoneControl

mute

public void mute(boolean isMuted)
Specified by:
mute in interface SoftphoneControl

isMuted

public boolean isMuted()
Specified by:
isMuted in interface SoftphoneControl

getAudioQuality

public AudioQuality getAudioQuality()
Specified by:
getAudioQuality in interface SoftphoneControl

setAudioQuality

public void setAudioQuality(AudioQuality quality)
Specified by:
setAudioQuality in interface SoftphoneControl

recordAudio

public void recordAudio(java.lang.String recordingPath,
                        boolean recordMic)
                 throws java.io.IOException
Specified by:
recordAudio in interface SoftphoneControl
Throws:
java.io.IOException

pauseRecordingAudio

public void pauseRecordingAudio()
                         throws java.io.IOException
Specified by:
pauseRecordingAudio in interface SoftphoneControl
Throws:
java.io.IOException

resumeRecordingAudio

public void resumeRecordingAudio()
                          throws java.io.IOException
Specified by:
resumeRecordingAudio in interface SoftphoneControl
Throws:
java.io.IOException

stopRecordingAudio

public void stopRecordingAudio()
                        throws java.io.IOException
Specified by:
stopRecordingAudio in interface SoftphoneControl
Throws:
java.io.IOException

sendCommandToSoftphone

public void sendCommandToSoftphone(java.lang.String cmd)
                            throws java.io.IOException
Specified by:
sendCommandToSoftphone in interface SoftphoneControl
Throws:
java.io.IOException

runLineTest

public void runLineTest()
                 throws java.io.IOException
Specified by:
runLineTest in interface SoftphoneControl
Throws:
java.io.IOException

logAudioProblem

public void logAudioProblem()
                     throws java.io.IOException
Specified by:
logAudioProblem in interface SoftphoneControl
Throws:
java.io.IOException

addSoftphoneListener

public void addSoftphoneListener(SoftphoneListener listener)
Specified by:
addSoftphoneListener in interface SoftphoneControl

removeSoftphoneListener

public void removeSoftphoneListener(SoftphoneListener listener)
Specified by:
removeSoftphoneListener in interface SoftphoneControl

startMicVuMeter

public void startMicVuMeter(boolean startVuMeter)
                     throws java.io.IOException
Specified by:
startMicVuMeter in interface SoftphoneControl
Throws:
java.io.IOException

addMicrophoneInfoListener

public void addMicrophoneInfoListener(MicrophoneInfoListener listener)
Specified by:
addMicrophoneInfoListener in interface SoftphoneControl

removeMicrophoneInfoListener

public void removeMicrophoneInfoListener(MicrophoneInfoListener listener)
Specified by:
removeMicrophoneInfoListener in interface SoftphoneControl

startSpeakerVuMeter

public void startSpeakerVuMeter(boolean startSpeakerVuMeter)
                         throws java.io.IOException
Specified by:
startSpeakerVuMeter in interface SoftphoneControl
Throws:
java.io.IOException

addSpeakerInfoListener

public void addSpeakerInfoListener(SpeakerInfoListener listener)
Specified by:
addSpeakerInfoListener in interface SoftphoneControl

removeSpeakerInfoListener

public void removeSpeakerInfoListener(SpeakerInfoListener listener)
Specified by:
removeSpeakerInfoListener in interface SoftphoneControl

main

public static void main(java.lang.String[] args)


Open Wonderland - http://openwonderland.org