1
/* This library is free software; you can redistribute it and/or
2
modify it under the terms of the GNU Library General Public
3
License as published by the Free Software Foundation; either
4
version 2 of the License, or (at your option) any later version.
6
This library is distributed in the hope that it will be useful,
7
but WITHOUT ANY WARRANTY; without even the implied warranty of
8
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9
Library General Public License for more details.
11
You should have received a copy of the GNU Library General Public License
12
along with this library; see the file COPYING.LIB. If not, write to
13
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
14
Boston, MA 02111-1307, USA.
26
struct ChmDirTableEntry
28
ChmDirTableEntry() : section(0), offset(0), length(0) {}
29
ChmDirTableEntry( uint s, uint o, uint l )
30
: section(s), offset(o), length(l) {}
37
typedef QMap<QString, ChmDirTableEntry> ChmDirectoryMap;
42
bool read( const QString&, ChmDirectoryMap&, QByteArray& ) const;
45
bool getChunk( QFile&, uint, ChmDirectoryMap& ) const;
46
uint getEncInt( QFile&, uint& ) const;
47
uint getName( QFile&, QString& ) const;
48
uint getIntel32( QFile& ) const;
49
uint getIntel64( QFile& ) const;
52
#endif // __chmfile_h__