| 257 | |
| 258 | |
| 259 | bool LuaHandle::UpdateCallIn(const std::string& ciName, bool state) { |
| 260 | const std::string& eventName = luaCallInDB.GetEventName(ciName); |
| 261 | if (state) { |
| 262 | return eventHandler.InsertEvent(this, eventName); |
| 263 | } |
| 264 | else { |
| 265 | return eventHandler.RemoveEvent(this, eventName); |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | |
| 270 | //============================================================================// |
no test coverage detected