Merge pull request #5039 from CEikermann/patch-1
[vuplus_xbmc] / xbmc / filesystem / UDFFile.h
1 #ifndef _FILEUDF_H
2 #define _FILEUDF_H
3 /*
4  *      Copyright (C) 2010 Team Boxee
5  *      http://www.boxee.tv
6  *
7  *      Copyright (C) 2010-2013 Team XBMC
8  *      http://xbmc.org
9  *
10  *  This Program is free software; you can redistribute it and/or modify
11  *  it under the terms of the GNU General Public License as published by
12  *  the Free Software Foundation; either version 2, or (at your option)
13  *  any later version.
14  *
15  *  This Program is distributed in the hope that it will be useful,
16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  *  GNU General Public License for more details.
19  *
20  *  You should have received a copy of the GNU General Public License
21  *  along with XBMC; see the file COPYING.  If not, see
22  *  <http://www.gnu.org/licenses/>.
23  *
24  */
25 #include "IFile.h"
26 #include "udf25.h"
27
28 namespace XFILE
29 {
30
31 class CUDFFile : public IFile
32 {
33 public:
34   CUDFFile();
35   virtual ~CUDFFile();
36   virtual int64_t GetPosition();
37   virtual int64_t GetLength();
38   virtual bool Open(const CURL& url);
39   virtual bool Exists(const CURL& url);
40   virtual int Stat(const CURL& url, struct __stat64* buffer);
41   virtual unsigned int Read(void* lpBuf, int64_t uiBufSize);
42   virtual int64_t Seek(int64_t iFilePosition, int iWhence = SEEK_SET);
43   virtual void Close();
44 protected:
45   bool m_bOpened;
46   HANDLE m_hFile;
47   udf25 m_udfIsoReaderLocal;
48 };
49 }
50
51 #endif