libkdenetwork Library API Documentation

qutf7codec.h

00001 /* 00002 qutf7codec.h 00003 00004 A QTextCodec for UTF-7 (rfc2152). 00005 Copyright (c) 2001 Marc Mutz <mutz@kde.org> 00006 See file COPYING for details 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License, version 2.0, 00010 as published by the Free Software Foundation. 00011 00012 You should have received a copy of the GNU General Public License 00013 along with this program; if not, write to the Free Software 00014 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00015 02111-1307, US 00016 00017 As a special exception, permission is granted to use this plugin 00018 with any version of Qt by TrollTech AS, Norway. In this case, the 00019 use of this plugin doesn't cause the resulting executable to be 00020 covered by the GNU General Public License. 00021 This exception does not however invalidate any other reasons why the 00022 executable file might be covered by the GNU General Public License. 00023 */ 00024 00025 #ifndef QUTF7CODEC_H 00026 #define QUTF7CODEC_H 00027 00028 #ifndef QT_H 00029 #include "qtextcodec.h" 00030 #endif 00031 00032 #ifndef QT_NO_TEXTCODEC 00033 00047 class Q_EXPORT QUtf7Codec : public QTextCodec { 00048 bool encOpt, encLwsp; 00049 public: 00050 QUtf7Codec() : QTextCodec() {} 00051 00052 int mibEnum() const; 00053 const char* name() const; 00054 const char* mimeName() const; 00055 00056 QTextDecoder* makeDecoder() const; 00057 QTextEncoder* makeEncoder() const; 00058 00059 bool canEncode( QChar ) const; 00060 bool canEncode( const QString& ) const; 00061 00062 int heuristicContentMatch( const char* chars, int len ) const; 00063 }; 00064 00083 class Q_EXPORT QStrictUtf7Codec : public QUtf7Codec { 00084 public: 00085 QStrictUtf7Codec() : QUtf7Codec() {} 00086 00087 const char* name() const; 00088 int mibEnum() const; 00089 00090 QTextEncoder* makeEncoder() const; 00091 }; 00092 00093 #endif // QT_NO_TEXTCODEC 00094 00095 #endif // QUTF7CODEC_H
KDE Logo
This file is part of the documentation for libkdenetwork Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Aug 27 12:48:47 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003