[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / filesystem / StackDirectory.h
blob5f61fe3ac7f518d2d07192920531a477617d8603
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"
12 #include "utils/RegExp.h"
14 #include <string>
15 #include <vector>
17 namespace XFILE
19 class CStackDirectory : public IDirectory
21 public:
22 CStackDirectory();
23 ~CStackDirectory() override;
24 bool GetDirectory(const CURL& url, CFileItemList& items) override;
25 bool AllowAll() const override { return true; }
26 static std::string GetStackedTitlePath(const std::string &strPath);
27 static std::string GetStackedTitlePath(const std::string &strPath, VECCREGEXP& RegExps);
28 static std::string GetFirstStackedFile(const std::string &strPath);
29 static bool GetPaths(const std::string& strPath, std::vector<std::string>& vecPaths);
30 static std::string ConstructStackPath(const CFileItemList& items, const std::vector<int> &stack);
31 static bool ConstructStackPath(const std::vector<std::string> &paths, std::string &stackedPath);