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 "DirectoryNode.h"
12 
13 namespace XFILE
14 {
15   namespace VIDEODATABASEDIRECTORY
16   {
17     class CQueryParams
18     {
19     public:
20       CQueryParams();
GetContentType()21       long GetContentType() const { return m_idContent; }
GetMovieId()22       long GetMovieId() const { return m_idMovie; }
GetYear()23       long GetYear() const { return m_idYear; }
GetGenreId()24       long GetGenreId() const { return m_idGenre; }
GetCountryId()25       long GetCountryId() const { return m_idCountry; }
GetActorId()26       long GetActorId() const { return m_idActor; }
GetAlbumId()27       long GetAlbumId() const { return m_idAlbum; }
GetDirectorId()28       long GetDirectorId() const { return m_idDirector; }
GetTvShowId()29       long GetTvShowId() const { return m_idShow; }
GetSeason()30       long GetSeason() const { return m_idSeason; }
GetEpisodeId()31       long GetEpisodeId() const { return m_idEpisode; }
GetStudioId()32       long GetStudioId() const { return m_idStudio; }
GetMVideoId()33       long GetMVideoId() const { return m_idMVideo; }
GetSetId()34       long GetSetId() const { return m_idSet; }
GetTagId()35       long GetTagId() const { return m_idTag; }
36 
37     protected:
38       void SetQueryParam(NODE_TYPE NodeType, const std::string& strNodeName);
39 
40       friend class CDirectoryNode;
41     private:
42       long m_idContent;
43       long m_idMovie;
44       long m_idGenre;
45       long m_idCountry;
46       long m_idYear;
47       long m_idActor;
48       long m_idDirector;
49       long m_idShow;
50       long m_idSeason;
51       long m_idEpisode;
52       long m_idStudio;
53       long m_idMVideo;
54       long m_idAlbum;
55       long m_idSet;
56       long m_idTag;
57     };
58   }
59 }
60