}
unique_ptr<char[]> pPkgName(_StringConverter::CopyToCharArrayN(providerId));
int ret = livebox_service_trigger_update(pPkgName.get(), null, null, null, 1);
- SysTryReturnResult(NID_SHELL, ret != LB_STATUS_ERROR_NOT_EXIST, E_OBJ_NOT_FOUND, "There is no instance for the dynamic box to be updated." );
- SysTryReturnResult(NID_SHELL, ret == LB_STATUS_SUCCESS || ret == LB_STATUS_ERROR_CANCEL, E_SYSTEM, "Failed to invoke livebox_service_trigger_update() with reason(%d)", ret);
+ SysTryReturnResult(NID_SHELL, ret != static_cast<int>(LB_STATUS_ERROR_NOT_EXIST), E_OBJ_NOT_FOUND, "There is no instance for the dynamic box to be updated." );
+ SysTryReturnResult(NID_SHELL, ret == static_cast<int>(LB_STATUS_SUCCESS) || ret == static_cast<int>(LB_STATUS_ERROR_CANCEL), E_SYSTEM, "Failed to invoke livebox_service_trigger_update() with reason(%d)", ret);
return E_SUCCESS;
}
unique_ptr<char[]> pIcon(_StringConverter::CopyToCharArrayN(iconPath));
int ret = add_to_home_livebox(pProviderId.get(), pName.get(), LIVEBOX_TYPE_DEFAULT, pContent.get(), pIcon.get(), -1.0l, true, AddAppWidgetCallback, this);
- SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_COMM, E_CONNECTION_FAILED, "Failed to add_to_home_livebox");
+ SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_COMM), E_CONNECTION_FAILED, "Failed to add_to_home_livebox");
SysTryReturnResult(NID_SHELL, ret == SHORTCUT_SUCCESS, E_SYSTEM, "Failed to add_to_home_livebox (%s)", strerror(r));
return E_SUCCESS;
int type = (uriData.IsEmpty())? LAUNCH_BY_PACKAGE : LAUNCH_BY_URI;
int ret = add_to_home_shortcut(pAppId.get(), pName.get(), type, pUriData.get(), pIcon.get(), allowDuplication, NULL, this);
- SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_COMM, E_SUCCESS, "It's failed to add_to_home_shortcut, but regarded as success.");
- SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_MEMORY, E_OUT_OF_MEMORY, "It's failed to add_to_home_shortcut.");
+ SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_COMM), E_SUCCESS, "It's failed to add_to_home_shortcut, but regarded as success.");
+ SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_MEMORY), E_OUT_OF_MEMORY, "It's failed to add_to_home_shortcut.");
SysTryReturnResult(NID_SHELL, ret == SHORTCUT_SUCCESS, E_SYSTEM, "Failed to add_to_home_shortcut");
SysLog(NID_SHELL, "Successed.");
std::unique_ptr<char[]> pName(_StringConverter::CopyToCharArrayN(displayName));
int ret = add_to_home_remove_shortcut(pAppId.get(), pName.get(), "", null, this);
- SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_COMM, E_SUCCESS, "It's failed to add_to_home_remove_shortcut, but regarded as success.");
- SysTryReturnResult(NID_SHELL, ret != SHORTCUT_ERROR_MEMORY, E_OUT_OF_MEMORY, "It's failed to add_to_home_remove_shortcut.");
+ SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_COMM), E_SUCCESS, "It's failed to add_to_home_remove_shortcut, but regarded as success.");
+ SysTryReturnResult(NID_SHELL, ret != static_cast<int>(SHORTCUT_ERROR_MEMORY), E_OUT_OF_MEMORY, "It's failed to add_to_home_remove_shortcut.");
SysTryReturnResult(NID_SHELL, ret == SHORTCUT_SUCCESS, E_SYSTEM, "It's failed to add_to_home_remove_shortcut, with reason (%d)");
return E_SUCCESS;