neutrino: port "show infobar on EPG change" from tuxbox

Maybe this should be configurable besides the config file,
then another Menu item is needed...

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@736 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Commit: 6861b2969c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2010-08-22 (Sun, 22 Aug 2010)
This commit is contained in:
Stefan Seyfried
2010-08-22 17:25:56 +00:00
parent bb5241bf0c
commit daee3809a8
5 changed files with 29 additions and 3 deletions

View File

@@ -1875,6 +1875,27 @@ void CInfoViewer::showLcdPercentOver ()
}
}
void CInfoViewer::showEpgInfo() //message on event change
{
int mode = CNeutrinoApp::getInstance()->getMode();
/* show epg info only if we in TV- or Radio mode and current event is not the same like before */
if ((eventname != info_CurrentNext.current_name) && (mode == 2 /*mode_radio*/ || mode == 1 /*mode_tv*/))
{
eventname = info_CurrentNext.current_name;
if (g_settings.infobar_show)
g_RCInput->postMsg(NeutrinoMessages::SHOW_INFOBAR , 0);
#if 0
/* let's check if this is still needed */
else
/* don't show anything, but update the LCD
TODO: we should not have to update the LCD from the _infoviewer_.
they have nothing to do with each other */
showLcdPercentOver();
#endif
}
}
int CInfoViewerHandler::exec (CMenuTarget * parent, const std::string & /*actionkey*/)
{
int res = menu_return::RETURN_EXIT_ALL;

View File

@@ -129,6 +129,8 @@ class CInfoViewer
void showSNR();
void showInfoFile();
std::string eventname;
public:
bool chanready;
bool is_visible;
@@ -137,7 +139,7 @@ class CInfoViewer
CInfoViewer();
void start();
void showEpgInfo();
void showTitle(const int ChanNum, const std::string & Channel, const t_satellite_position satellitePosition, const t_channel_id new_channel_id = 0, const bool calledFromNumZap = false, int epgpos = 0); // Channel must be UTF-8 encoded
void lookAheadEPG(const int ChanNum, const std::string & Channel, const t_channel_id new_channel_id = 0, const bool calledFromNumZap = false); //alpha: fix for nvod subchannel update
void killTitle();