services/mobileid/MobileIdentityUIGlueCommon.jsm
author Ralph Giles <giles@mozilla.com>
Mon, 28 Jul 2014 13:36:00 -0700
changeset 218571 30b20d83771751123bb5b1935036a39ac11d5ed5
parent 206648 e3dc24f425734635f3f6d663d2339c4234027d86
child 225125 38791329385233206c92f963b5b228e455e8ce87
permissions -rw-r--r--
Bug 941296 - Check for CoreMedia headers in configure. r=ted We build against the CoreMedia framework headers which are only available on 10.7 and later, although we run on 10.6. Check that this framework is available an configure time and print a relevant error message in case someone passes --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk.

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

"use strict";

this.EXPORTED_SYMBOLS = ["MobileIdentityUIGluePhoneInfo",
                         "MobileIdentityUIGluePromptResult"];

this.MobileIdentityUIGluePhoneInfo = function (aMsisdn, aOperator, aServiceId,
                                               aExternal, aPrimary) {
  this.msisdn = aMsisdn;
  this.operator = aOperator;
  this.serviceId = aServiceId;
  // A phone number is considered "external" when it doesn't or we don't know
  // if it does belong to any of the device SIM cards.
  this.external = aExternal;
  this.primary = aPrimary;
}

this.MobileIdentityUIGluePhoneInfo.prototype = {};

this.MobileIdentityUIGluePromptResult = function (aPhoneNumber, aPrefix, aMcc,
                                                  aServiceId) {
  this.phoneNumber = aPhoneNumber;
  this.prefix = aPrefix;
  this.mcc = aMcc;
  this.serviceId = aServiceId;
}

this.MobileIdentityUIGluePromptResult.prototype = {};