Record currently in use.
This bit may also indicate the record has been deleted -- see comments in https://github.com/dwery/coldsync/blob/master/include/pdb.h .
Record has been deleted.
Record has been modified.
"Secret" record - password protected.
Record is archived.
Only available if deleted or busy.
Record category.
Only available if NOT deleted or busy.
Static
fromStatic
ofCreate a new instance of this wrapper class from a raw value.
Create a new instance of this wrapper class from a raw value.
Static
with
Record attribute flags in PDB files.
In the DLP protocol, we use one byte to store record attribute flags and another byte to store the record category. However, in PDB files, we use a single byte is used to store both attribute flags and the record category.
This presents a problem: there are 5 record attributes (namely delete, dirty, busy, secret, and archive), leaving 3 bits unused, but we need 4 bits to store the record category. So the lowest 4 bits are overloaded, but the exactly how differs among existing open source implementations:
In pilot-link:
In ColdSync:
In the Palm::PDB Perl module:
Here we've chosen to follow the Palm::PDB Perl module's implementation, as it is the most flexible.
References: