michael@0: /* -*- Mode: idl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsITelephonyProvider.idl" michael@0: michael@0: %{C++ michael@0: #define GONK_TELEPHONY_PROVIDER_CONTRACTID \ michael@0: "@mozilla.org/telephony/gonktelephonyprovider;1" michael@0: %} michael@0: michael@0: [scriptable, uuid(9d884482-90fc-4050-a4b1-1a370afe7a35)] michael@0: interface nsIGonkTelephonyProvider : nsITelephonyProvider michael@0: { michael@0: void notifyCallDisconnected(in unsigned long clientId, in jsval call); michael@0: michael@0: void notifyCallRing(); michael@0: michael@0: void notifyCallStateChanged(in unsigned long clientId, in jsval call, michael@0: [optional] in boolean skipStateConversion); michael@0: michael@0: void notifyCdmaCallWaiting(in unsigned long clientId, in AString number); michael@0: michael@0: void notifySupplementaryService(in unsigned long clientId, in long callIndex, michael@0: in AString notification); michael@0: michael@0: void notifyConferenceCallStateChanged(in short state); michael@0: };