2013-09-07 10:19:57 +04:00
|
|
|
/* -*- Mode: idl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/. */
|
|
|
|
|
2014-06-03 18:15:25 +04:00
|
|
|
#include "nsITelephonyService.idl"
|
2013-09-07 10:19:57 +04:00
|
|
|
|
|
|
|
%{C++
|
2014-06-03 18:15:25 +04:00
|
|
|
#define GONK_TELEPHONY_SERVICE_CONTRACTID \
|
|
|
|
"@mozilla.org/telephony/gonktelephonyservice;1"
|
2013-09-07 10:19:57 +04:00
|
|
|
%}
|
|
|
|
|
2015-05-06 10:58:00 +03:00
|
|
|
[scriptable, uuid(8653d76b-6805-41d2-8ea5-3b14fb4e682d)]
|
2014-06-03 18:15:25 +04:00
|
|
|
interface nsIGonkTelephonyService : nsITelephonyService
|
2013-09-07 10:19:57 +04:00
|
|
|
{
|
|
|
|
void notifyCallRing();
|
|
|
|
|
2015-03-24 13:04:49 +03:00
|
|
|
void notifyCurrentCalls(in unsigned long clientId, in jsval calls);
|
2013-09-07 10:19:57 +04:00
|
|
|
|
2014-04-16 15:07:11 +04:00
|
|
|
void notifyCdmaCallWaiting(in unsigned long clientId, in jsval waitingCall);
|
2013-09-07 10:19:57 +04:00
|
|
|
|
2015-03-24 13:04:49 +03:00
|
|
|
void notifySupplementaryService(in unsigned long clientId, in AString number,
|
2013-09-07 10:19:57 +04:00
|
|
|
in AString notification);
|
|
|
|
|
2014-10-15 10:51:00 +04:00
|
|
|
void notifyUssdReceived(in unsigned long clientId, in DOMString message,
|
|
|
|
in boolean sessionEnded);
|
2013-09-07 10:19:57 +04:00
|
|
|
};
|