xbmc
AndroidAppDirectory.h
1 /*
2  * Copyright (C) 2012-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 "filesystem/IDirectory.h"
12 
13 class CFileItemList;
14 
15 namespace XFILE
16 {
17 
19  public IDirectory
20 {
21 public:
22  CAndroidAppDirectory() = default;
23  ~CAndroidAppDirectory() override = default;
24  bool GetDirectory(const CURL& url, CFileItemList& items) override;
25  bool Exists(const CURL& url) override { return true; }
26  bool AllowAll() const override { return true; }
27  DIR_CACHE_TYPE GetCacheType(const CURL& url) const override { return DIR_CACHE_NEVER; }
28 };
29 }
Interface to the directory on a file system.
Definition: IDirectory.h:50
Definition: AndroidAppDirectory.h:18
Definition: Scraper.h:41
Represents a list of files.
Definition: FileItem.h:713
Definition: URL.h:20
bool Exists(const CURL &url) override
Check for directory existence.
Definition: AndroidAppDirectory.h:25
DIR_CACHE_TYPE GetCacheType(const CURL &url) const override
How this directory should be cached.
Definition: AndroidAppDirectory.h:27
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: AndroidAppDirectory.cpp:25
bool AllowAll() const override
Whether to allow all files/folders to be listed.
Definition: AndroidAppDirectory.h:26