Exemple #1
0
int CNKMovies::exec(CMenuTarget* parent, const std::string& actionKey)
{
	dprintf(DEBUG_NORMAL, "CNKMovies::exec: actionKey:%s\n", actionKey.c_str());

	int returnval = menu_return::RETURN_REPAINT;

	if(parent) 
		parent->hide();

	if(actionKey == "play")
	{
		playMovie();

		return returnval;
	}
	else if(actionKey == "RC_info")
	{
		showMovieInfo();

		return returnval;
	}
	else if(actionKey == "RC_record")
	{
		nkparser.downloadMovie(m_vMovieInfo[moviesMenu->getSelected()].file.Name, m_vMovieInfo[moviesMenu->getSelected()].file.Url);
	}

	showNKMoviesMenu();
	
	return returnval;
}
Exemple #2
0
void CMovieInfo::showMovieInfo(const char* filename)
{
	if(filename == NULL)
		return;
	
	MI_MOVIE_INFO movie_info;
	movie_info.file.Name = filename;
	if(loadMovieInfo(&movie_info ) == true)
		showMovieInfo(movie_info);
}