diff OrthancFramework/Sources/HttpServer/HttpServer.h @ 4228:c8c0bbaaace3

write access to webdav
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 Oct 2020 12:45:11 +0200
parents 7fff7e683d65
children db3932f9660d
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpServer.h	Mon Oct 05 10:55:24 2020 +0200
+++ b/OrthancFramework/Sources/HttpServer/HttpServer.h	Tue Oct 06 12:45:11 2020 +0200
@@ -76,6 +76,11 @@
 
   class ORTHANC_PUBLIC HttpServer : public boost::noncopyable
   {
+  public:
+#if ORTHANC_ENABLE_PUGIXML == 1
+    typedef std::map<std::string, IWebDavBucket*>  WebDavBuckets;
+#endif
+    
   private:
     // http://stackoverflow.com/questions/311166/stdauto-ptr-or-boostshared-ptr-for-pimpl-idiom
     struct PImpl;
@@ -103,7 +108,6 @@
     unsigned int requestTimeout_;  // In seconds
 
 #if ORTHANC_ENABLE_PUGIXML == 1
-    typedef std::map<std::string, IWebDavBucket*>  WebDavBuckets;
     WebDavBuckets webDavBuckets_;
 #endif
     
@@ -236,13 +240,15 @@
     }
 
 #if ORTHANC_ENABLE_PUGIXML == 1
+    WebDavBuckets& GetWebDavBuckets()
+    {
+      return webDavBuckets_;
+    }      
+#endif
+
+#if ORTHANC_ENABLE_PUGIXML == 1
     void Register(const std::vector<std::string>& root,
                   IWebDavBucket* bucket); // Takes ownership
 #endif
-
-    bool HandleWebDav(HttpOutput& output,
-                      const std::string& method,
-                      const IHttpHandler::Arguments& headers,
-                      const std::string& uri);
   };
 }