mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
plugins: simplify integratePlugins(); ...
* CPluginsExec(): switch to singleton
* move CPluginsExec() to pluginlist.cpp|h
because it's not really a settings_helper
Origin commit data
------------------
Branch: ni/coolstream
Commit: 389c4c232f
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-11-10 (Mon, 10 Nov 2014)
Origin message was:
------------------
- plugins: simplify integratePlugins(); ...
* CPluginsExec(): switch to singleton
* move CPluginsExec() to pluginlist.cpp|h
because it's not really a settings_helper
------------------
This commit was generated by Migit
This commit is contained in:
@@ -367,35 +367,6 @@ int CNVODChangeExec::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
return menu_return::RETURN_EXIT;
|
||||
}
|
||||
|
||||
int CPluginsExec::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
{
|
||||
if (actionKey.empty())
|
||||
return menu_return::RETURN_NONE;
|
||||
|
||||
//printf("CPluginsExec exec: %s\n", actionKey.c_str());
|
||||
int sel= atoi(actionKey.c_str());
|
||||
|
||||
if(parent != NULL)
|
||||
parent->hide();
|
||||
|
||||
if(actionKey == "teletext") {
|
||||
g_RCInput->postMsg(CRCInput::RC_timeout, 0);
|
||||
g_RCInput->postMsg(CRCInput::RC_text, 0);
|
||||
}
|
||||
else if (sel>=0)
|
||||
{
|
||||
g_PluginList->startPlugin(sel);
|
||||
}
|
||||
|
||||
if (!g_PluginList->getScriptOutput().empty())
|
||||
ShowMsg(LOCALE_PLUGINS_RESULT, g_PluginList->getScriptOutput(), CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_SHELL);
|
||||
|
||||
if (g_PluginList->getIntegration(sel) == CPlugins::I_TYPE_DISABLED)
|
||||
return menu_return::RETURN_EXIT;
|
||||
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
|
||||
int CMoviePluginChangeExec::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
{
|
||||
int sel= atoi(actionKey.c_str());
|
||||
|
Reference in New Issue
Block a user