Fix keymap.
[vuplus_xbmc] / xbmc / guilib / XBTFReader.h
1 /*
2  *      Copyright (C) 2005-2013 Team XBMC
3  *      http://xbmc.org
4  *
5  *  This Program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This Program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with XBMC; see the file COPYING.  If not, see
17  *  <http://www.gnu.org/licenses/>.
18  *
19  */
20
21 #ifndef XBTFREADER_H_
22 #define XBTFREADER_H_
23
24 #include <vector>
25 #include <map>
26 #include "utils/StdString.h"
27 #include "XBTF.h"
28
29 class CXBTFReader
30 {
31 public:
32   CXBTFReader();
33   bool IsOpen() const;
34   bool Open(const CStdString& fileName);
35   void Close();
36   time_t GetLastModificationTimestamp();
37   bool Exists(const CStdString& name);
38   CXBTFFile* Find(const CStdString& name);
39   bool Load(const CXBTFFrame& frame, unsigned char* buffer);
40   std::vector<CXBTFFile>&  GetFiles();
41
42 private:
43   CXBTF      m_xbtf;
44   CStdString m_fileName;
45   FILE*      m_file;
46   std::map<CStdString, CXBTFFile> m_filesMap;
47 };
48
49 #endif