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

ztxt Class Reference

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

Inheritance diagram for ztxt:

Inheritance graph
[legend]
Collaboration diagram for ztxt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

QString about ()
void sizes (unsigned long &_file, unsigned long &_text)
bool hasrandomaccess ()
virtual ~ztxt ()
 ztxt ()
int OpenFile (const char *src)
int getch ()
unsigned int locate ()
void locate (unsigned int n)
CList< Bkmk > * getbkmklist ()
MarkupType PreferredMarkup ()

Private Member Functions

void home ()

Private Attributes

bool bInit
UInt32 buffersize
UInt32 buffercontent
UInt8expandedtextbuffer
UInt8compressedtextbuffer
z_stream zstream
size_t bufferpos
UInt16 bufferrec
zTXT_record0 hdr0
size_t currentpos

Constructor & Destructor Documentation

virtual ztxt::~ztxt  )  [inline, virtual]
 

Definition at line 89 of file ztxt.h.

References bInit, compressedtextbuffer, expandedtextbuffer, NULL, and zstream.

ztxt::ztxt  ) 
 

Definition at line 7 of file ztxt.cpp.


Member Function Documentation

QString ztxt::about  )  [inline, virtual]
 

Implements CExpander_Interface.

Definition at line 82 of file ztxt.h.

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

Reimplemented from CExpander.

Definition at line 143 of file ztxt.cpp.

References zTXT_record0Type::bookmarkRecord, Cpdb::fin, Cpdb::gotorecordnumber(), hdr0, i, MAX_BMRK_LENGTH, NULL, zTXT_record0Type::numBookmarks, CList< T >::push_back(), t, title, and Cpdb::unsuspend().

int ztxt::getch  )  [virtual]
 

Implements CExpander.

Definition at line 37 of file ztxt.cpp.

References buffercontent, bufferpos, bufferrec, buffersize, compressedtextbuffer, currentpos, expandedtextbuffer, Cpdb::fin, Cpdb::gotorecordnumber(), Cpdb::recordlength(), and zstream.

Referenced by locate().

bool ztxt::hasrandomaccess  )  [inline, virtual]
 

Implements CExpander.

Definition at line 88 of file ztxt.h.

References hdr0, and zTXT_record0Type::randomAccess.

Referenced by locate().

void ztxt::home  )  [private]
 

Definition at line 109 of file ztxt.cpp.

References bInit, buffercontent, bufferpos, bufferrec, buffersize, compressedtextbuffer, currentpos, expandedtextbuffer, Cpdb::fin, Cpdb::gotorecordnumber(), Cpdb::recordlength(), Cpdb::unsuspend(), and zstream.

Referenced by locate(), and OpenFile().

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

Implements CExpander.

Definition at line 65 of file ztxt.cpp.

References buffercontent, bufferpos, bufferrec, buffersize, compressedtextbuffer, currentpos, expandedtextbuffer, Cpdb::fin, getch(), Cpdb::gotorecordnumber(), hasrandomaccess(), hdr0, home(), Cpdb::recordlength(), zTXT_record0Type::recordSize, Cpdb::unsuspend(), and zstream.

unsigned int ztxt::locate  )  [virtual]
 

Implements CExpander.

Definition at line 60 of file ztxt.cpp.

References currentpos.

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

Implements CExpander.

Definition at line 10 of file ztxt.cpp.

References buffersize, compressedtextbuffer, expandedtextbuffer, Cpdb::fin, Cpdb::gotorecordnumber(), hdr0, Cpdb::head, home(), Cpdb::openpdbfile(), DatabaseHdrType::type, and ZTXT_ID.

MarkupType ztxt::PreferredMarkup  )  [inline, virtual]
 

Implements CExpander.

Definition at line 104 of file ztxt.h.

References cTEXT.

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

Implements Cpdb.

Definition at line 83 of file ztxt.h.

References Cpdb::file_length, hdr0, and zTXT_record0Type::size.


Member Data Documentation

bool ztxt::bInit [private]
 

Definition at line 70 of file ztxt.h.

Referenced by home(), and ~ztxt().

UInt32 ztxt::buffercontent [private]
 

Definition at line 72 of file ztxt.h.

Referenced by getch(), home(), and locate().

size_t ztxt::bufferpos [private]
 

Definition at line 76 of file ztxt.h.

Referenced by getch(), home(), and locate().

UInt16 ztxt::bufferrec [private]
 

Definition at line 77 of file ztxt.h.

Referenced by getch(), home(), and locate().

UInt32 ztxt::buffersize [private]
 

Definition at line 71 of file ztxt.h.

Referenced by getch(), home(), locate(), and OpenFile().

UInt8* ztxt::compressedtextbuffer [private]
 

Definition at line 74 of file ztxt.h.

Referenced by getch(), home(), locate(), OpenFile(), and ~ztxt().

size_t ztxt::currentpos [private]
 

Definition at line 79 of file ztxt.h.

Referenced by getch(), home(), and locate().

UInt8* ztxt::expandedtextbuffer [private]
 

Definition at line 73 of file ztxt.h.

Referenced by getch(), home(), locate(), OpenFile(), and ~ztxt().

zTXT_record0 ztxt::hdr0 [private]
 

Definition at line 78 of file ztxt.h.

Referenced by getbkmklist(), hasrandomaccess(), locate(), OpenFile(), and sizes().

z_stream ztxt::zstream [private]
 

Definition at line 75 of file ztxt.h.

Referenced by getch(), home(), locate(), and ~ztxt().


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