- adzap: port code from martiis-neutrino-mp

This commit is contained in:
martii
2016-03-03 10:54:45 +01:00
committed by svenhoefer
parent 2358c6333e
commit c015d4670f
11 changed files with 406 additions and 7 deletions

View File

@@ -65,6 +65,7 @@
#include <driver/radiotext.h>
#include <driver/scanepg.h>
#include "gui/adzap.h"
#include "gui/audiomute.h"
#include "gui/audioplayer.h"
#include "gui/bouquetlist.h"
@@ -828,6 +829,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
}
g_settings.epg_search_history_size = g_settings.epg_search_history.size();
g_settings.adzap_zapBackPeriod = configfile.getInt32("adzap_zapBackPeriod", 180);
// USERMENU -> in system/settings.h
//-------------------------------------------
@@ -1314,6 +1316,7 @@ void CNeutrinoApp::saveSetup(const char * fname)
configfile.setInt64("startchanneltv_id", g_settings.startchanneltv_id);
configfile.setInt64("startchannelradio_id", g_settings.startchannelradio_id);
configfile.setInt32("uselastchannel", g_settings.uselastchannel);
configfile.setInt32("adzap_zapBackPeriod", g_settings.adzap_zapBackPeriod);
//epg search
g_settings.epg_search_history_size = g_settings.epg_search_history.size();
if (g_settings.epg_search_history_size > g_settings.epg_search_history_max)
@@ -4000,6 +4003,10 @@ int CNeutrinoApp::exec(CMenuTarget* parent, const std::string & actionKey)
exit(1);
}
}
else if(actionKey == "adzap") {
CAdZapMenu::getInstance()->exec(parent, "adzap");
return menu_return::RETURN_EXIT_ALL;
}
else if(actionKey == "moviedir") {
parent->hide();