dom/icc/interfaces/nsIIccContact.idl
author David Anderson <danderson@mozilla.com>
Fri, 01 Jul 2016 01:15:16 -0700
changeset 343414 887adb3d9482c267c5928f5d900252361f35ac25
parent 286389 44935ff56b63d73d92fa0c9e57d71f11182625bc
permissions -rw-r--r--
Move InProcessCompositorWidget to its own file. (bug 1281998 part 3, r=jimm)

/* 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/. */

#include "nsISupports.idl"

[scriptable, uuid(0f3dbcd1-9f7b-40a8-aa3c-b5701978ec53)]
interface nsIIccContact : nsISupports
{
  /**
   * The unique identifier of this ICC Contact.
   *
   * Note: This id is composed of the iccid and its record index of EF_ADN.
   */
  readonly attribute DOMString id;

  /**
   * Name list.
   *
   * The container of Alpha-Id in EF_ADN and Second Name in EF_SNE of this contact,
   * where EF_SNE provides the possibility to store a name in different language.
   *
   * @see 10.2.1 Support of two name fields per entry, 3GPP TS 21.111.
   *
   * @param aCount
   *        The number of names.
   *
   * @returns the array of names.
   */
  void getNames([optional] out unsigned long aCount,
                [array, size_is(aCount), retval] out wstring aNames);

  /**
   * Phone number list.
   *
   * The container of the dialing numbers of this contact in EF_ADN and EF_ANR.
   *
   * @see 10.2.2 Support of multiple phone numbers per entry, 3GPP TS 21.111.
   *
   * @param aCount
   *        The number of phone numbers.
   *
   * @returns the array of phone numbers.
   */
  void getNumbers([optional] out unsigned long aCount,
                  [array, size_is(aCount), retval] out wstring aNumbers);

  /**
   * Email list.
   *
   * The container of the emails of this contact in EF_EMAIL.
   *
   * @param aCount
   *        The number of emails.
   *
   * @returns the array of emails.
   */
  void getEmails([optional] out unsigned long aCount,
                 [array, size_is(aCount), retval] out wstring aEmails);
};