2012-01-09 14:28:47 -08:00
|
|
|
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=40: */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-12-04 23:58:27 -08:00
|
|
|
|
|
|
|
#include "nsIDOMEventTarget.idl"
|
2012-01-09 14:28:47 -08:00
|
|
|
|
2011-12-04 23:58:27 -08:00
|
|
|
interface nsIDOMEventListener;
|
2012-01-09 14:28:47 -08:00
|
|
|
interface nsIDOMTelephonyCall;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-07-20 05:08:24 -07:00
|
|
|
[scriptable, builtinclass, uuid(b3875982-7327-478f-98a2-54cc2de36d7d)]
|
2012-01-09 14:28:47 -08:00
|
|
|
interface nsIDOMTelephony : nsIDOMEventTarget
|
|
|
|
{
|
|
|
|
nsIDOMTelephonyCall dial(in DOMString number);
|
2012-07-20 05:08:24 -07:00
|
|
|
nsIDOMTelephonyCall dialEmergency(in DOMString number);
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2011-12-12 10:30:43 -08:00
|
|
|
attribute boolean muted;
|
2012-01-09 14:28:47 -08:00
|
|
|
attribute boolean speakerEnabled;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
// The call that is "active", i.e. receives microphone input and tones
|
|
|
|
// generated via startTone.
|
2012-02-24 05:14:37 -08:00
|
|
|
readonly attribute jsval active;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
// Array of all calls that are currently connected.
|
2012-02-23 07:09:11 -08:00
|
|
|
readonly attribute jsval calls;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
void startTone(in DOMString tone);
|
|
|
|
void stopTone();
|
2011-12-06 22:57:19 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
attribute nsIDOMEventListener onincoming;
|
2012-02-24 05:14:37 -08:00
|
|
|
attribute nsIDOMEventListener oncallschanged;
|
2011-12-06 22:57:19 -08:00
|
|
|
};
|