return false;
}
- LogDebug("handle package=" << handle_package);
+ LoggerD("handle package=" << handle_package);
if (app_get_package(&package))
{
cmdline[ret] = 0;
close(fd);
- LogDebug("package=" << package);
+ LoggerD("package=" << package);
if (strlen(cmdline) == strlen(handle_package))
{
}
else
{
- LogDebug("package=" << package);
+ LoggerD("package=" << package);
if (strlen(package) == strlen(handle_package))
{
if ( notification )
{
- LogInfo(" notification id = " << notification->getID());
+ LoggerI(" notification id = " << notification->getID());
notification_h handle = (notification_h)notification->getNotificationHandle();
- LogInfo("notification hanel :" << handle);
+ LoggerI("notification hanel :" << handle);
if ( handle )
{
{
if (notification->getLaunchFlag())
{
- LogInfo("Notification Launch Flag True");
+ LoggerI("Notification Launch Flag True");
notification_set_property(handle, 0);
notification_set_execute_option(handle, NOTIFICATION_EXECUTE_TYPE_SINGLE_LAUNCH, NULL, NULL, service_data);
}
else
{
- LogInfo("Notification Launch Flag False");
+ LoggerI("Notification Launch Flag False");
notification_set_property(handle, NOTIFICATION_PROP_DISABLE_APP_LAUNCH);
}
}
}
- LogDebug(" Layout type = " << noti_layout);
+ LoggerD(" Layout type = " << noti_layout);
ret = notification_set_layout(handle, noti_layout);
- LogDebug("set Layout result= " << ret);
+ LoggerD("set Layout result= " << ret);
int privID = -1;
if (NOTIFICATION_ERROR_NONE == ret)
{
id = privID;
- LogDebug("private ID : " << privID);
+ LoggerD("private ID : " << privID);
notification->setUpdatedFlag(false);
}
else
{
throw UnknownException("get notification size error");
}
- LogInfo("get Size : " << value);
+ LoggerI("get Size : " << value);
notification_update_size(handle, NOTIFICATION_PRIV_ID_NONE, value);
if (notification_get_progress(handle, &value) != NOTIFICATION_ERROR_NONE)
{
throw UnknownException("get notification percentage error");
}
- LogInfo("get Percentage : " << value);
+ LoggerI("get Percentage : " << value);
notification_update_progress(handle, NOTIFICATION_PRIV_ID_NONE, value);
}
}
else
{
- LogDebug("it has not notification handle.");
+ LoggerD("it has not notification handle.");
throw UnknownException("It is Empty Notification.");
}
}
{
if (notification)
{
- LogDebug(" notification id = " << notification->getID());
+ LoggerD(" notification id = " << notification->getID());
notification_h handle = (notification_h)notification->getNotificationHandle();
- LogDebug("handle = " << handle);
+ LoggerD("handle = " << handle);
if (handle)
{
- LogDebug(" noti type = " << notification->getNotiType());
+ LoggerD(" noti type = " << notification->getNotiType());
if ( notification->getNotiType() == NOTI_TYPE_PROGRESS)
{
int ret = 0;
- LogDebug(" progress type = " << notification->getProgressType());
- LogDebug(" noti id = " << notification->getID());
- LogDebug(" noti progress value = " << notification->getProgressValue());
+ LoggerD(" progress type = " << notification->getProgressType());
+ LoggerD(" noti id = " << notification->getID());
+ LoggerD(" noti progress value = " << notification->getProgressValue());
if ( NOTI_PROGRESS_TYPE_PERCENTAGE == notification->getProgressType() )
{
- LogDebug( " Percentage ");
+ LoggerD( " Percentage ");
ret = notification_update_progress(handle, NOTIFICATION_PRIV_ID_NONE, notification->getProgressValue());
}
else if ( NOTI_PROGRESS_TYPE_SIZE == notification->getProgressType())
{
- LogDebug( " size ");
+ LoggerD( " size ");
ret = notification_update_size(handle, NOTIFICATION_PRIV_ID_NONE, notification->getProgressValue());
}
- LogDebug(" notification_update_progress = " << ret);
+ LoggerD(" notification_update_progress = " << ret);
if (NOTIFICATION_ERROR_NONE != ret)
{
}
- LogDebug(" updated Flag = " << notification->getUpdatedFlag());
+ LoggerD(" updated Flag = " << notification->getUpdatedFlag());
if ( notification->getUpdatedFlag())
{
}
}
- LogDebug(" Layout type = " << noti_layout);
+ LoggerD(" Layout type = " << noti_layout);
int ret = notification_set_layout(handle, noti_layout);
- LogDebug("set Layout result= " << ret);
+ LoggerD("set Layout result= " << ret);
bundle *service_data = NULL;
{
if (notification->getLaunchFlag())
{
- LogInfo("Notification Launch Flag True");
+ LoggerI("Notification Launch Flag True");
notification_set_property(handle, 0);
notification_set_execute_option(handle, NOTIFICATION_EXECUTE_TYPE_SINGLE_LAUNCH, NULL, NULL, service_data);
}
else
{
- LogInfo("Notification Launch Flag False");
+ LoggerI("Notification Launch Flag False");
notification_set_property(handle, NOTIFICATION_PROP_DISABLE_APP_LAUNCH);
}
notification->setLaunchFlag(false);
- LogDebug(" get Title = " << notification->getTitle());
+ LoggerD(" get Title = " << notification->getTitle());
ret = notification_update(handle);
- LogDebug(" notification_update = " << ret);
+ LoggerD(" notification_update = " << ret);
notification->setUpdatedFlag(false); //init
if (ret != NOTIFICATION_ERROR_NONE)
throw UnknownException("Notification Object update fail, Error Code : ");
}
- LogDebug(" get Title = " << notification->getTitle());
+ LoggerD(" get Title = " << notification->getTitle());
}
}
else
{
- LogDebug("it has not notification handle.");
+ LoggerD("it has not notification handle.");
throw UnknownException("It is Empty Notification.");
}
}
else
{
- LogDebug(" INotification is NULL");
+ LoggerD(" INotification is NULL");
throw UnknownException("Notificaton Error.");
}
int ret = 0;
bool existFalg = false;
- LogDebug("id : " << id);
+ LoggerD("id : " << id);
std::istringstream stream(id);
if (stream.fail())
{
if (notification_get_grouping_list( NOTIFICATION_TYPE_NONE , -1, ¬i_list))
{
- LogDebug(" get notification list failed...");
+ LoggerD(" get notification list failed...");
throw UnknownException("Can't get noti list");
}
{
int noti_priv = -1;
notification_get_id(noti, NULL, ¬i_priv);
- LogDebug(" notification id = " << noti_priv);
+ LoggerD(" notification id = " << noti_priv);
if (noti_priv == privID)
existFalg = true;
}
if (noti_list)
notification_free_list(noti_list);
- LogDebug(" notification ID : "<< privID);
+ LoggerD(" notification ID : "<< privID);
if ( !existFalg )
throw NotFoundException("not exist id");
ret = notification_delete_by_priv_id(NULL, NOTIFICATION_TYPE_NONE, privID);
- LogDebug("ret = " << ret);
+ LoggerD("ret = " << ret);
if (ret != NOTIFICATION_ERROR_NONE)
{
if (ret == NOTIFICATION_ERROR_NOT_EXIST_ID)
{
int privID = 0;
- LogDebug("id : " << id);
+ LoggerD("id : " << id);
std::istringstream stream(id);
if (stream.fail())
{
}
std::vector<StatusNotification*> NotificationManager::getAll()
{
- LogDebug("OK");
+ LoggerD("OK");
std::vector<StatusNotification*> data;
notification_h noti = NULL;
if (notification_get_grouping_list( NOTIFICATION_TYPE_NONE , -1, ¬i_list))
{
- LogDebug(" get notification list failed...");
+ LoggerD(" get notification list failed...");
throw UnknownException("Can't get noti list");
}
{
int noti_priv = -1;
notification_get_id(noti, NULL, ¬i_priv);
- LogDebug(" notification id = " << noti_priv);
+ LoggerD(" notification id = " << noti_priv);
StatusNotification* notification = new StatusNotification(noti_priv);
notification_get_id((notification_h)notification->getNotificationHandle(), NULL, ¬i_priv);
- LogDebug("loaded notification id = " << noti_priv);
+ LoggerD("loaded notification id = " << noti_priv);
data.push_back(notification);
{
int noti_priv = -1;
notification_get_id(noti, NULL, ¬i_priv);
- LogDebug(" notification id = " << noti_priv);
+ LoggerD(" notification id = " << noti_priv);
StatusNotification* notification = new StatusNotification(noti_priv);
notification_get_id((notification_h)notification->getNotificationHandle(), NULL, ¬i_priv);
- LogDebug("loaded notification id = " << noti_priv);
+ LoggerD("loaded notification id = " << noti_priv);
data.push_back(notification);