[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / filesystem / Directory.h
blob0af92f3f359b14898c759cce00a2c8b707465896
1 /*
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.
7 */
9 #pragma once
11 #include "IDirectory.h"
13 #include <memory>
14 #include <string>
16 namespace XFILE
18 /*!
19 \ingroup filesystem
20 \brief Wrappers for \e IDirectory
22 class CDirectory
24 public:
25 CDirectory(void);
26 virtual ~CDirectory(void);
28 class CHints
30 public:
31 std::string mask;
32 int flags = DIR_FLAG_DEFAULTS;
35 static bool GetDirectory(const CURL& url
36 , CFileItemList &items
37 , const std::string &strMask
38 , int flags);
40 static bool GetDirectory(const CURL& url,
41 const std::shared_ptr<IDirectory>& pDirectory,
42 CFileItemList& items,
43 const CHints& hints);
45 static bool GetDirectory(const CURL& url
46 , CFileItemList &items
47 , const CHints &hints);
49 static bool Create(const CURL& url);
50 static bool Exists(const CURL& url, bool bUseCache = true);
51 static bool Remove(const CURL& url);
52 static bool RemoveRecursive(const CURL& url);
54 static bool GetDirectory(const std::string& strPath
55 , CFileItemList &items
56 , const std::string &strMask
57 , int flags);
59 static bool GetDirectory(const std::string& strPath,
60 const std::shared_ptr<IDirectory>& pDirectory,
61 CFileItemList& items,
62 const std::string& strMask,
63 int flags);
65 static bool GetDirectory(const std::string& strPath
66 , CFileItemList &items
67 , const CHints &hints);
69 static bool Create(const std::string& strPath);
70 static bool Exists(const std::string& strPath, bool bUseCache = true);
71 static bool Remove(const std::string& strPath);
72 static bool RemoveRecursive(const std::string& strPath);
74 /*! \brief Filter files that act like directories from the list, replacing them with their directory counterparts
75 \param items The item list to filter
76 \param mask The mask to apply when filtering files
77 \param expandImages True to include disc images in file directory expansion
79 static void FilterFileDirectories(CFileItemList &items, const std::string &mask,
80 bool expandImages=false);