Call.java
Upload User: liulanlin
Upload Date: 2017-12-08
Package Size: 1274k
Code Size: 2k
Category:

VOIP program

Development Platform:

Java

  1. /*
  2.  * Call.java
  3.  * 
  4.  * Created on Mar 16, 2004
  5.  *
  6.  */
  7. package gov.nist.applet.phone.ua.call;
  8. import javax.sip.Dialog;
  9. /**
  10.  * This interface represents a call that can be received by the application
  11.  * 
  12.  * @author Jean Deruelle <jean.deruelle@nist.gov>
  13.  *
  14.  * <a href="{@docRoot}/uncopyright.html">This code is in the public domain.</a>
  15.  */
  16. public interface Call {
  17. public static final String NOT_IN_A_CALL="Not in a call";
  18. public static final String TRYING="Trying...";
  19. public static final String RINGING="Ringing...";
  20. public static final String IN_A_CALL="In a call";
  21. public static final String INCOMING_CALL="Incoming call";
  22. public static final String BUSY="Busy";
  23. public static final String CANCEL="Cancel";
  24. public static final String TEMPORARY_UNAVAILABLE="Temporary unavailable";
  25. /**
  26.  * Retrieve the callee of this call
  27.  * @return the callee of this call
  28.  */
  29. public String getCallee();
  30. /**
  31.  * Set the callee of this call
  32.  * @param callee - the callee of this call
  33.  */
  34. public void setCallee(String callee);
  35. /**
  36.  * Retrieve the dialog of the call
  37.  * @return the dialog of the call
  38.  */
  39. public Dialog getDialog();
  40. /**
  41.  * Set the dialog of the call
  42.  * @param dialog - the dialog of the call
  43.  */
  44. public void setDialog(Dialog dialog);
  45. /**
  46.  * Retrieve the current status of the call
  47.  * @return the current status of the call
  48.  */
  49. public String getStatus();
  50. /**
  51.  * Set the current status of the call
  52.  * @param callStatus - the current status of the call
  53.  */
  54. public void setStatus(String callStatus);
  55. }