kodi
TVOSDirectory.h
1 #pragma once
2 /*
3  * Copyright (C) 2018 Team MrMC
4  * https://github.com/MrMC
5  *
6  * This Program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * This Program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with MrMC; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #include "filesystem/IDirectory.h"
23 
24 #include "platform/posix/filesystem/PosixDirectory.h"
25 
26 class CFileItemList;
27 
28 namespace XFILE
29 {
31 {
32 public:
33  CTVOSDirectory() = default;
34  ~CTVOSDirectory() = default;
35 
36  bool static WantsDirectory(const CURL& url);
37 
38  bool GetDirectory(const CURL& url, CFileItemList& items) override;
39  bool Create(const CURL& url) override;
40  bool Exists(const CURL& url) override;
41  bool Remove(const CURL& url) override;
42 };
43 } // namespace XFILE
bool GetDirectory(const CURL &url, CFileItemList &items) override
Get the items of the directory strPath.
Definition: TVOSDirectory.cpp:48
Definition: PosixDirectory.h:16
Definition: Scraper.h:41
Represents a list of files.
Definition: FileItem.h:702
Definition: URL.h:21
bool Exists(const CURL &url) override
Check for directory existence.
Definition: TVOSDirectory.cpp:113
bool Remove(const CURL &url) override
Removes the directory.
Definition: TVOSDirectory.cpp:118
bool Create(const CURL &url) override
Create the directory.
Definition: TVOSDirectory.cpp:108
Definition: TVOSDirectory.h:30