libtdepim

qutf7codec.h
1 /*
2  qutf7codec.h
3 
4  A TQTextCodec for UTF-7 (rfc2152).
5  Copyright (c) 2001 Marc Mutz <mutz@kde.org>
6  See file COPYING for details
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License, version 2.0,
10  as published by the Free Software Foundation.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  02110-1301, US
16 
17  As a special exception, permission is granted to use this plugin
18  with any version of TQt by TrollTech AS, Norway. In this case, the
19  use of this plugin doesn't cause the resulting executable to be
20  covered by the GNU General Public License.
21  This exception does not however invalidate any other reasons why the
22  executable file might be covered by the GNU General Public License.
23 */
24 
25 #ifndef TQUTF7CODEC_H
26 #define TQUTF7CODEC_H
27 
28 #include "tqtextcodec.h"
29 
30 #include <tdemacros.h>
31 
32 #ifndef TQT_NO_TEXTCODEC
33 
48 class TDE_EXPORT TQUtf7Codec : public TQTextCodec {
49  bool encOpt, encLwsp;
50 public:
51  TQUtf7Codec() : TQTextCodec() {}
52 
53  int mibEnum() const;
54  const char* name() const;
55  const char* mimeName() const;
56 
57  TQTextDecoder* makeDecoder() const;
58  TQTextEncoder* makeEncoder() const;
59 
60  bool canEncode( TQChar ) const;
61  bool canEncode( const TQString& ) const;
62 
63  int heuristicContentMatch( const char* chars, int len ) const;
64 };
65 
84 class TDE_EXPORT TQStrictUtf7Codec : public TQUtf7Codec {
85 public:
87 
88  const char* name() const;
89  int mibEnum() const;
90 
91  TQTextEncoder* makeEncoder() const;
92 };
93 
94 #endif // TQT_NO_TEXTCODEC
95 
96 #endif // TQUTF7CODEC_H
This is a version of TQUtf7Codec, which should only be used in MIME transfer.
Definition: qutf7codec.h:84
A TQTextCodec for the UTF-7 transformation of Unicode.
Definition: qutf7codec.h:48