mirror of https://github.com/Icinga/icinga2.git
parent
06e72d134b
commit
80e6854ce6
|
@ -27,7 +27,7 @@ void ScriptSignal::AddSlot(const Callback& slot)
|
||||||
m_Slots.push_back(slot);
|
m_Slots.push_back(slot);
|
||||||
}
|
}
|
||||||
|
|
||||||
Value ScriptSignal::Invoke(const std::vector<Value>& arguments)
|
void ScriptSignal::Invoke(const std::vector<Value>& arguments)
|
||||||
{
|
{
|
||||||
BOOST_FOREACH(const Callback& slot, m_Slots)
|
BOOST_FOREACH(const Callback& slot, m_Slots)
|
||||||
slot(arguments);
|
slot(arguments);
|
||||||
|
|
|
@ -41,7 +41,7 @@ public:
|
||||||
typedef boost::function<void (const std::vector<Value>& arguments)> Callback;
|
typedef boost::function<void (const std::vector<Value>& arguments)> Callback;
|
||||||
|
|
||||||
void AddSlot(const Callback& slot);
|
void AddSlot(const Callback& slot);
|
||||||
Value Invoke(const std::vector<Value>& arguments = std::vector<Value>());
|
void Invoke(const std::vector<Value>& arguments = std::vector<Value>());
|
||||||
|
|
||||||
static ScriptSignal::Ptr GetByName(const String& name);
|
static ScriptSignal::Ptr GetByName(const String& name);
|
||||||
static void Register(const String& name, const ScriptSignal::Ptr& signal);
|
static void Register(const String& name, const ScriptSignal::Ptr& signal);
|
||||||
|
|
Loading…
Reference in New Issue