strip added smb:// shares of their user/pass when adding, and instead store that...
[vuplus_xbmc] / xbmc / filesystem / VideoDatabaseDirectory / QueryParams.h
1 #pragma once
2 /*
3  *      Copyright (C) 2005-2008 Team XBMC
4  *      http://www.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, write to
18  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
19  *  http://www.gnu.org/copyleft/gpl.html
20  *
21  */
22
23 #include "DirectoryNode.h"
24
25 namespace XFILE
26 {
27   namespace VIDEODATABASEDIRECTORY
28   {
29     class CQueryParams
30     {
31     public:
32       CQueryParams();
33       long GetContentType() const { return m_idContent; }
34       long GetMovieId() const { return m_idMovie; }
35       long GetYear() const { return m_idYear; }
36       long GetGenreId() const { return m_idGenre; }
37       long GetCountryId() const { return m_idCountry; }
38       long GetActorId() const { return m_idActor; }
39       long GetAlbumId() const { return m_idAlbum; }
40       long GetDirectorId() const { return m_idDirector; }
41       long GetTvShowId() const { return m_idShow; }
42       long GetSeason() const { return m_idSeason; }
43       long GetEpisodeId() const { return m_idEpisode; }
44       long GetStudioId() const { return m_idStudio; }
45       long GetMVideoId() const { return m_idMVideo; }
46       long GetSetId() const { return m_idSet; }
47
48     protected:
49       void SetQueryParam(NODE_TYPE NodeType, const CStdString& strNodeName);
50
51       friend class CDirectoryNode;
52     private:
53       long m_idContent;
54       long m_idMovie;
55       long m_idGenre;
56       long m_idCountry;
57       long m_idYear;
58       long m_idActor;
59       long m_idDirector;
60       long m_idShow;
61       long m_idSeason;
62       long m_idEpisode;
63       long m_idStudio;
64       long m_idMVideo;
65       long m_idAlbum;
66       long m_idSet;
67     };
68   }
69 }