X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fplugins%2Fstardict%2FCompressedReader.h;h=56aaf0be4e097e89ff99d9577c498050ccf2d33d;hb=f86f31535d8c34e40a83e5a722b06a5a490af0da;hp=1e7c14a1ad7f584f5a596a5da153b41d17539f99;hpb=f6932a2fbe05f2aa7a91c938479424bb7d87dc18;p=mdictionary diff --git a/src/plugins/stardict/CompressedReader.h b/src/plugins/stardict/CompressedReader.h index 1e7c14a..56aaf0b 100644 --- a/src/plugins/stardict/CompressedReader.h +++ b/src/plugins/stardict/CompressedReader.h @@ -31,65 +31,65 @@ #include "StarDictReader.h" /*! - Class implementing StarDictReader interface and handling rading from compressed + Class implementing StarDictReader interface and handling rading from compressed files like .gz or .dz, using zlib - */ +*/ class CompressedReader : public StarDictReader { Q_OBJECT public: CompressedReader(QObject *parent = 0); /*! - Creates new compressed reader and open file with passed filename - */ + Creates new compressed reader and open file with passed filename + */ CompressedReader(QString filename, QObject *parent = 0); /*! - Destructs object and closing file + Destructs object and closing file */ ~CompressedReader(); /*! - Reads translations text from compressed dict file. - \param offset 64-bit offset of translation in uncompressed file, readed + Reads translations text from compressed dict file. + \param offset 64-bit offset of translation in uncompressed file, readed from idx file - \param len length of uncompressed translation, readed from idx file too - */ + \param len length of uncompressed translation, readed from idx file too + */ QByteArray readString(qint64 offset, qint32 len); /*! - Reads 32-bits integer value from compressed file and convert it from - BigEndian to Little Endian - */ + Reads 32-bits integer value from compressed file and convert it from + BigEndian to Little Endian + */ qint32 readInt32BigEndian(); /*! - Reads 64-bits integer value from compressed file and convert it from - BigEndian to Little Endian - */ + Reads 64-bits integer value from compressed file and convert it from + BigEndian to Little Endian + */ qint64 readInt64BigEndian(); /*! - Reads single string from compressed file, end of string is marked as '\0' - in file. - */ + Reads single string from compressed file, end of string is marked as '\0' + in file. + */ QString readKeyword(); /*! - Closing file; - */ + Closing file; + */ void close(); protected: /*! - Opens file - \returns true if file is opened or false otherwise - */ + Opens file + \returns true if file is opened or false otherwise + */ bool open(QString file); /*! - Reads single char from compressed. - */ + Reads single char from compressed. + */ QChar readChar(); private: