Merge pull request #26362 from ksooo/estuary-rework-pvr-info-dialog
[xbmc.git] / xbmc / filesystem / NFSDirectory.h
blob1ef7199f4853d05c73e9a992ae9984740ed4e10f
1 /*
2 * Copyright (C) 2011-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 "IDirectory.h"
12 #include "NFSFile.h"
14 struct nfsdirent;
16 namespace XFILE
18 class CNFSDirectory : public IDirectory
20 public:
21 CNFSDirectory(void);
22 ~CNFSDirectory(void) override;
23 bool GetDirectory(const CURL& url, CFileItemList &items) override;
24 CacheType GetCacheType(const CURL& url) const override { return CacheType::ONCE; }
25 bool Create(const CURL& url) override;
26 bool Exists(const CURL& url) override;
27 bool Remove(const CURL& url) override;
28 private:
29 bool GetServerList(CFileItemList &items);
30 bool GetDirectoryFromExportList(const std::string& strPath, CFileItemList &items);
31 bool ResolveSymlink( const std::string &dirName, struct nfsdirent *dirent, CURL &resolvedUrl);