00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ROOT_QSYMBOLCODEC_H
00011 #define ROOT_QSYMBOLCODEC_H
00012
00013
00014 #include <QByteArray>
00015 #include <QTextCodec>
00016 #include <QByteArray>
00017
00018 #ifndef QT_NO_CODEC_SYMBOL
00019
00020 class QSymbolCodec : public QTextCodec {
00021 public:
00022 virtual int mibEnum() const;
00023 QByteArray name() const;
00024 const char* mimeName() const;
00025
00026 #if !defined(Q_NO_USING_KEYWORD)
00027 using QTextCodec::fromUnicode;
00028 #endif
00029 QByteArray fromUnicode(const QString& uc, int& lenInOut) const;
00030 virtual QByteArray convertFromUnicode( const QChar * input, int number, ConverterState *state ) const;
00031 virtual QString convertToUnicode(const char *chars, int len, ConverterState *state) const;
00032
00033 QString toUnicode(const char* chars, int len) const;
00034 int heuristicContentMatch(const char* chars, int len) const;
00035 };
00036
00037 #endif
00038 #endif