diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 00:15:53 +0000 |
commit | 0aaa8e3fc8f8a1481333b564f0922277c8d8ad59 (patch) | |
tree | b95c0ca86c4876dd139af376b9f4afd8917cf0cd /src/devices/base/hex_buffer.h | |
parent | b79a2c28534cf09987eeeba3077fff9236df182a (diff) | |
download | piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.tar.gz piklab-0aaa8e3fc8f8a1481333b564f0922277c8d8ad59.zip |
TQt4 port piklab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1238822 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/devices/base/hex_buffer.h')
-rw-r--r-- | src/devices/base/hex_buffer.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/devices/base/hex_buffer.h b/src/devices/base/hex_buffer.h index 93b0640..fcbf1c5 100644 --- a/src/devices/base/hex_buffer.h +++ b/src/devices/base/hex_buffer.h @@ -12,9 +12,9 @@ #include "common/global/global.h" #include "common/common/bitvalue.h" -class QTextStream; +class TQTextStream; -class HexBuffer : public QMap<uint, BitValue> +class HexBuffer : public TQMap<uint, BitValue> { public: enum Format { /// Differents flavors of Intel HEX file formats @@ -26,26 +26,26 @@ public: }; static const char * const FORMATS[Nb_Formats]; - void savePartial(QTextStream &s, Format format) const; - void saveEnd(QTextStream &s) const; + void savePartial(TQTextStream &s, Format format) const; + void saveEnd(TQTextStream &s) const; enum ErrorType { UnrecognizedFormat, WrongCRC, UnexpectedEOF, UnexpectedEOL }; class ErrorData { public: ErrorData() {} ErrorData(uint _line, ErrorType _type) : line(_line), type(_type) {} - QString message() const; + TQString message() const; uint line; ErrorType type; }; - QValueList<ErrorData> load(QTextStream &stream, Format &format); - bool load(QTextStream &stream, QStringList &errors); + TQValueList<ErrorData> load(TQTextStream &stream, Format &format); + bool load(TQTextStream &stream, TQStringList &errors); private: enum { HEXBLKSIZE = 8 }; // line size in HEX files static bool fetchNextBlock(const_iterator& start, const const_iterator &end, int *len); - static void writeHexBlock(QTextStream &stream, int reclen, const_iterator& data, Format format); - void load(QTextStream &stream, Format &format, QValueList<ErrorData> &errors); + static void writeHexBlock(TQTextStream &stream, int reclen, const_iterator& data, Format format); + void load(TQTextStream &stream, Format &format, TQValueList<ErrorData> &errors); }; #endif |