[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / filesystem / RSSDirectory.h
blobb2e3d5f27d134afcde732e6d5cbc4e116ec78003
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 "IFileDirectory.h"
12 #include "XBDateTime.h"
13 #include "threads/CriticalSection.h"
15 #include <map>
16 #include <string>
18 class CFileItemList;
20 namespace XFILE
22 class CRSSDirectory : public IFileDirectory
24 public:
25 CRSSDirectory();
26 ~CRSSDirectory() override;
27 bool GetDirectory(const CURL& url, CFileItemList &items) override;
28 bool Exists(const CURL& url) override;
29 bool AllowAll() const override { return true; }
30 bool ContainsFiles(const CURL& url) override;
31 DIR_CACHE_TYPE GetCacheType(const CURL& url) const override { return DIR_CACHE_ONCE; }
33 protected:
34 // key is path, value is cache invalidation date
35 static std::map<std::string,CDateTime> m_cache;
36 static CCriticalSection m_section;