diff OrthancServer/Sources/QueryRetrieveHandler.h @ 4517:c494ee5d0101

Added "Timeout" parameter everywhere in "/modalities/.../"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 22 Feb 2021 15:27:25 +0100
parents da460bef88f8
children f0038043fb97 7053502fbf97
line wrap: on
line diff
--- a/OrthancServer/Sources/QueryRetrieveHandler.h	Tue Feb 16 15:01:13 2021 +0100
+++ b/OrthancServer/Sources/QueryRetrieveHandler.h	Mon Feb 22 15:27:25 2021 +0100
@@ -52,6 +52,7 @@
     DicomFindAnswers           answers_;
     std::string                modalityName_;
     bool                       findNormalized_;
+    uint32_t                   timeout_;  // New in Orthanc 1.9.1
 
     void Invalidate();
 
@@ -108,5 +109,20 @@
     }
 
     void SetFindNormalized(bool normalized);
+
+    void SetTimeout(uint32_t seconds)
+    {
+      timeout_ = seconds;
+    }
+
+    uint32_t GetTimeout() const
+    {
+      return timeout_;
+    }
+
+    bool HasTimeout() const
+    {
+      return timeout_ != 0;
+    }
   };
 }