dom/system/gonk/nsINetworkInterfaceListService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/system/gonk/nsINetworkInterfaceListService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     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 file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#include "nsINetworkManager.idl"
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +[scriptable, uuid(b44d74db-c9d6-41dd-98ae-a56918d6e6ad)]
    1.12 +interface nsINetworkInterfaceList : nsISupports
    1.13 +{
    1.14 +  /**
    1.15 +   * Number of the network interfaces that is available.
    1.16 +   */
    1.17 +  long getNumberOfInterface();
    1.18 +
    1.19 +  /**
    1.20 +   * Get the i-th interface from the list.
    1.21 +   * @param interfaceIndex index of interface, from 0 to number of interface - 1.
    1.22 +   */
    1.23 +  nsINetworkInterface getInterface(in long interfaceIndex);
    1.24 +};
    1.25 +
    1.26 +[scriptable, uuid(ee0e7cd7-1baa-44fd-86cb-f70acb549163)]
    1.27 +interface nsINetworkInterfaceListService : nsISupports
    1.28 +{
    1.29 +  const long LIST_NOT_INCLUDE_MMS_INTERFACES  = (1 << 0);
    1.30 +  const long LIST_NOT_INCLUDE_SUPL_INTERFACES = (1 << 1);
    1.31 +  const long LIST_NOT_INCLUDE_IMS_INTERFACES  = (1 << 2);
    1.32 +  const long LIST_NOT_INCLUDE_DUN_INTERFACES  = (1 << 3);
    1.33 +
    1.34 +  /**
    1.35 +   * Obtain a list of network interfaces that satisfy the specified condition.
    1.36 +   * @param condition flags that specify the interfaces to be returned. This
    1.37 +   *        can be OR combination of LIST_* flags, or zero to make all available
    1.38 +   *        interfaces returned.
    1.39 +   */
    1.40 +  nsINetworkInterfaceList getDataInterfaceList(in long condition);
    1.41 +};

mercurial