kodi
DAVDirectory.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "IDirectory.h"
12 
13 class CFileItem;
14 class CFileItemList;
15 
16 namespace tinyxml2
17 {
18 class XMLElement;
19 }
20 
21 namespace XFILE
22 {
23  class CDAVDirectory : public IDirectory
24  {
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; }
33 
34  private:
35  void ParseResponse(const tinyxml2::XMLElement* element, CFileItem& item);
36  };
37 }
DIR_CACHE_TYPE GetCacheType(const CURL &url) const override
How this directory should be cached.
Definition: DAVDirectory.h:32
Interface to the directory on a file system.
Definition: IDirectory.h:51
Definition: Scraper.h:41
Definition: DAVDirectory.h:23
Represents a list of files.
Definition: FileItem.h:702
Definition: URL.h:21
Definition: SkinTimerManager.h:18
Represents a file on a share.
Definition: FileItem.h:102