dom/system/gonk/nsIRadioInterfaceLayer.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/system/gonk/nsIRadioInterfaceLayer.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,98 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsISupports.idl"
     1.9 +#include "nsINetworkManager.idl"
    1.10 +
    1.11 +interface nsIDOMMozIccInfo;
    1.12 +interface nsIDOMMozMobileConnectionInfo;
    1.13 +interface nsIMobileMessageCallback;
    1.14 +
    1.15 +[scriptable, uuid(6e0f45b8-410e-11e3-8c8e-b715b2cd0128)]
    1.16 +interface nsIRilNetworkInterface : nsINetworkInterface
    1.17 +{
    1.18 +  readonly attribute unsigned long serviceId;
    1.19 +  readonly attribute DOMString iccId;
    1.20 +
    1.21 +  /* The following attributes are for MMS proxy settings. */
    1.22 +  readonly attribute DOMString mmsc;     // Empty string if not set.
    1.23 +  readonly attribute DOMString mmsProxy; // Empty string if not set.
    1.24 +  readonly attribute long      mmsPort;  // -1 if not set.
    1.25 +};
    1.26 +
    1.27 +[scriptable, uuid(c0c5cb9f-6372-4b5a-b74c-baacc2da5e4f)]
    1.28 +interface nsIVoicemailInfo : nsISupports
    1.29 +{
    1.30 +  readonly attribute DOMString number;
    1.31 +
    1.32 +  readonly attribute DOMString displayName;
    1.33 +};
    1.34 +
    1.35 +[scriptable, uuid(95e1be50-c912-11e2-8b8b-0800200c9a66)]
    1.36 +interface nsIRilContext : nsISupports
    1.37 +{
    1.38 +  readonly attribute DOMString radioState;
    1.39 +
    1.40 +  readonly attribute DOMString cardState;
    1.41 +
    1.42 +  readonly attribute long retryCount;
    1.43 +
    1.44 +  readonly attribute DOMString imsi;
    1.45 +
    1.46 +  readonly attribute DOMString networkSelectionMode;
    1.47 +
    1.48 +  readonly attribute nsIDOMMozIccInfo iccInfo;
    1.49 +
    1.50 +  readonly attribute nsIDOMMozMobileConnectionInfo voice;
    1.51 +
    1.52 +  readonly attribute nsIDOMMozMobileConnectionInfo data;
    1.53 +};
    1.54 +
    1.55 +[scriptable, function, uuid(3bc96351-53b0-47a1-a888-c74c64b60f25)]
    1.56 +interface nsIRilSendWorkerMessageCallback : nsISupports
    1.57 +{
    1.58 +  boolean handleResponse(in jsval response);
    1.59 +};
    1.60 +
    1.61 +[scriptable, uuid(181d460e-220e-4274-8ba4-43f122eb518d)]
    1.62 +interface nsIRadioInterface : nsISupports
    1.63 +{
    1.64 +  readonly attribute nsIRilContext rilContext;
    1.65 +
    1.66 +  /**
    1.67 +   * PDP APIs
    1.68 +   */
    1.69 +  void setupDataCallByType(in DOMString apntype);
    1.70 +  void deactivateDataCallByType(in DOMString apntype);
    1.71 +  long getDataCallStateByType(in DOMString apntype);
    1.72 +
    1.73 +  void updateRILNetworkInterface();
    1.74 +
    1.75 +  /**
    1.76 +   * SMS-related functionality.
    1.77 +   */
    1.78 +  void getSegmentInfoForText(in DOMString text,
    1.79 +                             in nsIMobileMessageCallback request);
    1.80 +
    1.81 +  void sendSMS(in DOMString number,
    1.82 +               in DOMString message,
    1.83 +               in boolean silent,
    1.84 +               in nsIMobileMessageCallback request);
    1.85 +
    1.86 +  void sendWorkerMessage(in DOMString type,
    1.87 +              [optional] in jsval message,
    1.88 +              [optional] in nsIRilSendWorkerMessageCallback callback);
    1.89 +
    1.90 +  void getSmscAddress(in nsIMobileMessageCallback request);
    1.91 +};
    1.92 +
    1.93 +[scriptable, uuid(d035c32e-b491-11e3-9f9d-c716fab88bd6)]
    1.94 +interface nsIRadioInterfaceLayer : nsISupports
    1.95 +{
    1.96 +  readonly attribute unsigned long numRadioInterfaces;
    1.97 +
    1.98 +  nsIRadioInterface getRadioInterface(in unsigned long clientId);
    1.99 +
   1.100 +  void setMicrophoneMuted(in boolean muted);
   1.101 +};

mercurial