[PVR][Estuary] Timer settings dialog: Show client name in timer type selection dialog...
[xbmc.git] / xbmc / filesystem / CDDAFile.h
blob654e0f9e87429e3e7135ba48c278e178607e10cb
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"
12 #include "storage/cdioSupport.h"
14 namespace XFILE
16 class CFileCDDA : public IFile
18 public:
19 CFileCDDA(void);
20 ~CFileCDDA(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;
30 int GetChunkSize() override;
32 protected:
33 bool IsValidFile(const CURL& url);
34 int GetTrackNum(const CURL& url);
36 protected:
37 CdIo_t* m_pCdIo;
38 lsn_t m_lsnStart = CDIO_INVALID_LSN; // Start of m_iTrack in logical sector number
39 lsn_t m_lsnCurrent = CDIO_INVALID_LSN; // Position inside the track in logical sector number
40 lsn_t m_lsnEnd = CDIO_INVALID_LSN; // End of m_iTrack in logical sector number
41 int m_iSectorCount; // max number of sectors to read at once
42 std::shared_ptr<MEDIA_DETECT::CLibcdio> m_cdio;