#include <regex>
#include <thread>
-#include "wm-client.hpp"
+#include "wm_client.hpp"
#include "applist.hpp"
extern "C"
* Check Policy
*/
// get current trigger
- auto trigger = g_app_list.getRequest(req_num);
+ bool found;
bool is_activate = true;
+ auto trigger = g_app_list.getRequest(req_num, &found);
+ if(!found)
+ {
+ WMError err = WMError::NO_ENTRY;
+ HMI_SEQ_ERROR(req_num, errorDescription(err));
+ return err;
+ }
/* get new status from Policy Manager
// layer manager task
bool sync_draw_happen = false;
- for (const auto &y : g_app_list.getActions(req_num))
+ for (const auto &y : g_app_list.getActions(req_num, &found))
{
+ if (!found)
+ {
+ WMError err = WMError::NO_ENTRY;
+ HMI_SEQ_ERROR(req_num, "%s : Action is not set", errorDescription(err));
+ return err;
+ }
/*
do_task(y);
*/
void App::do_enddraw(unsigned req_num)
{
// get actions
- auto actions = g_app_list.getActions(req_num);
+ bool found;
+ auto actions = g_app_list.getActions(req_num, &found);
+ if (!found)
+ {
+ WMError err = WMError::NO_ENTRY;
+ HMI_SEQ_ERROR(req_num, errorDescription(err));
+ return;
+ }
+
HMI_SEQ_INFO(req_num, "do endDraw");
for (const auto &act : actions)