18 MenuItem::MenuItem(
const wstring& text,
const string& functionName,
const string& moduleName) :
20 functionName(functionName),
21 moduleName(moduleName)
23 GUIFramework& instance = GUIFramework::get();
24 const HMODULE& module = instance.getModules().at(moduleName);
30 throw exceptions::CantFindFunctionFromModuleException(functionName, moduleName, __FILE__, __FUNCTION__, __LINE__);
36 void MenuItem::processMessage()
41 json::JSONBuilder MenuItem::getStructure()
const
43 using json::utility::jsonObject;
45 if (functionName.empty())
47 return BaseMenuItem::getStructure();
50 json::JSONBuilder builder = BaseMenuItem::getStructure();
53 append(
"functionName", functionName).
54 append(
"moduleName", moduleName);
void(*)() onClickSignature
Default on click signature.