xbmc
PluginFile.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "filesystem/OverrideFile.h"
12 
13 namespace XFILE
14 {
15 class CPluginFile : public COverrideFile
16 {
17 public:
18  CPluginFile(void);
19  ~CPluginFile(void) override;
20  bool Open(const CURL& url) override;
21  bool Exists(const CURL& url) override;
22  int Stat(const CURL& url, struct __stat64* buffer) override;
23  int Stat(struct __stat64* buffer) override;
24  bool OpenForWrite(const CURL& url, bool bOverWrite = false) override;
25  bool Delete(const CURL& url) override;
26  bool Rename(const CURL& url, const CURL& urlnew) override;
27 
28 protected:
29  std::string TranslatePath(const CURL& url) override;
30 };
31 } // namespace XFILE
Definition: Scraper.h:41
Definition: URL.h:21
Definition: PluginFile.h:15
int Stat(const CURL &url, struct __stat64 *buffer) override
Fills struct __stat64 with information about file specified by url.
Definition: PluginFile.cpp:31
Definition: OverrideFile.h:16