Merge pull request #25808 from CastagnaIT/fix_url_parse
[xbmc.git] / xbmc / filesystem / DAVDirectory.h
blob0b39d0d43cb679b44fa2710607ebc717157f1d95
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include "IDirectory.h"
13 class CFileItem;
14 class CFileItemList;
16 namespace tinyxml2
18 class XMLElement;
21 namespace XFILE
23 class CDAVDirectory : public IDirectory
25 public:
26 CDAVDirectory(void);
27 ~CDAVDirectory(void) override;
28 bool GetDirectory(const CURL& url, CFileItemList &items) override;
29 bool Create(const CURL& url) override;
30 bool Exists(const CURL& url) override;
31 bool Remove(const CURL& url) override;
32 DIR_CACHE_TYPE GetCacheType(const CURL& url) const override { return DIR_CACHE_ONCE; }
34 private:
35 void ParseResponse(const tinyxml2::XMLElement* element, CFileItem& item);