mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Datafile: Captures added/modified data
This commit is contained in:
parent
c1ccf45ccd
commit
2cc9bc8551
2 changed files with 6 additions and 0 deletions
|
@ -81,12 +81,14 @@ void Datafile::addExclusion (const std::string& exclusion)
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void Datafile::addInterval (const Interval& interval)
|
void Datafile::addInterval (const Interval& interval)
|
||||||
{
|
{
|
||||||
|
_lines_added.push_back (interval.serialize ());
|
||||||
_dirty = true;
|
_dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
void Datafile::modifyInterval (const Interval& interval)
|
void Datafile::modifyInterval (const Interval& interval)
|
||||||
{
|
{
|
||||||
|
_lines_modified.push_back (interval.serialize ());
|
||||||
_dirty = true;
|
_dirty = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,10 @@ private:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
File _file {};
|
File _file {};
|
||||||
|
std::vector <std::string> _lines {};
|
||||||
|
std::vector <std::string> _lines_added {};
|
||||||
|
std::vector <std::string> _lines_modified {};
|
||||||
|
bool _lines_loaded {false};
|
||||||
bool _dirty {false};
|
bool _dirty {false};
|
||||||
Datetime _day1 {0};
|
Datetime _day1 {0};
|
||||||
Datetime _dayN {0};
|
Datetime _dayN {0};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue