[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / filesystem / ISO9660File.h
blob575460536f5d309a1546407ea64dc87064d20be6
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 "IFile.h"
13 #include <memory>
15 #include <cdio++/iso9660.hpp>
17 namespace XFILE
20 class CISO9660File : public IFile
22 public:
23 CISO9660File();
24 ~CISO9660File() override = default;
26 bool Open(const CURL& url) override;
27 void Close() override {}
29 int Stat(const CURL& url, struct __stat64* buffer) override;
31 ssize_t Read(void* buffer, size_t size) override;
32 int64_t Seek(int64_t filePosition, int whence) override;
34 int64_t GetLength() override;
35 int64_t GetPosition() override;
37 bool Exists(const CURL& url) override;
39 int GetChunkSize() override;
41 private:
42 std::unique_ptr<ISO9660::IFS> m_iso;
43 std::unique_ptr<ISO9660::Stat> m_stat;
45 int32_t m_start;
46 int32_t m_current;
49 } // namespace XFILE