mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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
20
src/Task.cpp
20
src/Task.cpp
|
@ -34,6 +34,7 @@
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Task::Task ()
|
||||
: id (0)
|
||||
{
|
||||
// Each new task gets a uuid.
|
||||
set ("uuid", uuid ());
|
||||
|
@ -55,19 +56,6 @@ Task::Task (const std::string& input)
|
|||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Task& Task::operator= (const Task& other)
|
||||
{
|
||||
throw std::string ("unimplemented Task::operator=");
|
||||
if (this != &other)
|
||||
{
|
||||
sequence = other.sequence;
|
||||
subst = other.subst;
|
||||
}
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Task::~Task ()
|
||||
{
|
||||
|
@ -430,11 +418,7 @@ void Task::removeTag (const std::string& tag)
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Task::validate () const
|
||||
{
|
||||
// Every task needs an ID.
|
||||
/*
|
||||
if (sequence[0] == 0)
|
||||
throw std::string ("Every task needs an ID.");
|
||||
*/
|
||||
// TODO Every task needs an ID.
|
||||
|
||||
// TODO Every task needs an ID, entry and description attribute.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue