plugins: add option for software manage integration

NOTE: bitmask enumeration should be better for more flexibility


Origin commit data
------------------
Commit: 5e0f9d0e97
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-09-03 (Thu, 03 Sep 2020)
This commit is contained in:
2020-09-03 22:07:12 +02:00
committed by vanhofen
parent 5a7e54d880
commit 94d94a0602
2 changed files with 14 additions and 7 deletions

View File

@@ -122,14 +122,20 @@ int CSoftwareUpdate::showSoftwareUpdate()
softUpdate.addItem(mf); softUpdate.addItem(mf);
#endif #endif
unsigned int nextShortcut = (unsigned int)softUpdate.getNextShortcut();
#ifdef BOXMODEL_CST_HD2 #ifdef BOXMODEL_CST_HD2
softUpdate.addItem(GenericMenuSeparatorLine); 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); mf->setHint("", LOCALE_MENU_HINT_SOFTUPDATE_CREATEIMAGE_MENU);
softUpdate.addItem(mf); softUpdate.addItem(mf);
#endif #endif
// plugins with software manage integration
nextShortcut = (unsigned int)softUpdate.getNextShortcut();
softUpdate.integratePlugins(PLUGIN_INTEGRATION_SOFTWARE_MANAGE, nextShortcut);
int res = softUpdate.exec (NULL, ""); int res = softUpdate.exec (NULL, "");
return res; return res;
} }

View File

@@ -20,7 +20,8 @@ enum
PLUGIN_INTEGRATION_MULTIMEDIA = 2, PLUGIN_INTEGRATION_MULTIMEDIA = 2,
PLUGIN_INTEGRATION_SETTING = 3, PLUGIN_INTEGRATION_SETTING = 3,
PLUGIN_INTEGRATION_SERVICE = 4, PLUGIN_INTEGRATION_SERVICE = 4,
PLUGIN_INTEGRATION_INFORMATION = 5 PLUGIN_INTEGRATION_INFORMATION = 5,
PLUGIN_INTEGRATION_SOFTWARE_MANAGE = 6
}; };
#endif // __plugin_h__ #endif // __plugin_h__