mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Hooks
- Eliminated the concept of list hooks. - Eliminated unnecessary API functions.
This commit is contained in:
parent
dbb556bce9
commit
17d1e59e29
4 changed files with 13 additions and 248 deletions
|
@ -59,13 +59,11 @@ public:
|
|||
void initialize ();
|
||||
|
||||
bool trigger (const std::string&); // Program
|
||||
bool trigger (const std::string&, std::vector <Task>&); // List
|
||||
bool trigger (const std::string&, Task&); // Task
|
||||
bool trigger (const std::string&, const std::string&, std::string&); // Field
|
||||
|
||||
private:
|
||||
bool validProgramEvent (const std::string&);
|
||||
bool validListEvent (const std::string&);
|
||||
bool validTaskEvent (const std::string&);
|
||||
bool validFieldEvent (const std::string&);
|
||||
|
||||
|
@ -76,7 +74,6 @@ private:
|
|||
std::vector <Hook> all; // All current hooks.
|
||||
|
||||
std::vector <std::string> validProgramEvents;
|
||||
std::vector <std::string> validListEvents;
|
||||
std::vector <std::string> validTaskEvents;
|
||||
std::vector <std::string> validFieldEvents;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue