Recurrence: Stubbed synthesizeTasks
This commit is contained in:
@@ -1530,6 +1530,7 @@ void Task::validate (bool applyDefault /* = true */)
|
|||||||
else if (! has ("status") || get ("status") == "")
|
else if (! has ("status") || get ("status") == "")
|
||||||
status = Task::pending;
|
status = Task::pending;
|
||||||
|
|
||||||
|
// Default to 'periodic' type recurrence.
|
||||||
if (status == Task::recurring &&
|
if (status == Task::recurring &&
|
||||||
(! has ("rtype") || get ("rtype") == ""))
|
(! has ("rtype") || get ("rtype") == ""))
|
||||||
{
|
{
|
||||||
@@ -1658,6 +1659,7 @@ void Task::validate (bool applyDefault /* = true */)
|
|||||||
Duration p;
|
Duration p;
|
||||||
std::string::size_type i = 0;
|
std::string::size_type i = 0;
|
||||||
if (! p.parse (value, i))
|
if (! p.parse (value, i))
|
||||||
|
// TODO Ideal location to map unsupported old recurrence periods to supported values.
|
||||||
throw format (STRING_TASK_VALID_RECUR, value);
|
throw format (STRING_TASK_VALID_RECUR, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ void handleRecurrence ()
|
|||||||
// Generate a list of due dates for this recurring task, regardless of
|
// Generate a list of due dates for this recurring task, regardless of
|
||||||
// the mask.
|
// the mask.
|
||||||
std::vector <Datetime> due;
|
std::vector <Datetime> due;
|
||||||
if (!generateDueDates (t, due))
|
if (! generateDueDates (t, due))
|
||||||
{
|
{
|
||||||
// Determine the end date.
|
// Determine the end date.
|
||||||
t.setStatus (Task::deleted);
|
t.setStatus (Task::deleted);
|
||||||
|
|||||||
@@ -30,21 +30,17 @@
|
|||||||
extern Context context;
|
extern Context context;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Scans all tasks, and for any recurring tasks, determines whether any new
|
static void synthesizeTasks (const Task&)
|
||||||
// child tasks need to be generated to fill gaps.
|
|
||||||
void handleRecurrence2 ()
|
|
||||||
{
|
{
|
||||||
// Recurrence can be disabled.
|
|
||||||
// Note: This is currently a workaround for TD-44, TW-1520.
|
|
||||||
if (context.config.getBoolean ("recurrence"))
|
|
||||||
{
|
|
||||||
context.debug ("handleRecurrence2 start");
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
context.debug ("handleRecurrence2 end");
|
|
||||||
}
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Generates all necessary recurring task instances.
|
||||||
|
void handleRecurrence2 ()
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user