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.
11 #include "IFileDirectory.h"
12 #include "XBDateTime.h"
13 #include "threads/CriticalSection.h"
22 class CRSSDirectory
: public IFileDirectory
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
; }
34 // key is path, value is cache invalidation date
35 static std::map
<std::string
,CDateTime
> m_cache
;
36 static CCriticalSection m_section
;