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