25#include "qutf7codec.h"
27#include <tqtextcodecplugin.h>
29#include <tqstringlist.h>
30#include <tqvaluelist.h>
36class TQUtf7CodecPlugin : public TQTextCodecPlugin {
38 TQUtf7CodecPlugin() {}
40 TQStringList names() const { return TQStringList() << "UTF-7" << "X-QT-UTF-7-STRICT"; }
41 TQValueList<int> mibEnums() const { return TQValueList<int>() << 1012 << -1012; }
42 TQTextCodec * createForMib( int );
43 TQTextCodec * createForName( const TQString & );
46TQTextCodec * TQUtf7CodecPlugin::createForMib( int mib ) {
48 return new TQUtf7Codec();
49 else if ( mib == -1012 )
50 return new TQStrictUtf7Codec();
54TQTextCodec * TQUtf7CodecPlugin::createForName( const TQString & name ) {
55 if ( name == "UTF-7" )
56 return new TQUtf7Codec();
57 else if ( name == "X-QT-UTF-7-STRICT" )
58 return new TQStrictUtf7Codec();
62TDE_EXPORT_PLUGIN( TQUtf7CodecPlugin );
|