mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Timeline: Stubbed ::tracked and ::untracked
This commit is contained in:
parent
0592a42c63
commit
ad309b51e2
3 changed files with 32 additions and 6 deletions
|
@ -62,11 +62,35 @@ void Timeline::end (const Datetime& when)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Timeline::include (const Interval& interval)
|
||||
{
|
||||
_inclusions.push_back (interval);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Timeline::exclude (const Exclusion& exclusion)
|
||||
{
|
||||
_exclusions.push_back (exclusion);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::vector <Interval> Timeline::tracked () const
|
||||
{
|
||||
std::vector <Interval> combined;
|
||||
|
||||
// TODO Combine _inclusions and _exclusions to yield a set of collapsed
|
||||
// intervals.
|
||||
|
||||
return combined;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
std::vector <Interval> Timeline::untracked () const
|
||||
{
|
||||
std::vector <Interval> combined;
|
||||
|
||||
// TODO Combine _inclusions and _exclusions to yield a set of collapsed
|
||||
// unracked intervals.
|
||||
|
||||
return combined;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue