mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
#9 TI-1: Add TransactionFactory
- CmdUndo pops last transaction from array (and applies undo actions - tbd) - TransactionFactory reads contents of undo.data into transaction array - Transaction array is written back to undo.data
This commit is contained in:
parent
d8a4b8ff43
commit
76ee22e7e5
8 changed files with 175 additions and 0 deletions
|
@ -35,6 +35,11 @@ void Transaction::addUndoAction (
|
|||
_actions.emplace_back (type, before, after);
|
||||
}
|
||||
|
||||
std::vector<UndoAction> Transaction::getActions ()
|
||||
{
|
||||
return _actions;
|
||||
}
|
||||
|
||||
std::string Transaction::toString ()
|
||||
{
|
||||
std::string output = "txn:\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue