~ubuntu-branches/ubuntu/lucid/kchmviewer/lucid

« back to all changes in this revision

Viewing changes to kio-msits/msits.h

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Tallon
  • Date: 2006-06-08 20:08:39 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20060608200839-8b7jodug8yvtj126
Tags: upstream-2.5
ImportĀ upstreamĀ versionĀ 2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#define MSITS_H
24
24
 
25
25
 
26
 
//#include <kio/global.h>
27
26
#include <kio/slavebase.h>
28
27
#include <kurl.h>
29
28
 
30
29
#include <qstring.h>
31
30
#include <qcstring.h>
32
31
 
 
32
#include "config.h"
33
33
#include "chm_lib.h"
34
34
 
35
35
 
59
59
        // Retrieve an object from the CHM file
60
60
        inline size_t RetrieveObject (const chmUnitInfo *ui, unsigned char *buffer, LONGUINT64 fileOffset, LONGINT64 bufferSize)
61
61
        {
62
 
                return ::chm_retrieve_object(m_chmFile, const_cast<chmUnitInfo*>(ui), buffer, fileOffset, bufferSize);
 
62
#if USE_BUILTIN_CHMLIB
 
63
                return ::chm_retrieve_object(m_chmFile, ui, buffer, 
 
64
                        fileOffset, bufferSize);
 
65
#else
 
66
                return ::chm_retrieve_object(m_chmFile, const_cast<chmUnitInfo*>(ui),
 
67
                        buffer, fileOffset, bufferSize);
 
68
#endif
63
69
        }
64
70
 
65
71
        // An opened file name, if presend