comparison 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
comparison
equal deleted inserted replaced
2674:373b44af938f 2675:3fc310ceb6d4
133 133
134 134
135 void ServerContext::SignalJobSubmitted(const std::string& jobId) 135 void ServerContext::SignalJobSubmitted(const std::string& jobId)
136 { 136 {
137 haveJobsChanged_ = true; 137 haveJobsChanged_ = true;
138 138 lua_.SignalJobSubmitted(jobId);
139 // TODO: Call Lua
140 } 139 }
141 140
142 141
143 void ServerContext::SignalJobSuccess(const std::string& jobId) 142 void ServerContext::SignalJobSuccess(const std::string& jobId)
144 { 143 {
145 haveJobsChanged_ = true; 144 haveJobsChanged_ = true;
146 145 lua_.SignalJobSuccess(jobId);
147 // TODO: Call Lua
148 } 146 }
149 147
150 148
151 void ServerContext::SignalJobFailure(const std::string& jobId) 149 void ServerContext::SignalJobFailure(const std::string& jobId)
152 { 150 {
153 haveJobsChanged_ = true; 151 haveJobsChanged_ = true;
154 152 lua_.SignalJobFailure(jobId);
155 // TODO: Call Lua
156 } 153 }
157 154
158 155
159 void ServerContext::SetupJobsEngine(bool unitTesting, 156 void ServerContext::SetupJobsEngine(bool unitTesting,
160 bool loadJobsFromDatabase) 157 bool loadJobsFromDatabase)