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

CReb Class Reference

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

Inheritance diagram for CReb:

Inheritance graph
[legend]
Collaboration diagram for CReb:

Collaboration graph
[legend]
List of all members.

Public Member Functions

bool findanchor (const QString &_info)
QString about ()
bool getFile (const QString &href, const QString &nm)
void start2endSection ()
void sizes (unsigned long &_file, unsigned long &_text)
bool hasrandomaccess ()
virtual ~CReb ()
 CReb ()
int OpenFile (const char *src)
int getch ()
unsigned int locate ()
void locate (unsigned int n)
CList< Bkmk > * getbkmklist ()
MarkupType PreferredMarkup ()
void suspend ()
void unsuspend ()

Private Member Functions

void home ()
void startpage (UInt32)
void startpage (UInt32, bool, UInt32)
void readchunk ()
UInt32 pagelength (UInt32)
QImage * getPicture (const QString &ref)
UInt32 page2pos (UInt32)
void readindex (UInt32)

Private Attributes

size_t(* m_decompress )(UInt8 *, size_t, UInt8 *, size_t)
RBPage currentpage
UInt32 nopages
UInt32 m_homepage
UInt32 m_blocksize
QMap< QString, UInt32m_index
size_t file_length
size_t text_length
UInt32 toc
FILE * fin
QString tagstring
UInt32 tagoffset
UInt32m_indexpages
Page_detailm_pagedetails
QMap< QString, int > names
QStringtags
ParaRefparas
UInt32joins
UInt32 nojoins
UInt32 noparas
bool m_binary

Constructor & Destructor Documentation

CReb::~CReb  )  [virtual]
 

Definition at line 63 of file Reb.cpp.

References fin, joins, m_indexpages, m_pagedetails, NULL, paras, and tags.

CReb::CReb  ) 
 

Definition at line 56 of file Reb.cpp.


Member Function Documentation

QString CReb::about  )  [inline, virtual]
 

Implements CExpander_Interface.

Definition at line 126 of file Reb.h.

bool CReb::findanchor const QString _info  )  [virtual]
 

Reimplemented from CExpander.

Definition at line 563 of file Reb.cpp.

References currentpage, QMap< Key, T >::end(), QMap< Key, T >::find(), locate(), m_pagedetails, names, RBPage::pageno(), and Page_detail::pagestart.

CList< Bkmk > * CReb::getbkmklist  )  [virtual]
 

Reimplemented from CExpander.

Definition at line 181 of file Reb.cpp.

References NULL.

int CReb::getch  )  [virtual]
 

Implements CExpander.

Definition at line 643 of file Reb.cpp.

References currentpage, RBPage::getch(), QString::length(), tagoffset, tagstring, and QString::unicode().

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

Reimplemented from CExpander.

Definition at line 143 of file Reb.cpp.

References QMap< Key, T >::end(), QMap< Key, T >::find(), locate(), m_index, qDebug(), and startpage().

QImage * CReb::getPicture const QString ref  )  [private, virtual]
 

Reimplemented from CExpander.

Definition at line 160 of file Reb.cpp.

References QMap< Key, T >::end(), fin, QMap< Key, T >::find(), Page_detail::len, m_index, m_pagedetails, NULL, page2pos(), and unsuspend().

bool CReb::hasrandomaccess  )  [inline, virtual]
 

Implements CExpander.

Definition at line 134 of file Reb.h.

void CReb::home  )  [private]
 

Definition at line 183 of file Reb.cpp.

References m_homepage, and startpage().

Referenced by OpenFile().

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

Implements CExpander.

Definition at line 78 of file Reb.cpp.

References currentpage, Page_detail::flags, Page_detail::len, locate(), CExpander::m_currentend, CExpander::m_currentstart, m_pagedetails, nopages, noparas, page2pos(), RBPage::pageno(), Page_detail::pagestart, paras, pos, qDebug(), readindex(), RBPage::setoffset(), start2endSection(), ParaRef::tag, tagoffset, tags, tagstring, unsuspend(), and val.

unsigned int CReb::locate  )  [virtual]
 

Implements CExpander.

Definition at line 73 of file Reb.cpp.

References currentpage, m_pagedetails, RBPage::offset(), RBPage::pageno(), and Page_detail::pagestart.

Referenced by findanchor(), getFile(), locate(), and start2endSection().

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

Implements CExpander.

Definition at line 188 of file Reb.cpp.

References QMap< Key, T >::begin(), currentpage, QMap< Key, T >::end(), file_length, fin, QString::find(), QMap< Key, T >::find(), flags, RBPage::getch(), getdecompressor, home(), i, RBPage::init(), QString::isEmpty(), QString::left(), len, QString::length(), loc, m_binary, m_blocksize, m_decompress, m_homepage, CExpander::m_homepos, m_index, m_indexpages, m_pagedetails, name, nopages, NULL, page2pos(), pagelength(), Page_detail::pagestart, pos, qDebug(), QString::right(), s, RBPage::startpage(), text_length, toc, type, and UnZip().

UInt32 CReb::page2pos UInt32   )  [private]
 

Definition at line 352 of file Reb.cpp.

References fin, pos, and toc.

Referenced by getPicture(), locate(), OpenFile(), readindex(), and startpage().

UInt32 CReb::pagelength UInt32   )  [private]
 

Definition at line 360 of file Reb.cpp.

References fin, len, pos, and toc.

Referenced by OpenFile().

MarkupType CReb::PreferredMarkup  )  [inline, virtual]
 

Implements CExpander.

Definition at line 142 of file Reb.h.

References cCHM.

void CReb::readchunk  )  [private]
 

void CReb::readindex UInt32   )  [private]
 

Definition at line 371 of file Reb.cpp.

References QMap< Key, T >::clear(), currentpage, fin, QString::findRev(), Page_detail::flags, RBPage::getch(), RBPage::getint(), RBPage::getuint(), i, RBPage::init(), joins, l, QString::left(), Page_detail::len, RBPage::length(), QString::length(), m_binary, m_blocksize, m_decompress, m_indexpages, m_pagedetails, QString::mid(), names, nojoins, noparas, NULL, page2pos(), paras, qDebug(), QString::right(), s, RBPage::startpage(), tags, QString::toInt(), and val.

Referenced by locate(), and startpage().

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

Implements CExpander.

Definition at line 129 of file Reb.h.

References file_length, and text_length.

void CReb::start2endSection  )  [virtual]
 

Reimplemented from CExpander.

Definition at line 755 of file Reb.cpp.

References currentpage, joins, locate(), CExpander::m_currentend, CExpander::m_currentstart, RBPage::m_endoff, m_pagedetails, RBPage::m_startoff, nojoins, NULL, RBPage::offset(), RBPage::pageno(), Page_detail::pagestart, and qDebug().

Referenced by locate().

void CReb::startpage UInt32  ,
bool  ,
UInt32 
[private]
 

Definition at line 600 of file Reb.cpp.

References currentpage, page2pos(), readindex(), RBPage::startpage(), and unsuspend().

void CReb::startpage UInt32   )  [private]
 

Definition at line 592 of file Reb.cpp.

References currentpage, Page_detail::flags, Page_detail::len, m_pagedetails, page2pos(), readindex(), RBPage::startpage(), and unsuspend().

Referenced by getFile(), and home().

void CReb::suspend  )  [inline]
 

Definition at line 150 of file Reb.h.

void CReb::unsuspend  )  [inline]
 

Definition at line 151 of file Reb.h.

Referenced by getPicture(), locate(), and startpage().


Member Data Documentation

RBPage CReb::currentpage [private]
 

Definition at line 95 of file Reb.h.

Referenced by findanchor(), getch(), locate(), OpenFile(), readindex(), start2endSection(), and startpage().

size_t CReb::file_length [private]
 

Definition at line 100 of file Reb.h.

Referenced by OpenFile(), and sizes().

FILE* CReb::fin [private]
 

Definition at line 102 of file Reb.h.

Referenced by getPicture(), OpenFile(), page2pos(), pagelength(), readindex(), and ~CReb().

UInt32* CReb::joins [private]
 

Definition at line 119 of file Reb.h.

Referenced by readindex(), start2endSection(), and ~CReb().

bool CReb::m_binary [private]
 

Definition at line 122 of file Reb.h.

Referenced by OpenFile(), and readindex().

UInt32 CReb::m_blocksize [private]
 

Definition at line 96 of file Reb.h.

Referenced by OpenFile(), and readindex().

size_t(* CReb::m_decompress)(UInt8 *, size_t, UInt8 *, size_t) [private]
 

Referenced by OpenFile(), and readindex().

UInt32 CReb::m_homepage [private]
 

Definition at line 96 of file Reb.h.

Referenced by home(), and OpenFile().

QMap<QString, UInt32> CReb::m_index [private]
 

Definition at line 98 of file Reb.h.

Referenced by getFile(), getPicture(), and OpenFile().

UInt32* CReb::m_indexpages [private]
 

Definition at line 113 of file Reb.h.

Referenced by OpenFile(), readindex(), and ~CReb().

Page_detail* CReb::m_pagedetails [private]
 

Definition at line 114 of file Reb.h.

Referenced by findanchor(), getPicture(), locate(), OpenFile(), readindex(), start2endSection(), startpage(), and ~CReb().

QMap<QString, int> CReb::names [private]
 

Definition at line 116 of file Reb.h.

Referenced by findanchor(), and readindex().

UInt32 CReb::nojoins [private]
 

Definition at line 120 of file Reb.h.

Referenced by readindex(), and start2endSection().

UInt32 CReb::nopages [private]
 

Definition at line 96 of file Reb.h.

Referenced by locate(), and OpenFile().

UInt32 CReb::noparas [private]
 

Definition at line 121 of file Reb.h.

Referenced by locate(), and readindex().

ParaRef* CReb::paras [private]
 

Definition at line 118 of file Reb.h.

Referenced by locate(), readindex(), and ~CReb().

UInt32 CReb::tagoffset [private]
 

Definition at line 108 of file Reb.h.

Referenced by getch(), and locate().

QString* CReb::tags [private]
 

Definition at line 117 of file Reb.h.

Referenced by locate(), readindex(), and ~CReb().

QString CReb::tagstring [private]
 

Definition at line 107 of file Reb.h.

Referenced by getch(), and locate().

size_t CReb::text_length [private]
 

Definition at line 100 of file Reb.h.

Referenced by OpenFile(), and sizes().

UInt32 CReb::toc [private]
 

Definition at line 101 of file Reb.h.

Referenced by OpenFile(), page2pos(), and pagelength().


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