std::string("hideWindow"),
std::string("replyShowWindow"),
std::string("showNotification"),
- std::string("showInformation")
+ std::string("showInformation"),
+ std::string("registerShortcut")
};
const std::vector<std::string> LibHomeScreen::event_list {
std::string("replyShowWindow"),
std::string("showNotification"),
std::string("showInformation"),
+ std::string("registerShortcut"),
std::string("none")
};
case Event_ShowInformation:
this->subscribe(LibHomeScreen::event_list[6]);
break;
+ case Event_RegisterShortCut:
+ this->subscribe(LibHomeScreen::event_list[7]);
+ break;
}
this->handlers[et] = std::move(f);
i->second(json_data);
}
}
+ else if (strcasecmp(event_type, LibHomeScreen::event_list[7].c_str()) == 0) {
+ auto i = this->handlers.find(Event_RegisterShortCut);
+ if ( i != this->handlers.end() ) {
+ i->second(json_data);
+ }
+ }
}
/**