1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef ImportTranslate_h___ 7 #define ImportTranslate_h___ 8 9 #include "nsString.h" 10 #include "nsImportTranslator.h" 11 12 class ImportTranslate { 13 public: 14 static bool ConvertString(const nsCString& inStr, nsCString& outStr, 15 bool mimeHeader); 16 static nsImportTranslator* GetTranslator(void); 17 static nsImportTranslator* GetMatchingTranslator(const char* pCharSet); 18 19 protected: 20 static int m_useTranslator; 21 }; 22 23 #endif /* ImportTranslate_h__ */ 24