summaryrefslogtreecommitdiffstats
path: root/xbmc/filesystem/PluginFile.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/filesystem/PluginFile.h')
-rw-r--r--xbmc/filesystem/PluginFile.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/xbmc/filesystem/PluginFile.h b/xbmc/filesystem/PluginFile.h
new file mode 100644
index 0000000..2044fd9
--- /dev/null
+++ b/xbmc/filesystem/PluginFile.h
@@ -0,0 +1,31 @@
+/*
+ * 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 "filesystem/OverrideFile.h"
+
+namespace XFILE
+{
+class CPluginFile : public COverrideFile
+{
+public:
+ CPluginFile(void);
+ ~CPluginFile(void) override;
+ bool Open(const CURL& url) override;
+ bool Exists(const CURL& url) override;
+ int Stat(const CURL& url, struct __stat64* buffer) override;
+ int Stat(struct __stat64* buffer) override;
+ bool OpenForWrite(const CURL& url, bool bOverWrite = false) override;
+ bool Delete(const CURL& url) override;
+ bool Rename(const CURL& url, const CURL& urlnew) override;
+
+protected:
+ std::string TranslatePath(const CURL& url) override;
+};
+} // namespace XFILE