diff Core/JobsEngine/JobStatus.cpp @ 2573:3372c5255333 jobs

StoreScuJob, Orthanc Explorer for jobs
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 May 2018 17:56:14 +0200
parents 2af17cd5eb1f
children 73d7d95dd75e
line wrap: on
line diff
--- a/Core/JobsEngine/JobStatus.cpp	Mon May 07 21:42:04 2018 +0200
+++ b/Core/JobsEngine/JobStatus.cpp	Wed May 09 17:56:14 2018 +0200
@@ -39,7 +39,9 @@
   JobStatus::JobStatus() :
     errorCode_(ErrorCode_InternalError),
     progress_(0),
-    description_(Json::objectValue)
+    jobType_("Invalid"),
+    publicContent_(Json::objectValue),
+    internalContent_(Json::objectValue)
   {
   }
 
@@ -47,7 +49,9 @@
   JobStatus::JobStatus(ErrorCode code,
                        IJob& job) :
     errorCode_(code),
-    progress_(job.GetProgress())
+    progress_(job.GetProgress()),
+    publicContent_(Json::objectValue),
+    internalContent_(Json::objectValue)
   {
     if (progress_ < 0)
     {
@@ -59,6 +63,8 @@
       progress_ = 1;
     }
 
-    job.GetDescription(description_);
+    job.GetJobType(jobType_);
+    job.GetPublicContent(publicContent_);
+    job.GetInternalContent(internalContent_);
   }
 }