add nsICharsetAlias.h interface

This commit is contained in:
ftang%netscape.com 1999-02-25 19:21:25 +00:00
Родитель ce6acb6643
Коммит c9e99e509c
4 изменённых файлов: 69 добавлений и 21 удалений

Просмотреть файл

@ -1,8 +1,9 @@
nsICharsetConverterManager.h
nsICharsetAlias.h
nsICharsetConverterInfo.h
nsIUnicodeDecoder.h
nsIUnicodeDecodeUtil.h
nsIUnicodeEncoder.h
nsIUnicodeEncodeHelper.h
nsICharsetConverterManager.h
nsIPlatformCharset.h
nsIUnicodeDecodeUtil.h
nsIUnicodeDecoder.h
nsIUnicodeEncodeHelper.h
nsIUnicodeEncoder.h
uconvutil.h

Просмотреть файл

@ -24,14 +24,15 @@ include $(DEPTH)/config/autoconf.mk
MODULE = uconv
EXPORTS = \
nsICharsetConverterManager.h \
nsICharsetConverterInfo.h \
nsIUnicodeDecoder.h \
nsIUnicodeDecodeUtil.h \
nsIUnicodeEncoder.h \
nsIUnicodeEncodeHelper.h \
nsIPlatformCharset.h \
uconvutil.h \
nsICharsetAlias.h \
nsICharsetConverterInfo.h \
nsICharsetConverterManager.h \
nsIPlatformCharset.h \
nsIUnicodeDecodeUtil.h \
nsIUnicodeDecoder.h \
nsIUnicodeEncodeHelper.h \
nsIUnicodeEncoder.h \
uconvutil.h \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))

Просмотреть файл

@ -18,14 +18,15 @@
DEPTH=..\..\..
EXPORTS = \
nsICharsetConverterManager.h \
nsICharsetConverterInfo.h \
nsIUnicodeDecoder.h \
nsIUnicodeDecodeUtil.h \
nsIUnicodeEncoder.h \
nsIUnicodeEncodeHelper.h \
nsIPlatformCharset.h \
uconvutil.h \
nsICharsetAlias.h \
nsICharsetConverterInfo.h \
nsICharsetConverterManager.h \
nsIPlatformCharset.h \
nsIUnicodeDecodeUtil.h \
nsIUnicodeDecoder.h \
nsIUnicodeEncodeHelper.h \
nsIUnicodeEncoder.h \
uconvutil.h \
$(NULL)
MODULE=uconv

Просмотреть файл

@ -0,0 +1,45 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
* the License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Mozilla Communicator client code.
*
* The Initial Developer of the Original Code is Netscape Communications
* Corporation. Portions created by Netscape are Copyright (C) 1998
* Netscape Communications Corporation. All Rights Reserved.
*/
#ifndef nsICharsetAlias_h___
#define nsICharsetAlias_h___
#include "nscore.h"
#include "nsISupports.h"
// {CCD4D374-CCDC-11d2-B3B1-00805F8A6670}
NS_DECLARE_ID(kICharsetAliasIID,
{ 0xccd4d374, 0xccdc, 0x11d2, \
{ 0xb3, 0xb1, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } };
class nsICharsetAlias : public nsISupports
{
public:
NS_IMETHOD GetPreferred(nsString& aAlias, nsString& aResult) = 0;
NS_IMETHOD GetPreferred(const PRUnichar* aAlias, const PRUnichar** aResult) = 0;
NS_IMETHOD GetPreferred(const char* aAlias, const char** aResult) = 0;
NS_IMETHOD Equals(nsString& aCharset, nsString& aCharset, PRBool* aResult) = 0;
NS_IMETHOD Equals(const PRUnichar* aCharset, const PRUnichar* aCharset, PRBool* aResult) = 0;
NS_IMETHOD Equals(const char* aCharset, const char* aCharset, PRBool* aResult) = 0;
};
#endif /* nsICharsetAlias_h___ */