diff OrthancFramework/Sources/HttpServer/IWebDavBucket.h @ 4232:688435755466

added DELETE in WebDAV, first working virtual filesystem
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 07 Oct 2020 13:00:57 +0200
parents c8c0bbaaace3
children a38376b80cd1
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/IWebDavBucket.h	Tue Oct 06 20:55:16 2020 +0200
+++ b/OrthancFramework/Sources/HttpServer/IWebDavBucket.h	Wed Oct 07 13:00:57 2020 +0200
@@ -84,7 +84,8 @@
       }
 
       virtual void Format(pugi::xml_node& node,
-                          const std::string& parentPath) const;
+                          const std::string& parentPath,
+                          bool includeDisplayName) const;
     };
 
 
@@ -120,7 +121,8 @@
       void SetCreated(bool created);
 
       virtual void Format(pugi::xml_node& node,
-                          const std::string& parentPath) const ORTHANC_OVERRIDE;
+                          const std::string& parentPath,
+                          bool includeDisplayName) const ORTHANC_OVERRIDE;
     };
 
 
@@ -133,7 +135,8 @@
       }
       
       virtual void Format(pugi::xml_node& node,
-                          const std::string& parentPath) const ORTHANC_OVERRIDE;
+                          const std::string& parentPath,
+                          bool includeDisplayName) const ORTHANC_OVERRIDE;
     };
 
 
@@ -148,7 +151,8 @@
       void AddResource(Resource* resource);  // Takes ownership
 
       void Format(std::string& target,
-                  const std::string& parentPath) const;
+                  const std::string& parentPath,
+                  bool includeDisplayName) const;
     };
 
 
@@ -172,6 +176,8 @@
 
     virtual bool CreateFolder(const std::vector<std::string>& path) = 0;
 
+    virtual bool DeleteItem(const std::vector<std::string>& path) = 0;
+
     virtual void Start() = 0;
 
     // During the shutdown of the Web server, give a chance to the