|
|
@ -108,6 +108,7 @@ void FrontEndControler::startSchedule() { |
|
|
|
m_nowPage = packet.data[1]; |
|
|
|
} |
|
|
|
|
|
|
|
event_cache.d.sys_event_page_id.isFromPopWin = m_isInPopWin; |
|
|
|
callUsrEventCb(&event_cache); |
|
|
|
|
|
|
|
if (input_file_event_cache_state) { |
|
|
@ -115,20 +116,20 @@ void FrontEndControler::startSchedule() { |
|
|
|
input_file_event_cache_state = false; |
|
|
|
} |
|
|
|
|
|
|
|
m_isFromPopWin = false; // Çå¿ÕFromPopWin±êÖ¾
|
|
|
|
m_isInPopWin = false; // Çå¿ÕFromPopWin±êÖ¾
|
|
|
|
} else if (tjc::kpt_on_promopt_page_load == packetType) { |
|
|
|
event_cache.eventId = packetType; |
|
|
|
event_cache.pid = packet.data[0]; |
|
|
|
event_cache.bid = 0; |
|
|
|
callUsrEventCb(&event_cache); |
|
|
|
m_isFromPopWin = true; //
|
|
|
|
m_isInPopWin = true; //
|
|
|
|
|
|
|
|
} else if (tjc::kpt_on_keyboard_page_load == packetType) { |
|
|
|
event_cache.eventId = packetType; |
|
|
|
event_cache.pid = packet.data[0]; |
|
|
|
event_cache.bid = 0; |
|
|
|
callUsrEventCb(&event_cache); |
|
|
|
m_isFromPopWin = true; |
|
|
|
m_isInPopWin = true; |
|
|
|
} else { |
|
|
|
event_cache.eventId = packet.data[0]; |
|
|
|
callUsrEventCb(&event_cache); |
|
|
@ -403,6 +404,11 @@ bool FrontEndControler::vis(uint16_t buuid, int32_t val) { |
|
|
|
|
|
|
|
void FrontEndControler::alert(const char* info, function<void(bool)> onConfirm) { |
|
|
|
zlock_guard lg(m_cmdlock); |
|
|
|
if (m_isInPopWin) { |
|
|
|
ZLOGE(TAG, "isInPopWin,alert failed"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
m_onAlertPageConfirmKey = onConfirm; |
|
|
|
static char buf[128]; |
|
|
|
sprintf(buf, "%s", info); |
|
|
@ -413,6 +419,11 @@ void FrontEndControler::alert(const char* info, function<void(bool)> onConfirm) |
|
|
|
} |
|
|
|
void FrontEndControler::alertNoConfirm(const char* info) { |
|
|
|
zlock_guard lg(m_cmdlock); |
|
|
|
if (m_isInPopWin) { |
|
|
|
ZLOGE(TAG, "isInPopWin,alertNoConfirm failed"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
static char buf[128]; |
|
|
|
sprintf(buf, "%s", info); |
|
|
|
|
|
|
@ -424,6 +435,11 @@ void FrontEndControler::alertNoConfirm(const char* info) { |
|
|
|
|
|
|
|
void FrontEndControler::confirmNoCancle(const char* info, function<void(bool)> onConfirm) { |
|
|
|
zlock_guard lg(m_cmdlock); |
|
|
|
if (m_isInPopWin) { |
|
|
|
ZLOGE(TAG, "isInPopWin,confirmNoCancle failed"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
m_onConfirmPageConfirmKey = onConfirm; |
|
|
|
|
|
|
|
static char buf[128]; |
|
|
@ -437,8 +453,12 @@ void FrontEndControler::confirmNoCancle(const char* info, function<void(bool)> o |
|
|
|
|
|
|
|
void FrontEndControler::confirm(const char* info, function<void(bool)> onConfirm) { |
|
|
|
zlock_guard lg(m_cmdlock); |
|
|
|
m_onConfirmPageConfirmKey = onConfirm; |
|
|
|
if (m_isInPopWin) { |
|
|
|
ZLOGE(TAG, "isInPopWin,confirm failed"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
m_onConfirmPageConfirmKey = onConfirm; |
|
|
|
static char buf[128]; |
|
|
|
sprintf(buf, "%s", info); |
|
|
|
|
|
|
|