~x3lectric/xbmc/svn-trunk

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include "IFile.h"

namespace XFILE
{
  class CFileTuxBox : public IFile
  {
    public:
      CFileTuxBox();
      virtual ~CFileTuxBox();
      virtual __int64 GetPosition();
      virtual __int64 GetLength();
      virtual bool Open(const CURL& url, bool bBinary = true);
      virtual void Close();
      virtual bool Exists(const CURL& url) { return true;};
      virtual int Stat(const CURL& url, struct __stat64* buffer) { errno = ENOENT; return -1; };
      virtual unsigned int Read(void* lpBuf, __int64 uiBufSize);
      virtual __int64 Seek(__int64 iFilePosition, int iWhence = SEEK_SET);
    protected:
  };
};