kpilot/lib
PilotRecordBase Class Reference
#include <pilotRecord.h>
Inheritance diagram for PilotRecordBase:

Detailed Description
All entries in the Handheld -- whether interpreted or binary blobs -- have some common characteristics, viz.an ID number, a category, and some attributes defined by the handheld. PilotRecordBase is a common base class collecting methods to manipulate those common characteristics.
Definition at line 50 of file pilotRecord.h.
Public Member Functions | |
PilotRecordBase (int attrib=0, int cat=0, recordid_t id=0) | |
PilotRecordBase (const PilotRecordBase *b) | |
virtual | ~PilotRecordBase () |
int | attributes () const |
void | setAttributes (int attrib) |
int | category () const |
void | setCategory (int cat) |
bool | setCategory (const struct CategoryAppInfo *info, const QString &label) |
recordid_t | id () const |
void | setID (recordid_t id) |
bool | isDeleted () const |
bool | isSecret () const |
bool | isArchived () const |
bool | isModified () const |
void | setDeleted (bool d=true) SETTER(dlpRecAttrDeleted) inline void setSecret(bool d |
Constructor & Destructor Documentation
|
Constructor. Initialize the characteristics to the given values.
Definition at line 62 of file pilotRecord.h. |
|
Constructor.
Initializes the characteristics from the values the given record
Definition at line 75 of file pilotRecord.h. |
|
Destructor. Nothing to do for it. Definition at line 87 of file pilotRecord.h. |
Member Function Documentation
|
Attributes of this record (deleted, secret, . ..); it's a bitfield. Definition at line 92 of file pilotRecord.h. |
|
Returns the category number [ 0 . . Pilot::CATEGORY_COUNT-1] of this record. Definition at line 106 of file pilotRecord.h. |
|
Returns the record ID for this record. Record IDs are unique for a given handheld and database. Definition at line 157 of file pilotRecord.h. |
|
Accessor for one bit of the record's attributes. Is this record a to-be-archived record? When a record is deleted, it may be marked as "archive on PC" which means the PC should keep a copy. The PC data correspondng to an archived-but-deleted record must not be deleted. Definition at line 194 of file pilotRecord.h. |
|
Accessor for one bit of the record's attributes. Is this record marked deleted (on the handheld) ? Deleted records are not removed from the database until a HotSync is done (which normally calls purge deleted or so to really get rid of the records from storage. Definition at line 175 of file pilotRecord.h. |
|
Accessor for one bit of the record's attributes. Is this record modified? Modified records are those that have been modified since the last HotSync. Definition at line 202 of file pilotRecord.h. |
|
Accessor for one bit of the record's attributes. Is this record secret? Secret records are not displayed on the desktop by default. Definition at line 183 of file pilotRecord.h. |
|
Set the attributes of this record.
Definition at line 98 of file pilotRecord.h. |
|
Sets the category number by looking up the string
Leaves the category unchanged if no match is found and returns
Definition at line 135 of file pilotRecord.h. |
|
Sets the category number [ 0 . . Pilot::CATEGORY_COUNT-1] of this record. Trying to set an illegal category number files this one under "Unfiled" (which is 0). Definition at line 116 of file pilotRecord.h. |
|
Mark a record as secret (or not).
|
|
Sets the record ID for this record. Use with caution -- you ca confuse the handheld by doing weird things here. Definition at line 165 of file pilotRecord.h. |
The documentation for this class was generated from the following file: