diff OrthancFramework/Sources/DicomNetworking/IGetRequestHandler.h @ 4258:6f5d4bfb2c90

C-GET SCP: Fix responses and handling of cancel
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 26 Oct 2020 12:23:36 +0100
parents bf7b9edf6b81
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/IGetRequestHandler.h	Tue Oct 20 09:52:42 2020 +0200
+++ b/OrthancFramework/Sources/DicomNetworking/IGetRequestHandler.h	Mon Oct 26 12:23:36 2020 +0100
@@ -34,13 +34,6 @@
   class IGetRequestHandler : boost::noncopyable
   {
   public:
-    enum Status
-    {
-      Status_Success,
-      Status_Failure,
-      Status_Warning
-    };
-    
     virtual ~IGetRequestHandler()
     {
     }
@@ -52,10 +45,9 @@
                         uint32_t timeout) = 0;
     
     virtual unsigned int GetSubOperationCount() const = 0;
-    
-    virtual Status DoNext(T_ASC_Association *) = 0;
-    
-    virtual unsigned int GetRemainingCount() const = 0;
+
+    // Must return "false" iff. a "Cancel" was returned by the remote SCU
+    virtual bool DoNext(T_ASC_Association *) = 0;
     
     virtual unsigned int GetCompletedCount() const = 0;