Merge pull request #25808 from CastagnaIT/fix_url_parse
[xbmc.git] / xbmc / filesystem / MusicDatabaseFile.h
blob1e259f0630fac916de835bf0b7b9878b52af31f3
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 "File.h"
12 #include "IFile.h"
14 namespace XFILE
16 class CMusicDatabaseFile : public IFile
18 public:
19 CMusicDatabaseFile(void);
20 ~CMusicDatabaseFile(void) override;
21 bool Open(const CURL& url) override;
22 bool Exists(const CURL& url) override;
23 int Stat(const CURL& url, struct __stat64* buffer) override;
25 ssize_t Read(void* lpBuf, size_t uiBufSize) override;
26 int64_t Seek(int64_t iFilePosition, int iWhence = SEEK_SET) override;
27 void Close() override;
28 int64_t GetPosition() override;
29 int64_t GetLength() override;
31 static std::string TranslateUrl(const CURL& url);
32 protected:
33 CFile m_file;