mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-26 06:37:20 +02:00
Enhancements - info report
- Implemented info report. - Removed odd Subst and Sequence objects from Task - are they just vestigial limbs, or did I add them for a good reason? They are gone now. - Added Filter::applySequence to replace old filterSequence. - Removed obsolete report.cpp filter function.
This commit is contained in:
parent
5288e167d0
commit
d99dec5556
9 changed files with 123 additions and 257 deletions
|
@ -37,7 +37,6 @@ class Task : public Record
|
|||
public:
|
||||
Task (); // Default constructor
|
||||
Task (const std::string&); // Parse
|
||||
Task& operator= (const Task&); // Assignment operator
|
||||
~Task (); // Destructor
|
||||
|
||||
void parse (const std::string&);
|
||||
|
@ -47,13 +46,9 @@ public:
|
|||
enum status {pending, completed, deleted, recurring /* , retired, deferred */};
|
||||
|
||||
// Public data.
|
||||
Sequence sequence;
|
||||
Subst subst;
|
||||
int id;
|
||||
|
||||
// Series of helper functions.
|
||||
int id () const { return sequence.size () ? sequence[0] : 0; }
|
||||
void id (int anotherId) { sequence.push_back (anotherId); }
|
||||
|
||||
static status textToStatus (const std::string&);
|
||||
static std::string statusToText (status);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue