mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Hooks
- Stubbed new ::onAdd and ::onModify interfaces.
This commit is contained in:
parent
7b617a7b6e
commit
ab72cdad4d
3 changed files with 15 additions and 10 deletions
|
@ -197,8 +197,9 @@ void Hooks::onExit ()
|
|||
// - all emitted non-JSON lines are considered feedback messages if the exit
|
||||
// code is zero, otherwise they are considered errors.
|
||||
//
|
||||
void Hooks::onAdd (Task& after)
|
||||
void Hooks::onAdd (std::vector <Task>& changes)
|
||||
{
|
||||
/*
|
||||
context.timer_hooks.start ();
|
||||
if (! _enabled)
|
||||
return;
|
||||
|
@ -249,6 +250,7 @@ void Hooks::onAdd (Task& after)
|
|||
}
|
||||
|
||||
context.timer_hooks.stop ();
|
||||
*/
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -266,8 +268,9 @@ void Hooks::onAdd (Task& after)
|
|||
// - all emitted non-JSON lines are considered feedback messages if the exit
|
||||
// code is zero, otherwise they are considered errors.
|
||||
//
|
||||
void Hooks::onModify (const Task& before, Task& after)
|
||||
void Hooks::onModify (const Task& before, std::vector <Task>& changes)
|
||||
{
|
||||
/*
|
||||
context.timer_hooks.start ();
|
||||
if (! _enabled)
|
||||
return;
|
||||
|
@ -322,6 +325,7 @@ void Hooks::onModify (const Task& before, Task& after)
|
|||
}
|
||||
|
||||
context.timer_hooks.stop ();
|
||||
*/
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue