PilotRecord Class Reference
An "uninterpreted" representation of the bits comprising a HH record. More...
#include <pilotRecord.h>
Public Types
- enum { APP_BUFFER_SIZE = 0xffff }
Public Member Functions
- PilotRecord (void *data, int length, int attrib, int cat, recordid_t uid)
- PilotRecord (pi_buffer_t *buf, int attrib, int cat, recordid_t uid)
- ~PilotRecord ()
- PilotRecord (PilotRecord *orig)
- char * getData () const
- int getLen () const
- const pi_buffer_t * buffer () const
- void setData (pi_buffer_t *b)
- PilotRecord & operator= (PilotRecord &orig)
- void setData (const char *data, int len)
- int getAttrib () const
- void setAttrib (int attrib)
- int category () const
- void setCategory (int cat)
- int getCat () const KDE_DEPRECATED
- void setCat (int cat) KDE_DEPRECATED
- recordid_t id () const
- recordid_t getID () const KDE_DEPRECATED
- void setID (recordid_t id)
- bool isDeleted () const
- bool isSecret () const
- bool isArchived () const
- bool isDirty () const
- void setDeleted (bool d=true)
- void setSecret (bool s=true)
- void makeDeleted () KDE_DEPRECATED
- void makeSecret () KDE_DEPRECATED
Static Public Member Functions
- static void allocationInfo ()
Detailed Description
An "uninterpreted" representation of the bits comprising a HH record.This class maintains a created and deleted count which can be requested using allocationInfo().
Member Enumeration Documentation
|
A constant, really left over from PalmOS 4 days, when records could be 64k in size at most. It is used in various places to dimension buffers, but should be considered deprecated. |
Constructor & Destructor Documentation
|
Constructor.
Using the given This constructor makes a copy of the data buffer (and owns that buffer). |
|
Constructor.
Using the given buffer |
|
Destructor. Dispose of the buffers in the right form. |
|
Constructor.
Copies the data from the |
Member Function Documentation
|
Retrieve the data buffer for this record. Note that trying to change this data is fraught with peril -- especially trying to lengthen it.
|
|
Returns the length of the data for this record.
|
|
Returns the data buffer associated with this record.
|
|
Set the data for this record.
Frees old data. Assumes ownership of the passed in buffer |
|
Assignment operator.
Makes a copy of the |
|
Sets the data for this record. Makes a copy of the data buffer. |
|
This is an interface for tracking down memory leaks in the use of PilotRecords (for those without valgrind). Count the number of allocations and deallocations. |
The documentation for this class was generated from the following files:
- pilotRecord.h
- pilotRecord.cc