mailnews/import/src/nsImportFieldMap.h
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Tue, 28 Jun 2022 08:39:19 +0000
changeset 47252 fda1545ca792313b170d31925c3820277fca7931
parent 46670 8f4aec73540ff23ab29c64445d5e345636486056
permissions -rw-r--r--
no bug - Bumping Thunderbird l10n changesets r=release a=l10n-bump DONTBUILD it -> 609fb02bc49f74a1d501f02ea77456b91d7f234c ru -> 22416553f0282f7055d5a11cd12e5ce39e66c88d zh-CN -> d9bd02fd9a56cbc76cb8439170a589c192ba93c0

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 nsImportFieldMap_h___
#define nsImportFieldMap_h___

#include "nscore.h"
#include "nsIImportFieldMap.h"
#include "nsTArray.h"
#include "nsString.h"
#include "nsIStringBundle.h"

////////////////////////////////////////////////////////////////////////

class nsIStringBundle;

class nsImportFieldMap : public nsIImportFieldMap {
 public:
  NS_DECL_THREADSAFE_ISUPPORTS

  NS_DECL_NSIIMPORTFIELDMAP

  explicit nsImportFieldMap(nsIStringBundle* aBundle);

  static nsresult Create(nsIStringBundle* aBundle, REFNSIID aIID,
                         void** aResult);

 private:
  virtual ~nsImportFieldMap();
  nsresult Allocate(int32_t newSize);

 private:
  int32_t m_numFields;
  int32_t* m_pFields;
  bool* m_pActive;
  int32_t m_allocated;
  nsTArray<nsString*> m_descriptions;
  int32_t m_mozFieldCount;
  bool m_skipFirstRecord;
};

#endif