michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsIMIMEHeaderParam.h" michael@0: michael@0: #ifndef __nsmimeheaderparamimpl_h___ michael@0: #define __nsmimeheaderparamimpl_h___ michael@0: class nsMIMEHeaderParamImpl : public nsIMIMEHeaderParam michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIMIMEHEADERPARAM michael@0: michael@0: nsMIMEHeaderParamImpl() {} michael@0: virtual ~nsMIMEHeaderParamImpl() {} michael@0: private: michael@0: enum ParamDecoding { michael@0: MIME_FIELD_ENCODING = 1, michael@0: HTTP_FIELD_ENCODING michael@0: }; michael@0: michael@0: nsresult DoGetParameter(const nsACString& aHeaderVal, michael@0: const char *aParamName, michael@0: ParamDecoding aDecoding, michael@0: const nsACString& aFallbackCharset, michael@0: bool aTryLocaleCharset, michael@0: char **aLang, michael@0: nsAString& aResult); michael@0: michael@0: nsresult DoParameterInternal(const char *aHeaderValue, michael@0: const char *aParamName, michael@0: ParamDecoding aDecoding, michael@0: char **aCharset, michael@0: char **aLang, michael@0: char **aResult); michael@0: michael@0: }; michael@0: michael@0: #endif michael@0: