diff OrthancServer/ServerJobs/DicomModalityStoreJob.h @ 3870:09798f2b985f transcoding

added a Timeout argument to every DICOM command + 'TargetAet' not mandatory anymore in /retrieve
author Alain Mazy <alain@mazy.be>
date Wed, 29 Apr 2020 12:26:51 +0200
parents 594263db316a
children ea1d32861cfc
line wrap: on
line diff
--- a/OrthancServer/ServerJobs/DicomModalityStoreJob.h	Tue Apr 28 16:46:04 2020 +0200
+++ b/OrthancServer/ServerJobs/DicomModalityStoreJob.h	Wed Apr 29 12:26:51 2020 +0200
@@ -49,6 +49,7 @@
     ServerContext&                             context_;
     std::string                                localAet_;
     RemoteModalityParameters                   remote_;
+    int                                        timeout_;
     std::string                                moveOriginatorAet_;
     uint16_t                                   moveOriginatorId_;
     std::unique_ptr<DicomStoreUserConnection>  connection_;
@@ -88,6 +89,16 @@
 
     void SetRemoteModality(const RemoteModalityParameters& remote);
 
+    void SetTimeout(int timeout)
+    {
+      timeout_ = timeout;
+    }
+
+    int GetTimeout() const
+    {
+      return timeout_;
+    }
+
     bool HasMoveOriginator() const
     {
       return moveOriginatorId_ != 0;