Eneboo - Documentación para desarrolladores
|
00001 /**************************************************************************** 00002 ** $Id: qt/qeuckrcodec.h 3.3.8 edited Jan 11 14:46 $ 00003 ** 00004 ** Definition of QEucKrCodec class 00005 ** 00006 ** Created : 990303 00007 ** 00008 ** Copyright (C) 2000-2007 Trolltech ASA. All rights reserved. 00009 ** 00010 ** This file is part of the tools module of the Qt GUI Toolkit. 00011 ** 00012 ** This file may be distributed under the terms of the Q Public License 00013 ** as defined by Trolltech ASA of Norway and appearing in the file 00014 ** LICENSE.QPL included in the packaging of this file. 00015 ** 00016 ** This file may be distributed and/or modified under the terms of the 00017 ** GNU General Public License version 2 as published by the Free Software 00018 ** Foundation and appearing in the file LICENSE.GPL included in the 00019 ** packaging of this file. 00020 ** 00021 ** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition 00022 ** licenses may use this file in accordance with the Qt Commercial License 00023 ** Agreement provided with the Software. 00024 ** 00025 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00026 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00027 ** 00028 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for 00029 ** information about Qt Commercial License Agreements. 00030 ** See http://www.trolltech.com/qpl/ for QPL licensing information. 00031 ** See http://www.trolltech.com/gpl/ for GPL licensing information. 00032 ** 00033 ** Contact info@trolltech.com if any conditions of this licensing are 00034 ** not clear to you. 00035 ** 00036 **********************************************************************/ 00037 00038 /* 00039 * Copyright (C) 1999-2000 Mizi Research Inc. All rights reserved. 00040 * 00041 * Redistribution and use in source and binary forms, with or without 00042 * modification, are permitted provided that the following conditions 00043 * are met: 00044 * 1. Redistributions of source code must retain the above copyright 00045 * notice, this list of conditions and the following disclaimer. 00046 * 2. Redistributions in binary form must reproduce the above copyright 00047 * notice, this list of conditions and the following disclaimer in the 00048 * documentation and/or other materials provided with the distribution. 00049 * 00050 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 00051 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00052 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00053 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00054 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00055 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00056 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00057 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00058 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00059 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00060 * SUCH DAMAGE. 00061 */ 00062 00063 #ifndef QEUCKRCODEC_H 00064 #define QEUCKRCODEC_H 00065 00066 #ifndef QT_H 00067 #include "qtextcodec.h" 00068 #endif // QT_H 00069 00070 #ifndef QT_NO_BIG_CODECS 00071 00072 #if defined(QT_PLUGIN) 00073 #define Q_EXPORT_CODECS_KR 00074 #else 00075 #define Q_EXPORT_CODECS_KR Q_EXPORT 00076 #endif 00077 00078 class Q_EXPORT_CODECS_KR QEucKrCodec : public QTextCodec { 00079 public: 00080 virtual int mibEnum() const; 00081 const char* name() const; 00082 const char* mimeName() const; 00083 00084 QTextDecoder* makeDecoder() const; 00085 00086 #if !defined(Q_NO_USING_KEYWORD) 00087 using QTextCodec::fromUnicode; 00088 #endif 00089 QCString fromUnicode(const QString& uc, int& lenInOut) const; 00090 QString toUnicode(const char* chars, int len) const; 00091 00092 int heuristicContentMatch(const char* chars, int len) const; 00093 int heuristicNameMatch(const char* hint) const; 00094 }; 00095 00096 #endif 00097 #endif