mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
plugins: add option for software manage integration
NOTE: bitmask enumeration should be better for more flexibility
This commit is contained in:
@@ -118,14 +118,20 @@ int CSoftwareUpdate::showSoftwareUpdate()
|
||||
softUpdate.addItem(mf);
|
||||
#endif
|
||||
|
||||
unsigned int nextShortcut = (unsigned int)softUpdate.getNextShortcut();
|
||||
|
||||
#ifdef BOXMODEL_CS_HD2
|
||||
softUpdate.addItem(GenericMenuSeparatorLine);
|
||||
|
||||
mf = new CMenuDForwarder(LOCALE_FLASHUPDATE_CREATEIMAGE_MENU, true, NULL, new CFlashExpertSetup(), NULL, CRCInput::convertDigitToKey(1));
|
||||
mf = new CMenuDForwarder(LOCALE_FLASHUPDATE_CREATEIMAGE_MENU, true, NULL, new CFlashExpertSetup(), NULL, CRCInput::convertDigitToKey(nextShortcut));
|
||||
mf->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_CREATEIMAGE_MENU);
|
||||
softUpdate.addItem(mf);
|
||||
#endif
|
||||
|
||||
// plugins with software manage integration
|
||||
nextShortcut = (unsigned int)softUpdate.getNextShortcut();
|
||||
softUpdate.integratePlugins(PLUGIN_INTEGRATION_SOFTWARE_MANAGE, nextShortcut);
|
||||
|
||||
int res = softUpdate.exec (NULL, "");
|
||||
return res;
|
||||
}
|
||||
|
13
src/plugin.h
13
src/plugin.h
@@ -15,12 +15,13 @@ enum
|
||||
// plugin integration as defined in plugin's cfg
|
||||
enum
|
||||
{
|
||||
PLUGIN_INTEGRATION_DISABLED = 0,
|
||||
PLUGIN_INTEGRATION_MAIN = 1,
|
||||
PLUGIN_INTEGRATION_MULTIMEDIA = 2,
|
||||
PLUGIN_INTEGRATION_SETTING = 3,
|
||||
PLUGIN_INTEGRATION_SERVICE = 4,
|
||||
PLUGIN_INTEGRATION_INFORMATION = 5
|
||||
PLUGIN_INTEGRATION_DISABLED = 0,
|
||||
PLUGIN_INTEGRATION_MAIN = 1,
|
||||
PLUGIN_INTEGRATION_MULTIMEDIA = 2,
|
||||
PLUGIN_INTEGRATION_SETTING = 3,
|
||||
PLUGIN_INTEGRATION_SERVICE = 4,
|
||||
PLUGIN_INTEGRATION_INFORMATION = 5,
|
||||
PLUGIN_INTEGRATION_SOFTWARE_MANAGE = 6
|
||||
};
|
||||
|
||||
#endif // __plugin_h__
|
||||
|
Reference in New Issue
Block a user