4 * Copyright (C) 2005-2013 Team XBMC
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)
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.
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/>.
23 #include "guilib/GUIDialog.h"
26 class CGUIDialogVideoInfo :
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; };
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; };
44 static std::string ChooseArtType(const CFileItem &item, std::map<std::string, std::string> ¤tArt);
45 static void AddItemPathToFileBrowserSources(VECSOURCES &sources, const CFileItem &item);
47 virtual void OnInitWindow();
49 void SetLabel(int iControl, const CStdString& strLabel);
51 // link cast to movies
53 void OnSearch(CStdString& strSearch);
54 void DoSearch(CStdString& strSearch, CFileItemList& items);
55 void OnSearchItemFound(const CFileItem* pItem);
56 void Play(bool resume = false);
61 CFileItemPtr m_movieItem;
62 CFileItemList *m_castList;
66 bool m_hasUpdatedThumb;