mailnews/import/src/nsImportFieldMap.h
author Patrick Cloke <clokep@gmail.com>
Thu, 16 Oct 2014 18:05:41 -0400
changeset 20883 56fe4fac57d0916883a373cb7640681631ee0fe0
parent 20461 21e13ac2fe1f124fd027a0b1b111c6b04154f443
child 22597 44917543a77bebdc40d8f84c3825c1a2abf013ce
permissions -rw-r--r--
Backout part of 2f79b0b939ed that's unrelated. a=Standard8

/* -*- 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 "nsIAddrDatabase.h"
#include "nsVoidArray.h"


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

class nsIStringBundle;

class nsImportFieldMap : public nsIImportFieldMap
{
public:
  NS_DECL_THREADSAFE_ISUPPORTS

  NS_DECL_NSIIMPORTFIELDMAP

  nsImportFieldMap(nsIStringBundle *aBundle);

   static NS_METHOD Create(nsIStringBundle *aBundle, nsISupports *aOuter, 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;
  nsVoidArray  m_descriptions;
  int32_t    m_mozFieldCount;
  bool        m_skipFirstRecord;
};


#endif