void DownloadNoti::updateFromItem()
{
- string msg;
if (!m_item)
return;
if (notiHandle) {
err = notification_free(notiHandle);
if (err != NOTIFICATION_ERROR_NONE)
- DM_LOGE("Fail to free noti data [%d]",err);
+ DM_LOGE("Fail to free noti data [%d]", err);
notiHandle = NULL;
}
}
if (notiHandle) {
err = notification_delete(notiHandle);
if (err != NOTIFICATION_ERROR_NONE)
- DM_LOGE("Fail to delete noti data [%d]",err);
+ DM_LOGE("Fail to delete noti data [%d]", err);
}
}
if(!strcmp(tmpStr.c_str(), DM_BODY_TEXT_NO_NAME))
{
- const char *url = NULL;
- url=m_item->getUrl().c_str();
- err = notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_CONTENT, url, NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
+ err = notification_set_text(notiHandle, NOTIFICATION_TEXT_TYPE_CONTENT, m_item->getUrl().c_str(), NULL, NOTIFICATION_VARIABLE_TYPE_NONE);
if (err != NOTIFICATION_ERROR_NONE)
{
DM_LOGE("Fail to set content [%d]", err);
freeNotiData(notiHandle);
return;
}
- char buff[MAX_BUF_LEN] = {0,};
+ char buff[MAX_BUF_LEN] = {0, };
snprintf(buff, MAX_BUF_LEN, "%u", m_item->getHistoryId());
if (app_control_add_extra_data(handle, KEY_DOWNLOADING_HISTORYID,
(const char *)buff) != APP_CONTROL_ERROR_NONE) {
str[63] = '\0';
temp = string(str);
- DM_LOGV("size[%ld]",size);
+ DM_LOGV("size[%ld]", size);
return temp;
}
}
#endif
- err = notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_ICON,DM_NOTI_COMPLETED_QUICKPANNEL_ICON_PATH);
+ err = notification_set_image(notiHandle, NOTIFICATION_IMAGE_TYPE_ICON, DM_NOTI_COMPLETED_QUICKPANNEL_ICON_PATH);
if (err != NOTIFICATION_ERROR_NONE) {
DM_LOGE("Fail to set icon [%d]", err);
freeNotiData(notiHandle);
freeNotiData(notiHandle);
return;
}
- char buff[MAX_BUF_LEN] = {0,};
+ char buff[MAX_BUF_LEN] = {0, };
if (app_control_set_app_id(handle, PACKAGE_NAME) !=
APP_CONTROL_ERROR_NONE) {
DM_LOGE("Fail to app_control set pkgname");