kodi
PVRDirectory.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 "IDirectory.h"
12 
13 namespace XFILE {
14 
16  : public IDirectory
17 {
18 public:
19  CPVRDirectory();
20  ~CPVRDirectory() override;
21 
22  bool GetDirectory(const CURL& url, CFileItemList &items) override;
23  bool AllowAll() const override { return true; }
24  DIR_CACHE_TYPE GetCacheType(const CURL& url) const override { return DIR_CACHE_NEVER; }
25  bool Exists(const CURL& url) override;
26 
27  static bool SupportsWriteFileOperations(const std::string& strPath);
28 
29  static bool HasTVRecordings();
30  static bool HasDeletedTVRecordings();
31  static bool HasRadioRecordings();
32  static bool HasDeletedRadioRecordings();
33 };
34 
35 }
DIR_CACHE_TYPE GetCacheType(const CURL &url) const override
How this directory should be cached.
Definition: PVRDirectory.h:24
Interface to the directory on a file system.
Definition: IDirectory.h:51
Definition: Scraper.h:41
Represents a list of files.
Definition: FileItem.h:702
Definition: URL.h:21
Definition: PVRDirectory.h:15
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: PVRDirectory.cpp:26
bool AllowAll() const override
Whether to allow all files/folders to be listed.
Definition: PVRDirectory.h:23
bool Exists(const CURL &url) override
Check for directory existence.
Definition: PVRDirectory.cpp:20