[cosmetics] update date in GPL header
[vuplus_xbmc] / xbmc / video / dialogs / GUIDialogVideoInfo.h
1 #pragma once
2
3 /*
4  *      Copyright (C) 2005-2013 Team XBMC
5  *      http://www.xbmc.org
6  *
7  *  This Program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 2, or (at your option)
10  *  any later version.
11  *
12  *  This Program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with XBMC; see the file COPYING.  If not, see
19  *  <http://www.gnu.org/licenses/>.
20  *
21  */
22
23 #include "guilib/GUIDialog.h"
24 #include "FileItem.h"
25
26 class CGUIDialogVideoInfo :
27       public CGUIDialog
28 {
29 public:
30   CGUIDialogVideoInfo(void);
31   virtual ~CGUIDialogVideoInfo(void);
32   virtual bool OnMessage(CGUIMessage& message);
33   virtual bool OnAction(const CAction &action);
34   void SetMovie(const CFileItem *item);
35   bool NeedRefresh() const;
36   bool RefreshAll() const;
37   bool HasUpdatedThumb() const { return m_hasUpdatedThumb; };
38
39   std::string GetThumbnail() const;
40   virtual CFileItemPtr GetCurrentListItem(int offset = 0) { return m_movieItem; }
41   const CFileItemList& CurrentDirectory() const { return *m_castList; };
42   virtual bool HasListItems() const { return true; };
43
44   static std::string ChooseArtType(const CFileItem &item, std::map<std::string, std::string> &currentArt);
45   static void AddItemPathToFileBrowserSources(VECSOURCES &sources, const CFileItem &item);
46 protected:
47   virtual void OnInitWindow();
48   void Update();
49   void SetLabel(int iControl, const CStdString& strLabel);
50
51   // link cast to movies
52   void ClearCastList();
53   void OnSearch(CStdString& strSearch);
54   void DoSearch(CStdString& strSearch, CFileItemList& items);
55   void OnSearchItemFound(const CFileItem* pItem);
56   void Play(bool resume = false);
57   void OnGetArt();
58   void OnGetFanart();
59   void PlayTrailer();
60
61   CFileItemPtr m_movieItem;
62   CFileItemList *m_castList;
63   bool m_bViewReview;
64   bool m_bRefresh;
65   bool m_bRefreshAll;
66   bool m_hasUpdatedThumb;
67 };