Enhancement - Hooks

- Improved the conditional compilation.
This commit is contained in:
Paul Beckingham
2010-01-17 23:41:02 -05:00
parent 57e94585e8
commit 77e98c8c03
2 changed files with 15 additions and 5 deletions

View File

@@ -30,6 +30,7 @@
#include <vector>
#include <string>
#include "API.h"
#include "auto.h"
class Hooks
{
@@ -44,13 +45,17 @@ public:
bool eventType (const std::string&, std::string&);
private:
#ifdef HAVE_LIBLUA
bool triggerProgramEvent (const std::string&);
bool triggerListEvent (const std::string&);
bool triggerTaskEvent (const std::string&);
bool triggerFieldEvent (const std::string&);
#endif
private:
#ifdef HAVE_LIBLUA
API api;
#endif
std::vector <std::string> scripts;
};