#include <SplitsDB.h>
Inheritance diagram for SplitsDB:
Public Methods | |
void | unpackRecord (splitStructure *spl, packedSplitStructure *packed_spl) DB_SECTION2 |
unpacks a Split record. More... | |
void | packRecord (splitStructure *spl, MemHandle db_entry) DB_SECTION2 |
packs a Split record. More... | |
SplitsDB () DB_SECTION2 | |
initialize the database. More... | |
UInt16 | locateFirstSplit (UInt32 trans_uid) DB_SECTION2 |
locate the first split that belongs to the given transaction. More... | |
void | clearRecord (UInt16 id) DB_SECTION2 |
set a record to cleared, update the affected account's cleared balance. More... | |
void | unclearRecord (UInt16 id) DB_SECTION2 |
set a record to uncleared and update the affected account's cleared balance. More... | |
UInt16 | newRecord (splitStructure *s, Boolean cleared) DB_SECTION2 |
creates a new record and update the balance of the involved account. More... | |
bool | deleteRecord (UInt16 id, Boolean keep_balance=false) DB_SECTION2 |
deletes a record, given its id. More... | |
Static Public Methods | |
Int16 | compareRecords (packedSplitStructure *rec1, packedSplitStructure *rec2, Int16 other, SortRecordInfoPtr sr1, SortRecordInfoPtr sr2, MemHandle app_info) DB_SECTION2 |
Compares two packed split structures. More... |
Definition at line 57 of file SplitsDB.h.
|
initialize the database.
|
|
set a record to cleared, update the affected account's cleared balance.
|
|
Compares two packed split structures. For parameters see the PalmOS reference |
|
deletes a record, given its id. The balance of the affected account is updated. The transaction that the split belonged to is responsible for keeping the number of splits it has up to date.
|
|
locate the first split that belongs to the given transaction.
|
|
creates a new record and update the balance of the involved account. The transaction that the split belongs to is responsible for keeping the number of splits it has up to date.
|
|
packs a Split record.
Implements Database< splitStructure, packedSplitStructure >. |
|
set a record to uncleared and update the affected account's cleared balance.
|
|
unpacks a Split record.
Implements Database< splitStructure, packedSplitStructure >. |