diff OrthancFramework/Sources/JobsEngine/JobInfo.cpp @ 4300:b30a8de92ad9

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 19:33:18 +0100
parents bf7b9edf6b81
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/JobInfo.cpp	Thu Nov 05 18:24:50 2020 +0100
+++ b/OrthancFramework/Sources/JobsEngine/JobInfo.cpp	Thu Nov 05 19:33:18 2020 +0100
@@ -90,6 +90,41 @@
   {
   }
 
+  const std::string &JobInfo::GetIdentifier() const
+  {
+    return id_;
+  }
+
+  int JobInfo::GetPriority() const
+  {
+    return priority_;
+  }
+
+  JobState JobInfo::GetState() const
+  {
+    return state_;
+  }
+
+  const boost::posix_time::ptime &JobInfo::GetInfoTime() const
+  {
+    return timestamp_;
+  }
+
+  const boost::posix_time::ptime &JobInfo::GetCreationTime() const
+  {
+    return creationTime_;
+  }
+
+  const boost::posix_time::time_duration &JobInfo::GetRuntime() const
+  {
+    return runtime_;
+  }
+
+  bool JobInfo::HasEstimatedTimeOfArrival() const
+  {
+    return hasEta_;
+  }
+
 
   bool JobInfo::HasCompletionTime() const
   {
@@ -123,6 +158,16 @@
     }
   }
 
+  const JobStatus &JobInfo::GetStatus() const
+  {
+    return status_;
+  }
+
+  JobStatus &JobInfo::GetStatus()
+  {
+    return status_;
+  }
+
 
   void JobInfo::Format(Json::Value& target) const
   {