swpchat.client
Class TelephoneSession

java.lang.Object
  |
  +--swpchat.client.TelephoneSession
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class TelephoneSession
extends java.lang.Object
implements java.awt.event.ActionListener

Main class for the funky Telephone stuff. SpeakFreely gets started and stopped here and all the other classes are called by this one.


Field Summary
private  ClientControls clientControls
           
(package private) static java.lang.String CLS
           
private  TelephonGui gui
           
private  java.lang.Process mixer
           
private  java.lang.String mixerPath
           
private  java.lang.String remoteIP
           
private  java.lang.Runtime rt
           
private  java.lang.Process sfmike
           
private  java.lang.String sfmikePath
           
private  java.lang.Process sfspeaker
           
private  java.lang.String sfspeakerPath
           
 
Constructor Summary
TelephoneSession(java.lang.String remoteIP, java.lang.String partnerName, ClientControls clientControls)
          The constructor..
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          reacts to buttons pressed on the TelephoneGUI
 void endSession()
          stops SpeakFreely and generally ends the telephonesession
 void launchMixer()
          launches the local mixer program
 void launchSfMike(java.lang.String ip)
          launches the sender part of SpeakFreely
 void launchSfSpeaker()
          launches the speaker part of SpeakFreely
 void stopMixer()
          stops the local mixer program
 void stopSfMike()
          stops the sender part of SpeakFreely
 void stopSfSpeaker()
          stops the speaker part of SpeakFreely
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

CLS

static final java.lang.String CLS

gui

private TelephonGui gui

remoteIP

private java.lang.String remoteIP

sfmike

private java.lang.Process sfmike

sfspeaker

private java.lang.Process sfspeaker

mixer

private java.lang.Process mixer

rt

private java.lang.Runtime rt

sfmikePath

private java.lang.String sfmikePath

sfspeakerPath

private java.lang.String sfspeakerPath

mixerPath

private java.lang.String mixerPath

clientControls

private ClientControls clientControls
Constructor Detail

TelephoneSession

public TelephoneSession(java.lang.String remoteIP,
                        java.lang.String partnerName,
                        ClientControls clientControls)
The constructor.. launches the GUI and SFSpeaker
Parameters:
remoteIP - The remote partys IP.. what did you expect? The FBI central computer?
partnerName - the remote partys nickname
clientControls - what are ClientControls anyway?
Method Detail

endSession

public void endSession()
stops SpeakFreely and generally ends the telephonesession

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
reacts to buttons pressed on the TelephoneGUI
Specified by:
actionPerformed in interface java.awt.event.ActionListener

launchSfSpeaker

public void launchSfSpeaker()
                     throws java.io.IOException
launches the speaker part of SpeakFreely

launchSfMike

public void launchSfMike(java.lang.String ip)
                  throws java.io.IOException
launches the sender part of SpeakFreely

stopSfMike

public void stopSfMike()
stops the sender part of SpeakFreely

stopSfSpeaker

public void stopSfSpeaker()
stops the speaker part of SpeakFreely

launchMixer

public void launchMixer()
                 throws java.io.IOException
launches the local mixer program

stopMixer

public void stopMixer()
stops the local mixer program