kpilot/lib
IDMapper Class Reference
Much of the conduits are recordbased. More...
#include <idmapper.h>
Public Member Functions | |
IDMapper () | |
IDMapper (const TQString &file) | |
void | registerPCObjectId (const TQString &conduit, const TQString &uid) |
TQValueList< TQString > | getPCObjectIds (const TQString &conduit) |
void | registerHHObjectId (const TQString &conduit, recordid_t pid) |
TQValueList< recordid_t > | getHHObjectIds (const TQString &conduit) |
void | setPCObjectId (const TQString &conduit, recordid_t pid, const TQString &uid) |
void | setHHObjectId (const TQString &conduit, const TQString &uid, recordid_t pid) |
recordid_t | getHHObjectId (const TQString &conduit, const TQString &uid) |
TQString | getHHObjectId (const TQString &conduit, recordid_t pid) |
bool | hasPCId (const TQString &conduit, recordid_t pid) |
bool | hasHHId (const TQString &conduit, const TQString &uid) |
void | setLastSyncTime (const TQString &conduit, const TQString &uid, const TQDateTime &date) |
void | setLastSyncTime (const TQString &conduit, recordid_t pid, const TQDateTime &date) |
TQDateTime | lastTimeSynced (const TQString &conduit, const TQString &uid) |
TQDateTime | lastTimeSynced (const TQString &conduit, recordid_t pid) |
Protected Member Functions | |
bool | openDatasource (const TQString &file) |
Detailed Description
Much of the conduits are recordbased.This class can be used bij the conduits to keep track of the mapping between records on the handheld and records on the pc.
Definition at line 43 of file idmapper.h.
Constructor & Destructor Documentation
IDMapper::IDMapper | ( | ) |
IDMapper::IDMapper | ( | const TQString & | file | ) |
Member Function Documentation
void IDMapper::registerPCObjectId | ( | const TQString & | conduit, | |
const TQString & | uid | |||
) |
TQValueList< TQString > IDMapper::getPCObjectIds | ( | const TQString & | conduit | ) |
void IDMapper::registerHHObjectId | ( | const TQString & | conduit, | |
recordid_t | pid | |||
) |
TQValueList< recordid_t > IDMapper::getHHObjectIds | ( | const TQString & | conduit | ) |
void IDMapper::setPCObjectId | ( | const TQString & | conduit, | |
recordid_t | pid, | |||
const TQString & | uid | |||
) |
Sets the PC uid for the handheld record with pid.
Does nothing when there is no handheld record with pid.
Definition at line 227 of file idmapper.cc.
void IDMapper::setHHObjectId | ( | const TQString & | conduit, | |
const TQString & | uid, | |||
recordid_t | pid | |||
) |
Sets the PC uid for the handheld record with pid.
Does nothing when there is no handheld record with pid.
Definition at line 205 of file idmapper.cc.
recordid_t IDMapper::getHHObjectId | ( | const TQString & | conduit, | |
const TQString & | uid | |||
) |
Returns the PC uid for the handheld record with pid.
Returns 0 when no pid exists for given uid.
TQString IDMapper::getHHObjectId | ( | const TQString & | conduit, | |
recordid_t | pid | |||
) |
Returns the HH pid for the PC record with uid.
Returns an empty string when no uid exists for given pid.
bool IDMapper::hasPCId | ( | const TQString & | conduit, | |
recordid_t | pid | |||
) |
Returns true when there is a uid set for given pid.
The conduit itself must determine if the two objects are in sync if this function returns true.
Definition at line 167 of file idmapper.cc.
bool IDMapper::hasHHId | ( | const TQString & | conduit, | |
const TQString & | uid | |||
) |
Returns true when there is a pid set for given uid.
The conduit itself must determine if the two objects are in sync if this function returns true.
Definition at line 186 of file idmapper.cc.
void IDMapper::setLastSyncTime | ( | const TQString & | conduit, | |
const TQString & | uid, | |||
const TQDateTime & | date | |||
) |
Sets the time that the two objects where last synced.
The conduits should call this method (or the pid version) when two objects are synced. When the uid does not exist nothing happens.
void IDMapper::setLastSyncTime | ( | const TQString & | conduit, | |
recordid_t | pid, | |||
const TQDateTime & | date | |||
) |
Sets the time that the two objects where last synced.
The conduits should call this (or the uid version) method when two objects are synced. When the pid does not exist nothing happens.
TQDateTime IDMapper::lastTimeSynced | ( | const TQString & | conduit, | |
const TQString & | uid | |||
) |
Returns the date/time for the last time that the item with uid was synced.
This date is set by:
- setLastSyncTime (uid/pid)
Returns a null datetime when the pid does not excist.
TQDateTime IDMapper::lastTimeSynced | ( | const TQString & | conduit, | |
recordid_t | pid | |||
) |
Returns the date/time for the last time that the item with pid was synced.
This date is set by:
- setLastSyncTime (uid/pid)
Returns a null datetime when the pid does not excist.
The documentation for this class was generated from the following files: