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

Aportis Class Reference

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

Inheritance diagram for Aportis:

Inheritance graph
[legend]
Collaboration diagram for Aportis:

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

Private Member Functions

void dePeanut (int &)
bool refreshbuffer ()
unsigned int GetBS (unsigned int bn)

Private Attributes

bool peanutfile
bool html
DWORD dwLen
WORD nRecs2
DWORD dwTLen
WORD nRecs
WORD BlockSize
DWORD dwRecLen
WORD mobiimagerec
int currentrec
int currentpos
unsigned int cbptr
unsigned int outptr
unsigned char circbuf [2048]
char bCompressed

Constructor & Destructor Documentation

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

Definition at line 85 of file Aportis.h.

Aportis::Aportis  ) 
 

Definition at line 7 of file Aportis.cpp.


Member Function Documentation

QString Aportis::about  )  [inline, virtual]
 

Implements CExpander_Interface.

Definition at line 97 of file Aportis.h.

void Aportis::dePeanut int &   )  [private]
 

Definition at line 9 of file Aportis.cpp.

References peanutfile.

Referenced by getch().

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

Reimplemented from CExpander.

Definition at line 19 of file Aportis.cpp.

References bCompressed, Cpdb::fin, i, name, nRecs2, NULL, CList< T >::push_back(), SwapLong(), t, and Cpdb::unsuspend().

unsigned int Aportis::GetBS unsigned int  bn  )  [private]
 

Definition at line 322 of file Aportis.cpp.

References Cpdb::fin, SwapLong(), SwapWord(), Cpdb::unsuspend(), and WORD.

Referenced by locate(), and OpenFile().

int Aportis::getch  )  [virtual]
 

Implements CExpander.

Definition at line 243 of file Aportis.cpp.

References bCompressed, cbptr, circbuf, COUNT_BITS, currentpos, dePeanut(), dwRecLen, Cpdb::fin, outptr, refreshbuffer(), and Cpdb::unsuspend().

Referenced by locate(), and OpenFile().

QImage * Aportis::getPicture unsigned  long  )  [virtual]
 

Reimplemented from CExpander.

Definition at line 436 of file Aportis.cpp.

References Cpdb::fin, Cpdb::gotorecordnumber(), mobiimagerec, nRecs2, NULL, Cpdb::recordlength(), and Cpdb::unsuspend().

bool Aportis::hasrandomaccess  )  [inline, virtual]
 

Implements CExpander.

Definition at line 84 of file Aportis.h.

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

Implements CExpander.

Definition at line 365 of file Aportis.cpp.

References bCompressed, BlockSize, cbptr, currentpos, currentrec, GetBS(), getch(), i, nRecs, outptr, and refreshbuffer().

unsigned int Aportis::locate  )  [virtual]
 

Implements CExpander.

Definition at line 345 of file Aportis.cpp.

References bCompressed, BlockSize, currentpos, currentrec, Cpdb::fin, GetBS(), i, and Cpdb::unsuspend().

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

Implements CExpander.

Definition at line 94 of file Aportis.cpp.

References bCompressed, BlockSize, cbptr, DatabaseHdrType::creator, currentrec, dwLen, dwTLen, Cpdb::fin, GetBS(), getch(), Cpdb::gotorecordnumber(), Cpdb::head, html, i, mobiimagerec, nRecs, nRecs2, RecordListType::numRecords, Cpdb::openpdbfile(), outptr, p, peanutfile, printf, qDebug(), DatabaseHdrType::recordList, Cpdb::recordpos(), refreshbuffer(), SwapLong(), SwapWord(), and DatabaseHdrType::type.

MarkupType Aportis::PreferredMarkup  )  [inline, virtual]
 

Implements CExpander.

Definition at line 92 of file Aportis.h.

References cHTML, cPML, cTEXT, html, and peanutfile.

bool Aportis::refreshbuffer  )  [private]
 

Definition at line 399 of file Aportis.cpp.

References bCompressed, currentpos, currentrec, dwRecLen, Cpdb::fin, Cpdb::gotorecordnumber(), nRecs, printf, Cpdb::recordlength(), t, and Cpdb::unsuspend().

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

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

Implements Cpdb.

Definition at line 78 of file Aportis.h.

References BlockSize, dwLen, dwTLen, nRecs, and qDebug().


Member Data Documentation

char Aportis::bCompressed [private]
 

Definition at line 76 of file Aportis.h.

Referenced by getbkmklist(), getch(), locate(), OpenFile(), and refreshbuffer().

WORD Aportis::BlockSize [private]
 

Definition at line 69 of file Aportis.h.

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

unsigned int Aportis::cbptr [private]
 

Definition at line 73 of file Aportis.h.

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

unsigned char Aportis::circbuf[2048] [private]
 

Definition at line 75 of file Aportis.h.

Referenced by getch().

int Aportis::currentpos [private]
 

Definition at line 72 of file Aportis.h.

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

int Aportis::currentrec [private]
 

Definition at line 72 of file Aportis.h.

Referenced by locate(), OpenFile(), and refreshbuffer().

DWORD Aportis::dwLen [private]
 

Definition at line 65 of file Aportis.h.

Referenced by OpenFile(), and sizes().

DWORD Aportis::dwRecLen [private]
 

Definition at line 70 of file Aportis.h.

Referenced by getch(), and refreshbuffer().

DWORD Aportis::dwTLen [private]
 

Definition at line 67 of file Aportis.h.

Referenced by OpenFile(), and sizes().

bool Aportis::html [private]
 

Definition at line 63 of file Aportis.h.

Referenced by OpenFile(), and PreferredMarkup().

WORD Aportis::mobiimagerec [private]
 

Definition at line 71 of file Aportis.h.

Referenced by getPicture(), and OpenFile().

WORD Aportis::nRecs [private]
 

Definition at line 68 of file Aportis.h.

Referenced by locate(), OpenFile(), refreshbuffer(), and sizes().

WORD Aportis::nRecs2 [private]
 

Definition at line 66 of file Aportis.h.

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

unsigned int Aportis::outptr [private]
 

Definition at line 74 of file Aportis.h.

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

bool Aportis::peanutfile [private]
 

Definition at line 63 of file Aportis.h.

Referenced by dePeanut(), OpenFile(), and PreferredMarkup().


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