PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/xbmc/cores/dvdplayer/DVDInputStreams/DVDInputStreamHttp.h

http://github.com/xbmc/xbmc
C++ Header | 50 lines | 24 code | 7 blank | 19 comment | 0 complexity | 4ab8697bef45f1e43db36725d4dff1b0 MD5 | raw file
 1#pragma once
 2
 3/*
 4 *      Copyright (C) 2005-2013 Team XBMC
 5 *      http://xbmc.org
 6 *
 7 *  This Program is free software; you can redistribute it and/or modify
 8 *  it under the terms of the GNU General Public License as published by
 9 *  the Free Software Foundation; either version 2, or (at your option)
10 *  any later version.
11 *
12 *  This Program is distributed in the hope that it will be useful,
13 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 *  GNU General Public License for more details.
16 *
17 *  You should have received a copy of the GNU General Public License
18 *  along with XBMC; see the file COPYING.  If not, see
19 *  <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#include "DVDInputStream.h"
24#include "utils/HttpHeader.h"
25
26namespace XFILE
27{
28  class CCurlFile;
29}
30
31class CDVDInputStreamHttp : public CDVDInputStream
32{
33public:
34  CDVDInputStreamHttp();
35  virtual ~CDVDInputStreamHttp();
36  virtual bool Open(const char* strFile, const std::string& content);
37  virtual void Close();
38  virtual int Read(uint8_t* buf, int buf_size);
39  virtual int64_t Seek(int64_t offset, int whence);
40  virtual bool IsEOF();
41  virtual int64_t GetLength();
42
43  CHttpHeader* GetHttpHeader();
44
45protected:
46  XFILE::CCurlFile* m_pFile;
47  CHttpHeader m_httpHeader;
48  bool m_eof;
49};
50