dom/icc/IccContact.h
author David Anderson <danderson@mozilla.com>
Fri, 01 Jul 2016 01:15:16 -0700
changeset 343414 887adb3d9482c267c5928f5d900252361f35ac25
parent 286392 95df4f99f500f1cfab2b5e4eca7dee559871987d
child 363386 ac55a6776435142feebf3c20bbabfee100686416
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/. */

#ifndef mozilla_dom_icc_IccContact_h
#define mozilla_dom_icc_IccContact_h

#include "nsIIccContact.h"

namespace mozilla {
namespace dom {
class mozContact;
namespace icc {

class IccContact : public nsIIccContact
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIICCCONTACT

  static nsresult
  Create(mozContact& aMozContact,
         nsIIccContact** aIccContact);

  static nsresult
  Create(const nsAString& aId,
         const nsTArray<nsString>& aNames,
         const nsTArray<nsString>& aNumbers,
         const nsTArray<nsString>& aEmails,
         nsIIccContact** aIccContact);

private:
  IccContact(const nsAString& aId,
             const nsTArray<nsString>& aNames,
             const nsTArray<nsString>& aNumbers,
             const nsTArray<nsString>& aEmails);
  virtual ~IccContact() {}

  nsString mId;
  nsTArray<nsString> mNames;
  nsTArray<nsString> mNumbers;
  nsTArray<nsString> mEmails;
};

} // namespace icc
} // namespace dom
} // namespace mozilla

#endif // mozilla_dom_icc_IccContact_h