Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsINetworkManager.idl"
6 #include "nsISupports.idl"
8 [scriptable, uuid(b44d74db-c9d6-41dd-98ae-a56918d6e6ad)]
9 interface nsINetworkInterfaceList : nsISupports
10 {
11 /**
12 * Number of the network interfaces that is available.
13 */
14 long getNumberOfInterface();
16 /**
17 * Get the i-th interface from the list.
18 * @param interfaceIndex index of interface, from 0 to number of interface - 1.
19 */
20 nsINetworkInterface getInterface(in long interfaceIndex);
21 };
23 [scriptable, uuid(ee0e7cd7-1baa-44fd-86cb-f70acb549163)]
24 interface nsINetworkInterfaceListService : nsISupports
25 {
26 const long LIST_NOT_INCLUDE_MMS_INTERFACES = (1 << 0);
27 const long LIST_NOT_INCLUDE_SUPL_INTERFACES = (1 << 1);
28 const long LIST_NOT_INCLUDE_IMS_INTERFACES = (1 << 2);
29 const long LIST_NOT_INCLUDE_DUN_INTERFACES = (1 << 3);
31 /**
32 * Obtain a list of network interfaces that satisfy the specified condition.
33 * @param condition flags that specify the interfaces to be returned. This
34 * can be OR combination of LIST_* flags, or zero to make all available
35 * interfaces returned.
36 */
37 nsINetworkInterfaceList getDataInterfaceList(in long condition);
38 };