kpilot

DOCConduit Class Reference

#include <doc-conduit.h>

Inheritance diagram for DOCConduit:

List of all members.


Public Slots

void checkDeletedDocs ()
void checkPDBFiles ()
void cleanup ()
void resolve ()
void syncDatabases ()
void syncNextDB ()
void syncNextTXT ()

Public Member Functions

bool decode (PilotDatabase *db, QString fileName)
 DOCConduit (KPilotLink *o, const char *n=0L, const QStringList &a=QStringList())
bool encode (QStringList fileName, PilotDatabase *db)
virtual bool exec ()
virtual ~DOCConduit ()

Public Attributes

eSyncDirectionEnum eSyncDirection

Protected Member Functions

virtual const unsigned long dbcreator ()
virtual const unsigned long dbtype ()
virtual bool isCorrectDBTypeCreator (DBInfo dbinfo)

Detailed Description

Definition at line 56 of file doc-conduit.h.


Constructor & Destructor Documentation

DOCConduit::DOCConduit ( KPilotLink o,
const char *  n = 0L,
const QStringList a = QStringList() 
)

Definition at line 80 of file doc-conduit.cc.

DOCConduit::~DOCConduit (  )  [virtual]

Definition at line 89 of file doc-conduit.cc.


Member Function Documentation

void DOCConduit::checkDeletedDocs (  )  [slot]

Definition at line 557 of file doc-conduit.cc.

void DOCConduit::checkPDBFiles (  )  [slot]

This slot will only be used if DOCConduitSettings::keepPDBsLocally() to check if new doc databases have been copied to the pdb directory.

If so, install it to the handheld and sync it to the PC

Definition at line 499 of file doc-conduit.cc.

void DOCConduit::cleanup (  )  [slot]

Definition at line 1010 of file doc-conduit.cc.

const unsigned long DOCConduit::dbcreator (  )  [protected, virtual]

Definition at line 101 of file doc-conduit.cc.

const unsigned long DOCConduit::dbtype (  )  [protected, virtual]

Definition at line 98 of file doc-conduit.cc.

bool DOCConduit::decode ( PilotDatabase db,
QString  fileName 
)

bool DOCConduit::encode ( QStringList  fileName,
PilotDatabase db 
)

bool DOCConduit::exec (  )  [virtual]

This function starts the actual processing done by the conduit.

It should return false if the processing cannot be initiated, f.ex. because some parameters were not set or a needed library is missing. This will be reported to the user. It should return true if processing is started normally. If processing starts normally, it is the _conduit's_ responsibility to eventually emit syncDone(); if processing does not start normally (ie. exec() returns false) then the environment will deal with syncDone().

Implements SyncAction.

Definition at line 265 of file doc-conduit.cc.

bool DOCConduit::isCorrectDBTypeCreator ( DBInfo  dbinfo  )  [protected, virtual]

Definition at line 95 of file doc-conduit.cc.

void DOCConduit::resolve (  )  [slot]

Definition at line 583 of file doc-conduit.cc.

void DOCConduit::syncDatabases (  )  [slot]

Definition at line 647 of file doc-conduit.cc.

void DOCConduit::syncNextDB (  )  [slot]

syncNextDB walks through all PalmDoc databases on the handheld and decides if they are supposed to be synced to the PC.

syncNextDB and syncNextDOC fist build the list of all PalmDoc texts, and then the method syncDatabases does the actual sync.

syncNextDB and syncNextTXT fist build the list of all PalmDoc texts, and then the method syncDatabases does the actual sync.

Definition at line 400 of file doc-conduit.cc.

void DOCConduit::syncNextTXT (  )  [slot]

Definition at line 439 of file doc-conduit.cc.


Member Data Documentation


The documentation for this class was generated from the following files: