- Removed obsolete 'undelete' string.
This commit is contained in:
Paul Beckingham 2009-06-30 18:35:06 -04:00
parent af7803ea27
commit ed49546eac
8 changed files with 50 additions and 18 deletions

View file

@ -61,7 +61,9 @@ extern Context context;
// | | +- TDB::update (T)
// | | |
// | | +- TDB::commit
// | | write all
// | | | write all
// | | |
// | | +- TDB::undo
// | |
// | +- TDB::unlock
// | [unlock]
@ -491,6 +493,23 @@ int TDB::nextId ()
////////////////////////////////////////////////////////////////////////////////
void TDB::undo ()
{
// TODO Load all undo.data
// TODO Load all pending.data
std::vector <Task> allPending;
// TODO Load all completed.data
std::vector <Task> allCompleted;
// TODO 'pop' last transaction
// TODO Locate 'new' task
// TODO Confirm
// TODO Overwrite 'old' task, or delete
// TODO Write all pending.data
// TODO Write all completed.data
// TODO Write all undo.data
}
////////////////////////////////////////////////////////////////////////////////