- if (strcasecmp(event_type, LibHomeScreen::event_list[0].c_str()) == 0) {
- auto i = this->handlers.find(Event_ShowWindow);
- if ( i != this->handlers.end() ) {
- i->second(json_data);
- }
- }
- else if (strcasecmp(event_type, LibHomeScreen::event_list[1].c_str()) == 0) {
- auto i = this->handlers.find(Event_OnScreenMessage);
- if ( i != this->handlers.end() ) {
- i->second(json_data);
- }
- }
- else if (strcasecmp(event_type, LibHomeScreen::event_list[2].c_str()) == 0) {
- auto i = this->handlers.find(Event_OnScreenReply);
- if ( i != this->handlers.end() ) {
- i->second(json_data);
- }
- }
- else if (strcasecmp(event_type, LibHomeScreen::event_list[3].c_str()) == 0) {
- auto i = this->handlers.find(Event_HideWindow);
- if ( i != this->handlers.end() ) {
- i->second(json_data);
- }
- }
- else if (strcasecmp(event_type, LibHomeScreen::event_list[4].c_str()) == 0) {
- auto i = this->handlers.find(Event_ReplyShowWindow);
- if ( i != this->handlers.end() ) {
- i->second(json_data);
- }
- }
- else if (strcasecmp(event_type, LibHomeScreen::event_list[5].c_str()) == 0) {
- auto i = this->handlers.find(Event_ShowNotification);
- if ( i != this->handlers.end() ) {
- i->second(json_data);
- }
- }
- else if (strcasecmp(event_type, LibHomeScreen::event_list[6].c_str()) == 0) {
- auto i = this->handlers.find(Event_ShowInformation);
- if ( i != this->handlers.end() ) {
- i->second(json_data);
- }
- }
- else if (strcasecmp(event_type, LibHomeScreen::event_list[7].c_str()) == 0) {
- auto i = this->handlers.find(Event_AppListChanged);
- if ( i != this->handlers.end() ) {
- i->second(json_data);