diff OrthancFramework/Sources/HttpServer/IWebDavBucket.cpp @ 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 b313a0001893
children a38376b80cd1
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/IWebDavBucket.cpp	Tue Oct 06 20:55:16 2020 +0200
+++ b/OrthancFramework/Sources/HttpServer/IWebDavBucket.cpp	Wed Oct 07 13:00:57 2020 +0200
@@ -91,7 +91,8 @@
 
 
   void IWebDavBucket::Resource::Format(pugi::xml_node& node,
-                                       const std::string& parentPath) const
+                                       const std::string& parentPath,
+                                       bool includeDisplayName) const
   {
     node.set_name("D:response");
 
@@ -148,11 +149,12 @@
     SetNameInternal(name);
   }
 
-
+  
   void IWebDavBucket::File::Format(pugi::xml_node& node,
-                                   const std::string& parentPath) const
+                                   const std::string& parentPath,
+                                   bool includeDisplayName) const
   {
-    Resource::Format(node, parentPath);
+    Resource::Format(node, parentPath, includeDisplayName);
 
     pugi::xml_node prop = node.first_element_by_path("D:propstat/D:prop");
     prop.append_child("D:resourcetype");
@@ -168,9 +170,10 @@
 
 
   void IWebDavBucket::Folder::Format(pugi::xml_node& node,
-                                     const std::string& parentPath) const
+                                     const std::string& parentPath,
+                                     bool includeDisplayName) const
   {
-    Resource::Format(node, parentPath);
+    Resource::Format(node, parentPath, includeDisplayName);
         
     pugi::xml_node prop = node.first_element_by_path("D:propstat/D:prop");
     prop.append_child("D:resourcetype").append_child("D:collection");
@@ -206,7 +209,8 @@
 
 
   void IWebDavBucket::Collection::Format(std::string& target,
-                                         const std::string& parentPath) const
+                                         const std::string& parentPath,
+                                         bool includeDisplayName) const
   {
     pugi::xml_document doc;
 
@@ -218,7 +222,7 @@
     {
       assert(*it != NULL);
       pugi::xml_node n = root.append_child();
-      (*it)->Format(n, parentPath);
+      (*it)->Format(n, parentPath, includeDisplayName);
     }
 
     pugi::xml_node decl = doc.prepend_child(pugi::node_declaration);