comparison 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
comparison
equal deleted inserted replaced
4231:290ffcb0a147 4232:688435755466
82 { 82 {
83 return modificationTime_; 83 return modificationTime_;
84 } 84 }
85 85
86 virtual void Format(pugi::xml_node& node, 86 virtual void Format(pugi::xml_node& node,
87 const std::string& parentPath) const; 87 const std::string& parentPath,
88 bool includeDisplayName) const;
88 }; 89 };
89 90
90 91
91 class File : public Resource 92 class File : public Resource
92 { 93 {
118 } 119 }
119 120
120 void SetCreated(bool created); 121 void SetCreated(bool created);
121 122
122 virtual void Format(pugi::xml_node& node, 123 virtual void Format(pugi::xml_node& node,
123 const std::string& parentPath) const ORTHANC_OVERRIDE; 124 const std::string& parentPath,
125 bool includeDisplayName) const ORTHANC_OVERRIDE;
124 }; 126 };
125 127
126 128
127 class Folder : public Resource 129 class Folder : public Resource
128 { 130 {
131 { 133 {
132 SetNameInternal(name); 134 SetNameInternal(name);
133 } 135 }
134 136
135 virtual void Format(pugi::xml_node& node, 137 virtual void Format(pugi::xml_node& node,
136 const std::string& parentPath) const ORTHANC_OVERRIDE; 138 const std::string& parentPath,
139 bool includeDisplayName) const ORTHANC_OVERRIDE;
137 }; 140 };
138 141
139 142
140 class Collection : public boost::noncopyable 143 class Collection : public boost::noncopyable
141 { 144 {
146 ~Collection(); 149 ~Collection();
147 150
148 void AddResource(Resource* resource); // Takes ownership 151 void AddResource(Resource* resource); // Takes ownership
149 152
150 void Format(std::string& target, 153 void Format(std::string& target,
151 const std::string& parentPath) const; 154 const std::string& parentPath,
155 bool includeDisplayName) const;
152 }; 156 };
153 157
154 158
155 virtual ~IWebDavBucket() 159 virtual ~IWebDavBucket()
156 { 160 {
170 virtual bool StoreFile(const std::string& content, 174 virtual bool StoreFile(const std::string& content,
171 const std::vector<std::string>& path) = 0; 175 const std::vector<std::string>& path) = 0;
172 176
173 virtual bool CreateFolder(const std::vector<std::string>& path) = 0; 177 virtual bool CreateFolder(const std::vector<std::string>& path) = 0;
174 178
179 virtual bool DeleteItem(const std::vector<std::string>& path) = 0;
180
175 virtual void Start() = 0; 181 virtual void Start() = 0;
176 182
177 // During the shutdown of the Web server, give a chance to the 183 // During the shutdown of the Web server, give a chance to the
178 // bucket to end its pending operations 184 // bucket to end its pending operations
179 virtual void Stop() = 0; 185 virtual void Stop() = 0;