decoder.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KHTMLDECODER_H
00024 #define KHTMLDECODER_H
00025
00026 #include <qstring.h>
00027 class QTextCodec;
00028 class QTextDecoder;
00029
00030 namespace khtml {
00034 class Decoder
00035 {
00036 public:
00037 Decoder();
00038 ~Decoder();
00039
00040 void setEncoding(const char *encoding, bool force = false);
00041 const char *encoding() const;
00042
00043 QString decode(const char *data, int len);
00044
00045 bool visuallyOrdered() const { return visualRTL; }
00046
00047 const QTextCodec *codec() const { return m_codec; }
00048
00049 QString flush() const;
00050
00051 protected:
00052
00053 QTextCodec *m_codec;
00054 QTextDecoder *m_decoder;
00055 QCString enc;
00056
00057 QCString buffer;
00058
00059 bool body;
00060 bool beginning;
00061 bool visualRTL;
00062 bool haveEncoding;
00063 };
00064
00065 }
00066 #endif
This file is part of the documentation for kdelibs Version 3.1.5.