mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
#9 TI-1: Use Transaction and UndoAction in Database
- Add toString-Methods to Transaction and UndoAction
This commit is contained in:
parent
2fdc3eba4a
commit
f031bd9d22
6 changed files with 35 additions and 8 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <Datafile.h>
|
||||
#include <Interval.h>
|
||||
#include <Range.h>
|
||||
#include <Transaction.h>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
|
@ -62,8 +63,9 @@ private:
|
|||
private:
|
||||
std::string _location {"~/.timewarrior/data"};
|
||||
std::vector <Datafile> _files {};
|
||||
std::vector <std::string> _undo {};
|
||||
int _txn {0};
|
||||
|
||||
std::shared_ptr <Transaction> _currentTransaction = nullptr;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue