summaryrefslogtreecommitdiffstats
path: root/xbmc/filesystem/VideoDatabaseDirectory.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/filesystem/VideoDatabaseDirectory.h')
-rw-r--r--xbmc/filesystem/VideoDatabaseDirectory.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/xbmc/filesystem/VideoDatabaseDirectory.h b/xbmc/filesystem/VideoDatabaseDirectory.h
new file mode 100644
index 0000000..9603b7d
--- /dev/null
+++ b/xbmc/filesystem/VideoDatabaseDirectory.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2005-2018 Team Kodi
+ * This file is part of Kodi - https://kodi.tv
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * See LICENSES/README.md for more information.
+ */
+
+#pragma once
+
+#include "IDirectory.h"
+#include "VideoDatabaseDirectory/DirectoryNode.h"
+#include "VideoDatabaseDirectory/QueryParams.h"
+
+namespace XFILE
+{
+ class CVideoDatabaseDirectory : public IDirectory
+ {
+ public:
+ CVideoDatabaseDirectory(void);
+ ~CVideoDatabaseDirectory(void) override;
+ bool GetDirectory(const CURL& url, CFileItemList &items) override;
+ bool Exists(const CURL& url) override;
+ bool AllowAll() const override { return true; }
+ static VIDEODATABASEDIRECTORY::NODE_TYPE GetDirectoryChildType(const std::string& strPath);
+ static VIDEODATABASEDIRECTORY::NODE_TYPE GetDirectoryType(const std::string& strPath);
+ static VIDEODATABASEDIRECTORY::NODE_TYPE GetDirectoryParentType(const std::string& strPath);
+ static bool GetQueryParams(const std::string& strPath, VIDEODATABASEDIRECTORY::CQueryParams& params);
+ void ClearDirectoryCache(const std::string& strDirectory);
+ static bool IsAllItem(const std::string& strDirectory);
+ static bool GetLabel(const std::string& strDirectory, std::string& strLabel);
+ static std::string GetIcon(const std::string& strDirectory);
+ bool ContainsMovies(const std::string &path);
+ static bool CanCache(const std::string &path);
+ };
+}