Files

57 lines
1.8 KiB
C++
Raw Permalink Normal View History

2003-08-08 21:18:50 +00:00
#pragma once
2008-05-15 19:06:57 +00:00
/*
* Copyright (C) 2005-2013 Team XBMC
2014-06-07 02:02:38 +00:00
* http://xbmc.org
2008-05-15 19:06:57 +00:00
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This Program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2014-06-07 02:02:38 +00:00
* along with XBMC; see the file COPYING. If not, see
* <http://www.gnu.org/licenses/>.
2008-05-15 19:06:57 +00:00
*
*/
#include "windows/GUIMediaWindow.h"
#include "ProgramDatabase.h"
#include "dialogs/GUIDialogProgress.h"
#include "ThumbLoader.h"
2003-08-08 21:18:50 +00:00
class CGUIWindowPrograms :
public CGUIMediaWindow, public IBackgroundLoaderObserver
2003-08-08 21:18:50 +00:00
{
public:
2005-03-19 17:33:14 +00:00
CGUIWindowPrograms(void);
virtual ~CGUIWindowPrograms(void);
virtual bool OnMessage(CGUIMessage& message);
2010-05-20 22:02:20 +00:00
2003-08-08 21:18:50 +00:00
protected:
virtual void OnItemLoaded(CFileItem* pItem) {};
virtual bool Update(const std::string& strDirectory, bool updateFilterPath = true);
virtual bool OnPlayMedia(int iItem, const std::string &player = "");
virtual bool GetDirectory(const std::string &strDirectory, CFileItemList &items);
virtual void GetContextButtons(int itemNumber, CContextButtons &buttons);
virtual bool OnContextButton(int itemNumber, CONTEXT_BUTTON button);
virtual bool OnAddMediaSource();
virtual std::string GetStartFolder(const std::string &dir);
int GetRegion(int iItem, bool bReload=false);
2010-05-20 22:02:20 +00:00
bool OnChooseVideoModeAndLaunch(int iItem);
2005-03-19 17:33:14 +00:00
CGUIDialogProgress* m_dlgProgress;
2005-03-19 17:33:14 +00:00
CProgramDatabase m_database;
2005-10-14 18:40:04 +00:00
int m_iRegionSet; // for cd stuff
CProgramThumbLoader m_thumbLoader;
2003-08-08 21:18:50 +00:00
};