• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kpilot

PilotSerialDatabase Class Reference

#include <pilotSerialDatabase.h>

Inheritance diagram for PilotSerialDatabase:

Inheritance graph
[legend]

List of all members.


Detailed Description

PilotSerialDatabase represents databases stored on the handheld and accessed through the SLP / DLP protocol.

Definition at line 48 of file pilotSerialDatabase.h.


Public Member Functions

virtual int cleanup ()
virtual bool createDatabase (long creator=0, long type=0, int cardno=0, int flags=0, int version=0)
virtual QString dbPathName () const
virtual DBType dbType () const
virtual int deleteDatabase ()
virtual int deleteRecord (recordid_t id, bool all=false)
virtual struct DBInfo & getDBInfo () const
QString getDBName ()
virtual QList< recordid_t > idList ()
virtual int readAppBlock (unsigned char *buffer, int maxLen)
virtual PilotRecord * readNextModifiedRec (int *ind=NULL)
virtual PilotRecord * readNextRecInCategory (int category)
virtual PilotRecord * readRecordById (recordid_t id)
virtual PilotRecord * readRecordByIndex (int index)
virtual unsigned int recordCount () const
virtual int resetDBIndex ()
virtual int resetSyncFlags ()
virtual int writeAppBlock (unsigned char *buffer, int len)
virtual recordid_t writeRecord (PilotRecord *newRecordb)
virtual ~PilotSerialDatabase ()

Protected Member Functions

virtual void closeDatabase ()
int getDBHandle () const
virtual void openDatabase ()
 PilotSerialDatabase (KPilotDeviceLink *l, const DBInfo *info)
 PilotSerialDatabase (KPilotDeviceLink *l, const QString &dbName)

Constructor & Destructor Documentation

PilotSerialDatabase::PilotSerialDatabase ( KPilotDeviceLink *  l,
const QString &  dbName 
) [protected]

Definition at line 48 of file pilotSerialDatabase.cc.

PilotSerialDatabase::PilotSerialDatabase ( KPilotDeviceLink *  l,
const DBInfo *  info 
) [protected]

Definition at line 59 of file pilotSerialDatabase.cc.

PilotSerialDatabase::~PilotSerialDatabase (  )  [virtual]

Definition at line 85 of file pilotSerialDatabase.cc.


Member Function Documentation

int PilotSerialDatabase::cleanup (  )  [virtual]

Purges all Archived/Deleted records from Palm Pilot database.

Implements PilotDatabase.

Definition at line 332 of file pilotSerialDatabase.cc.

void PilotSerialDatabase::closeDatabase (  )  [protected, virtual]

Implements PilotDatabase.

Definition at line 411 of file pilotSerialDatabase.cc.

bool PilotSerialDatabase::createDatabase ( long  creator = 0,
long  type = 0,
int  cardno = 0,
int  flags = 0,
int  version = 0 
) [virtual]

Creates the database with the given creator, type and flags on the given card (default is RAM).

If the database already exists, this function does nothing.

Implements PilotDatabase.

Definition at line 390 of file pilotSerialDatabase.cc.

QString PilotSerialDatabase::dbPathName (  )  const [virtual]

Returns some sensible human-readable identifier for the database.

Serial databases get Pilot:, local databases return the full path.

Implements PilotDatabase.

Definition at line 91 of file pilotSerialDatabase.cc.

PilotDatabase::DBType PilotSerialDatabase::dbType (  )  const [virtual]

Implements PilotDatabase.

Definition at line 436 of file pilotSerialDatabase.cc.

int PilotSerialDatabase::deleteDatabase (  )  [virtual]

Deletes the database (by name, as given in the constructor and stored in the fDBName field).

Implements PilotDatabase.

Definition at line 425 of file pilotSerialDatabase.cc.

int PilotSerialDatabase::deleteRecord ( recordid_t  id,
bool  all = false 
) [virtual]

Deletes a record with the given recordid_t from the database, or all records, if all is set to true.

The recordid_t will be ignored in this case. Return value is negative on error, 0 otherwise.

Implements PilotDatabase.

Definition at line 295 of file pilotSerialDatabase.cc.

int PilotSerialDatabase::getDBHandle (  )  const [inline, protected]

Returns the file handle used to communicate with the handheld.

This is an internal value to be passed to DLP functions.

Definition at line 126 of file pilotSerialDatabase.h.

virtual struct DBInfo& PilotSerialDatabase::getDBInfo (  )  const [inline, read, virtual]

Returns the DBInfo struct of this database.

Implements PilotDatabase.

Definition at line 63 of file pilotSerialDatabase.h.

QString PilotSerialDatabase::getDBName (  )  [inline]

Definition at line 115 of file pilotSerialDatabase.h.

QList< recordid_t > PilotSerialDatabase::idList (  )  [virtual]

Returns a QValueList of all record ids in the database.

Reimplemented from PilotDatabase.

Definition at line 146 of file pilotSerialDatabase.cc.

void PilotSerialDatabase::openDatabase (  )  [protected, virtual]

Implements PilotDatabase.

Definition at line 343 of file pilotSerialDatabase.cc.

int PilotSerialDatabase::readAppBlock ( unsigned char *  buffer,
int  maxLen 
) [virtual]

Reads the application block info, returns size.

Implements PilotDatabase.

Definition at line 99 of file pilotSerialDatabase.cc.

PilotRecord * PilotSerialDatabase::readNextModifiedRec ( int *  ind = NULL  )  [virtual]

Reads the next record from database that has the dirty flag set.

ind (if a valid pointer is given) will receive the index of the returned record.

Implements PilotDatabase.

Definition at line 242 of file pilotSerialDatabase.cc.

PilotRecord * PilotSerialDatabase::readNextRecInCategory ( int  category  )  [virtual]

Reads the next record from database in category 'category'.

Implements PilotDatabase.

Definition at line 223 of file pilotSerialDatabase.cc.

PilotRecord * PilotSerialDatabase::readRecordById ( recordid_t  id  )  [virtual]

Reads a record from database by id, returns record length.

Implements PilotDatabase.

Definition at line 173 of file pilotSerialDatabase.cc.

PilotRecord * PilotSerialDatabase::readRecordByIndex ( int  index  )  [virtual]

Reads a record from database, returns the record length.

Implements PilotDatabase.

Definition at line 197 of file pilotSerialDatabase.cc.

unsigned int PilotSerialDatabase::recordCount (  )  const [virtual]

returns the number of records in the database, 0 if not open

Implements PilotDatabase.

Definition at line 130 of file pilotSerialDatabase.cc.

int PilotSerialDatabase::resetDBIndex (  )  [virtual]

Resets next record index to beginning.

Implements PilotDatabase.

Definition at line 320 of file pilotSerialDatabase.cc.

int PilotSerialDatabase::resetSyncFlags (  )  [virtual]

Resets all records in the database to not dirty.

Implements PilotDatabase.

Definition at line 308 of file pilotSerialDatabase.cc.

int PilotSerialDatabase::writeAppBlock ( unsigned char *  buffer,
int  len 
) [virtual]

Writes the application block info.

Implements PilotDatabase.

Definition at line 118 of file pilotSerialDatabase.cc.

recordid_t PilotSerialDatabase::writeRecord ( PilotRecord *  newRecordb  )  [virtual]

Writes a new record to database (if 'id' == 0, one will be assigned to newRecord).

Implements PilotDatabase.

Definition at line 263 of file pilotSerialDatabase.cc.


The documentation for this class was generated from the following files:
  • pilotSerialDatabase.h
  • pilotSerialDatabase.cc

kpilot

Skip menu "kpilot"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal