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-05-14 21:13:06 -07:00
|
|
|
#include "nsIDOMDOMError.idl"
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
interface nsIDOMEventListener;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-05-14 21:13:06 -07:00
|
|
|
[scriptable, builtinclass, uuid(d902afb1-2e1d-412e-bfa3-cb6a9453a4db)]
|
2012-01-09 14:28:47 -08:00
|
|
|
interface nsIDOMTelephonyCall : nsIDOMEventTarget
|
|
|
|
{
|
2011-12-04 23:58:27 -08:00
|
|
|
readonly attribute DOMString number;
|
2012-01-09 14:28:47 -08:00
|
|
|
|
|
|
|
readonly attribute DOMString state;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-05-14 21:13:06 -07:00
|
|
|
readonly attribute nsIDOMDOMError error;
|
|
|
|
|
2011-12-04 23:58:27 -08:00
|
|
|
void answer();
|
2012-01-09 14:28:47 -08:00
|
|
|
void hangUp();
|
2012-04-05 01:12:42 -07:00
|
|
|
void hold();
|
|
|
|
void resume();
|
2012-01-09 14:28:47 -08:00
|
|
|
|
|
|
|
attribute nsIDOMEventListener onstatechange;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
attribute nsIDOMEventListener ondialing;
|
2012-03-15 20:13:42 -07:00
|
|
|
attribute nsIDOMEventListener onalerting;
|
2011-12-04 23:58:27 -08:00
|
|
|
attribute nsIDOMEventListener onbusy;
|
|
|
|
attribute nsIDOMEventListener onconnecting;
|
|
|
|
attribute nsIDOMEventListener onconnected;
|
|
|
|
attribute nsIDOMEventListener ondisconnecting;
|
|
|
|
attribute nsIDOMEventListener ondisconnected;
|
2012-04-05 01:12:42 -07:00
|
|
|
attribute nsIDOMEventListener onholding;
|
|
|
|
attribute nsIDOMEventListener onheld;
|
|
|
|
attribute nsIDOMEventListener onresuming;
|
2012-05-14 21:13:06 -07:00
|
|
|
|
|
|
|
attribute nsIDOMEventListener onerror;
|
2011-12-06 22:57:19 -08:00
|
|
|
};
|