parts/doctreeview/chm/chmfile.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef __chmfile_h__
00018
#define __chmfile_h__
00019
00020
#include <cstdio>
00021
#include <qmap.h>
00022
#include <qstring.h>
00023
00024
class QFile;
00025
00026 struct ChmDirTableEntry
00027 {
00028 ChmDirTableEntry() :
section(0),
offset(0),
length(0) {}
00029 ChmDirTableEntry( uint s, uint o, uint l )
00030 :
section(s),
offset(o),
length(l) {}
00031
00032 uint
section;
00033 uint
offset;
00034 uint
length;
00035 };
00036
00037 typedef QMap<QString, ChmDirTableEntry> ChmDirectoryMap;
00038
00039 class Chm
00040 {
00041
public:
00042
bool read(
const QString&,
ChmDirectoryMap&,
QByteArray& )
const;
00043
00044
private:
00045
bool getChunk(
QFile&, uint,
ChmDirectoryMap& )
const;
00046 uint
getEncInt(
QFile&, uint& )
const;
00047 uint
getName(
QFile&,
QString& )
const;
00048 uint
getIntel32(
QFile& )
const;
00049 uint
getIntel64(
QFile& )
const;
00050 };
00051
00052
#endif // __chmfile_h__
00053
This file is part of the documentation for KDevelop Version 3.0.4.