- plugins: simplify integratePlugins(); ...

* CPluginsExec(): switch to singleton
* move CPluginsExec() to pluginlist.cpp|h
  because it's not really a settings_helper
This commit is contained in:
svenhoefer
2014-11-10 22:41:08 +01:00
parent 02137ca987
commit 389c4c232f
11 changed files with 55 additions and 52 deletions

View File

@@ -129,12 +129,12 @@ void CNeutrinoApp::InitMenu()
unsigned int nextShortcut;
CMenuWidget &menuSettings = personalize.getWidget(MENU_SETTINGS);
nextShortcut = (unsigned int)menuSettings.getNextShortcut();
menuSettings.integratePlugins(&pluginsExec, CPlugins::I_TYPE_SETTING, nextShortcut);
menuSettings.integratePlugins(CPlugins::I_TYPE_SETTING, nextShortcut);
//add I_TYPE_SERVICE plugins
CMenuWidget &menuService = personalize.getWidget(MENU_SERVICE);
nextShortcut = (unsigned int)menuService.getNextShortcut();
menuService.integratePlugins(&pluginsExec, CPlugins::I_TYPE_SERVICE, nextShortcut);
menuService.integratePlugins(CPlugins::I_TYPE_SERVICE, nextShortcut);
}
//init main menu