kodi
Episode.h
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "XBDateTime.h"
12 #include "utils/ScraperUrl.h"
13 
14 #include <memory>
15 #include <string>
16 #include <vector>
17 
18 class CFileItem;
19 
20 // single episode information
21 namespace VIDEO
22 {
23  struct EPISODE
24  {
25  bool isFolder;
26  int iSeason;
27  int iEpisode;
28  int iSubepisode;
29  std::string strPath;
30  std::string strTitle;
31  CDateTime cDate;
32  CScraperUrl cScraperUrl;
33  std::shared_ptr<CFileItem> item;
34  EPISODE(int Season = -1, int Episode = -1, int Subepisode = 0, bool Folder = false)
35  {
36  iSeason = Season;
37  iEpisode = Episode;
38  iSubepisode = Subepisode;
39  isFolder = Folder;
40  }
41  bool operator==(const struct EPISODE& rhs) const
42  {
43  return (iSeason == rhs.iSeason &&
44  iEpisode == rhs.iEpisode &&
45  iSubepisode == rhs.iSubepisode);
46  }
47  };
48 
49  typedef std::vector<EPISODE> EPISODELIST;
50 }
51 
Definition: Episode.h:23
Definition: Application.h:72
DateTime class, which uses FileTime as it&#39;s base.
Definition: XBDateTime.h:63
Represents a file on a share.
Definition: FileItem.h:102
Definition: ScraperUrl.h:21