Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CHM Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-reader/CHM.h>

Inheritance diagram for CHM:

Inheritance graph
[legend]
Collaboration diagram for CHM:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void suspend ()
void unsuspend ()
bool hasnavigation ()
 CHM ()
virtual ~CHM ()
int OpenFile (const char *src)
int getch ()
unsigned int locate ()
void locate (unsigned int n)
bool hasrandomaccess ()
void sizes (unsigned long &_file, unsigned long &_text)
void addContent (QString content)
void getch (tchar &ch, CStyle &sty)
void setPath (QString PathName)
void setHomePath (QString PathName)
MarkupType PreferredMarkup ()
bool getFile (const QString &href, const QString &nm)
QImage * getPicture (const QString &href)
QString about ()

Private Member Functions

void start2endSection ()
bool FillBuffer ()
bool FillContent ()
void FillHomeContent ()

Private Attributes

chmUnitInfo m_ui
chmFilechmFile
chmUnitInfo chmui
QString chmHomeBuffer
QString chmBuffer
QString chmPath
QString chmHHCPath
unsigned int bufpos
unsigned long fsize
unsigned long m_homestart
unsigned long m_homeend

Constructor & Destructor Documentation

CHM::CHM  ) 
 

Definition at line 42 of file CHM.cpp.

References bufpos, chmBuffer, chmFile, chmHHCPath, chmPath, and NULL.

CHM::~CHM  )  [virtual]
 

Definition at line 50 of file CHM.cpp.

References chm_close(), chmFile, and NULL.


Member Function Documentation

QString CHM::about  )  [inline, virtual]
 

Implements CExpander_Interface.

Definition at line 61 of file CHM.h.

void CHM::addContent QString  content  ) 
 

Definition at line 91 of file CHM.cpp.

References chmBuffer.

Referenced by _print_ui_index().

bool CHM::FillBuffer  )  [private]
 

Definition at line 171 of file CHM.cpp.

References bufpos, chm_retrieve_object(), chmBuffer, chmFile, QString::find(), fsize, QString::length(), chmUnitInfo::length, QString::lower(), CExpander::m_currentend, CExpander::m_currentstart, m_ui, chmUnitInfo::start, QString::truncate(), and unsuspend().

Referenced by locate().

bool CHM::FillContent  )  [private]
 

Definition at line 207 of file CHM.cpp.

References bufpos, chm_resolve_object(), CHM_RESOLVE_SUCCESS, chm_retrieve_object(), chmBuffer, chmFile, chmPath, QString::find(), fsize, chmUnitInfo::length, QString::length(), QString::lower(), CExpander::m_currentend, CExpander::m_currentstart, m_ui, chmUnitInfo::start, QString::truncate(), and unsuspend().

Referenced by getFile().

void CHM::FillHomeContent  )  [private]
 

Definition at line 95 of file CHM.cpp.

References QValueList< T >::begin(), chm_resolve_object(), CHM_RESOLVE_SUCCESS, chm_retrieve_object(), chmBuffer, chmFile, chmHHCPath, chmHomeBuffer, QValueList< T >::end(), QString::find(), fsize, QString::left(), chmUnitInfo::length, QString::length(), CExpander::m_currentend, CExpander::m_currentstart, m_homeend, m_homestart, m_ui, QString::mid(), QStringList::split(), chmUnitInfo::start, and unsuspend().

Referenced by locate(), and OpenFile().

void CHM::getch tchar ch,
CStyle sty
 

Definition at line 341 of file CHM.cpp.

References getch(), and UEOF.

int CHM::getch  )  [virtual]
 

Implements CExpander.

Definition at line 330 of file CHM.cpp.

References QString::at(), bufpos, chmBuffer, and QString::length().

Referenced by getch().

bool CHM::getFile const QString href,
const QString nm
[virtual]
 

Reimplemented from CExpander.

Definition at line 252 of file CHM.cpp.

References chmPath, FillContent(), and qDebug().

QImage * CHM::getPicture const QString href  )  [virtual]
 

Reimplemented from CExpander.

Definition at line 269 of file CHM.cpp.

References chm_resolve_object(), CHM_RESOLVE_SUCCESS, chm_retrieve_object(), chmFile, chmUnitInfo::length, NULL, and qDebug().

bool CHM::hasnavigation  )  [inline, virtual]
 

Reimplemented from CExpander.

Definition at line 41 of file CHM.h.

bool CHM::hasrandomaccess  )  [inline, virtual]
 

Implements CExpander.

Definition at line 49 of file CHM.h.

void CHM::locate unsigned int  n  )  [virtual]
 

Implements CExpander.

Definition at line 357 of file CHM.cpp.

References bufpos, CHM_RESOLVE_FAILURE, chm_resolve_location(), chmFile, FillBuffer(), FillHomeContent(), CExpander::m_currentend, CExpander::m_currentstart, m_homeend, CExpander::m_homepos, m_homestart, m_ui, qDebug(), chmUnitInfo::start, and start2endSection().

unsigned int CHM::locate  )  [virtual]
 

Implements CExpander.

Definition at line 353 of file CHM.cpp.

References bufpos, and CExpander::m_currentstart.

Referenced by OpenFile().

int CHM::OpenFile const char *  src  )  [virtual]
 

Implements CExpander.

Definition at line 309 of file CHM.cpp.

References _get_hhc(), chm_close(), chm_enumerate(), CHM_ENUMERATE_ALL, chm_open(), chmFile, chmPath, FillHomeContent(), fsize, locate(), CExpander::m_homepos, NULL, qDebug(), and setHomePath().

MarkupType CHM::PreferredMarkup  )  [inline, virtual]
 

Implements CExpander.

Definition at line 56 of file CHM.h.

References cCHM.

void CHM::setHomePath QString  PathName  )  [inline]
 

Definition at line 54 of file CHM.h.

References chmHHCPath.

Referenced by OpenFile().

void CHM::setPath QString  PathName  )  [inline]
 

Definition at line 53 of file CHM.h.

References chmPath.

Referenced by _get_hhc().

void CHM::sizes unsigned long &  _file,
unsigned long &  _text
[virtual]
 

Implements CExpander.

Definition at line 388 of file CHM.cpp.

References fsize.

void CHM::start2endSection  )  [private, virtual]
 

Reimplemented from CExpander.

Definition at line 347 of file CHM.cpp.

References chmBuffer, QString::length(), CExpander::m_currentend, CExpander::m_currentstart, m_ui, and chmUnitInfo::start.

Referenced by locate().

void CHM::suspend  ) 
 

Definition at line 55 of file CHM.cpp.

References CExpander::bSuspended, chm_close(), chmFile, NULL, and CExpander::sustime.

void CHM::unsuspend  ) 
 

Definition at line 65 of file CHM.cpp.

References CExpander::bSuspended, chm_open(), chmFile, CExpander::fname, i, NULL, PROGNAME, Global::statusMessage(), CExpander::sustime, and warning().

Referenced by FillBuffer(), FillContent(), and FillHomeContent().


Member Data Documentation

unsigned int CHM::bufpos [private]
 

Definition at line 35 of file CHM.h.

Referenced by CHM(), FillBuffer(), FillContent(), getch(), and locate().

QString CHM::chmBuffer [private]
 

Definition at line 32 of file CHM.h.

Referenced by addContent(), CHM(), FillBuffer(), FillContent(), FillHomeContent(), getch(), and start2endSection().

struct chmFile* CHM::chmFile [private]
 

Definition at line 28 of file CHM.h.

Referenced by CHM(), FillBuffer(), FillContent(), FillHomeContent(), getPicture(), locate(), OpenFile(), suspend(), unsuspend(), and ~CHM().

QString CHM::chmHHCPath [private]
 

Definition at line 34 of file CHM.h.

Referenced by CHM(), FillHomeContent(), and setHomePath().

QString CHM::chmHomeBuffer [private]
 

Definition at line 31 of file CHM.h.

Referenced by FillHomeContent().

QString CHM::chmPath [private]
 

Definition at line 33 of file CHM.h.

Referenced by CHM(), FillContent(), getFile(), OpenFile(), and setPath().

chmUnitInfo CHM::chmui [private]
 

Definition at line 29 of file CHM.h.

unsigned long CHM::fsize [private]
 

Definition at line 36 of file CHM.h.

Referenced by FillBuffer(), FillContent(), FillHomeContent(), OpenFile(), and sizes().

unsigned long CHM::m_homeend [private]
 

Definition at line 37 of file CHM.h.

Referenced by FillHomeContent(), and locate().

unsigned long CHM::m_homestart [private]
 

Definition at line 37 of file CHM.h.

Referenced by FillHomeContent(), and locate().

struct chmUnitInfo CHM::m_ui [private]
 

Definition at line 27 of file CHM.h.

Referenced by FillBuffer(), FillContent(), FillHomeContent(), locate(), and start2endSection().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:28:50 2005 for OPIE by  doxygen 1.4.2