Merge pull request #4797 from Karlson2k/Gotham-fix_tag_read
[vuplus_xbmc] / xbmc / video / Episode.h
1 #pragma once
2 /*
3  *      Copyright (C) 2005-2013 Team XBMC
4  *      http://xbmc.org
5  *
6  *  This Program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2, or (at your option)
9  *  any later version.
10  *
11  *  This Program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with XBMC; see the file COPYING.  If not, see
18  *  <http://www.gnu.org/licenses/>.
19  *
20  */
21 #include "utils/ScraperUrl.h"
22 #include "XBDateTime.h"
23
24 // single episode information
25 namespace VIDEO
26 {
27   struct EPISODE
28   {
29     bool        isFolder;
30     int         iSeason;
31     int         iEpisode;
32     int         iSubepisode;
33     std::string strPath;
34     std::string strTitle;
35     CDateTime   cDate;
36     CScraperUrl cScraperUrl;
37     EPISODE(int Season = -1, int Episode = -1, int Subepisode = 0, bool Folder = false)
38     {
39       iSeason     = Season;
40       iEpisode    = Episode;
41       iSubepisode = Subepisode;
42       isFolder    = Folder;
43     }
44     bool operator==(const struct EPISODE& rhs)
45     {
46       return (iSeason     == rhs.iSeason  &&
47               iEpisode    == rhs.iEpisode &&
48               iSubepisode == rhs.iSubepisode);
49     }
50   };
51
52   typedef std::vector<EPISODE> EPISODELIST;
53 }
54