WebAPI/WebTelephony: Difference between revisions

Jump to navigation Jump to search
Line 45: Line 45:
   // Array of all calls that are currently connected.
   // Array of all calls that are currently connected.
   readonly attribute jsval calls;
   readonly attribute jsval calls;
  readonly attribute nsIDOMTelephonyCallGroup conferanceGroup;
   
   
   void startTone(in DOMString tone);
   void startTone(in DOMString tone);
Line 60: Line 62:
   // "disconnected", "incoming", "holding", "held", "resuming"
   // "disconnected", "incoming", "holding", "held", "resuming"
   readonly attribute DOMString state;
   readonly attribute DOMString state;
  readonly attribute nsIDOMTelephonyCallGroup group;
   
   
   // functions to mediate a call.
   // functions to mediate a call.
Line 65: Line 69:
   void hangUp();
   void hangUp();
   void hold();  
   void hold();  
  // Resuming a group automatically holds any other groups/calls
   void resume();  
   void resume();  
   
   
Line 80: Line 85:
   attribute nsIDOMEventListener onheld;  
   attribute nsIDOMEventListener onheld;  
   attribute nsIDOMEventListener onresuming;  
   attribute nsIDOMEventListener onresuming;  
};
interface nsIDOMTelephonyCallGroup : nsIDOMEventTarget
{
  // Array of all calls that are currently in this group. The length
  // of this array is never 1.
  readonly attribute jsval calls;
  // Add a call to the callgroup. call2 must not be specified if the
  // callgroup isn't empty.
  // If the callgroup is empty both call and call2 must be specified,
  // and one of them must be in 'held' state and the other in
  // 'connected' state.
  // Neither call or call2 can be in 'disconnected' state.
  void add(nsIDOMTelephonyCall call, optional nsIDOMTelephonyCall call2);
  // Removes a call from the callgroup. If this leaves the callgroup with
  // just one call, then that last call is also removed from the callgroup.
  void remove(nsIDOMTelephonyCall call);
  void hold();
  // Resuming a group automatically holds any other groups/calls
  void resume();
  // When this changes, the state of all contained calls changes at the same time
  readonly attribute DOMString state;
  attribute nsIDOMEventListener onstatechange;
  attribute nsIDOMEventListener onconnected;
  attribute nsIDOMEventListener onholding;
  attribute nsIDOMEventListener onheld;
  attribute nsIDOMEventListener onresuming;
  };
  };


Confirmed users
716

edits

Navigation menu