Enhancement - Hooks

- Implemented pre-debug, post-debug.
- Implemented pre-header, post-header.
- Implemented pre-output, post-output.
- Implemented pre-footnote, post-footnote.
- Implemented pre-gc, post-gc.
- Implemented pre-undo, post-undo.
- Implemented pre-add-command, post-add-command.
This commit is contained in:
Paul Beckingham
2010-01-19 23:01:52 -05:00
parent 8540cab0a6
commit 1cd6d4c7e7
4 changed files with 26 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ extern Context context;
////////////////////////////////////////////////////////////////////////////////
int handleAdd (std::string &outs)
{
context.hooks.trigger ("pre-add-command");
std::stringstream out;
context.task.set ("uuid", uuid ());
@@ -112,6 +113,7 @@ int handleAdd (std::string &outs)
context.tdb.unlock ();
outs = out.str ();
context.hooks.trigger ("post-add-command");
return 0;
}