diff OrthancServer/ServerContext.cpp @ 2675:3fc310ceb6d4 jobs

lua callbacks for jobs
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 Jun 2018 20:26:24 +0200
parents 8e0bc055d18c
children 1b4ba91fe795
line wrap: on
line diff
--- a/OrthancServer/ServerContext.cpp	Mon Jun 11 16:30:13 2018 +0200
+++ b/OrthancServer/ServerContext.cpp	Mon Jun 11 20:26:24 2018 +0200
@@ -135,24 +135,21 @@
   void ServerContext::SignalJobSubmitted(const std::string& jobId)
   {
     haveJobsChanged_ = true;
-    
-    // TODO: Call Lua
+    lua_.SignalJobSubmitted(jobId);
   }
   
 
   void ServerContext::SignalJobSuccess(const std::string& jobId)
   {
     haveJobsChanged_ = true;
-    
-    // TODO: Call Lua
+    lua_.SignalJobSuccess(jobId);
   }
 
   
   void ServerContext::SignalJobFailure(const std::string& jobId)
   {
     haveJobsChanged_ = true;
-    
-    // TODO: Call Lua
+    lua_.SignalJobFailure(jobId);
   }