summaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
authorSangkoo Kim <sangkoo.kim@samsung.com>2015-12-07 14:12:40 +0900
committerSangkoo Kim <sangkoo.kim@samsung.com>2015-12-07 14:13:21 +0900
commit4c80fb46c49c686574f5f109595270839369a32f (patch)
treeba327dd0f410e660bbacbca7dc49f76d94321af9 /externals
parent64c3ddc29b203268a59c0fa3852ce2fdbbe1a3d9 (diff)
downloadmsg-service-4c80fb46c49c686574f5f109595270839369a32f.tar.gz
msg-service-4c80fb46c49c686574f5f109595270839369a32f.tar.bz2
msg-service-4c80fb46c49c686574f5f109595270839369a32f.zip
Change-Id: Iea5f29419572bd4ee3c1f37c7a71ca0c6fd595ac
Diffstat (limited to 'externals')
-rwxr-xr-xexternals/MsgNotificationWrapper.cpp47
1 files changed, 6 insertions, 41 deletions
diff --git a/externals/MsgNotificationWrapper.cpp b/externals/MsgNotificationWrapper.cpp
index aaa3bff..c0f25ee 100755
--- a/externals/MsgNotificationWrapper.cpp
+++ b/externals/MsgNotificationWrapper.cpp
@@ -113,7 +113,6 @@ void setProperty(notification_h noti_h, MSG_NOTI_INFO_S *noti_info);
void setTextDomain(notification_h noti_h, msg_notification_type_t noti_type);
void setText(notification_h noti_h, MSG_NOTI_INFO_S *noti_info);
void setIcon(notification_h noti_h, MSG_NOTI_INFO_S *noti_info);
-void setPkgName(notification_h noti_h, msg_notification_type_t noti_type);
void setSoundAndVibration(notification_h noti_h, char *addressVal, bool bVoiceMail);
void setActiveNotification(notification_h noti_h, MSG_NOTI_INFO_S *noti_info);
void setActiveProperty(notification_h noti_h, MSG_NOTI_INFO_S *noti_info);
@@ -566,7 +565,7 @@ void MsgDeleteNotification(msg_notification_type_t noti_type, int simIndex)
if (noti_type == MSG_NOTI_TYPE_ALL) {
- noti_err = notification_delete_all_by_type(MSG_DEFAULT_APP_ID, NOTIFICATION_TYPE_NOTI);
+ noti_err = notification_delete_all_by_type(NULL, NOTIFICATION_TYPE_NOTI);
} else if (noti_type == MSG_NOTI_TYPE_VOICE_1 || noti_type == MSG_NOTI_TYPE_VOICE_2 || noti_type == MSG_NOTI_TYPE_SIM) {
int notiId = 0;
@@ -1992,8 +1991,6 @@ msg_error_t MsgInsertInstantMessage(msg_notification_type_t noti_type)
notification_h noti = notification_create(NOTIFICATION_TYPE_NOTI);
- setPkgName(noti, noti_type);
-
switch (noti_type) {
case MSG_NOTI_TYPE_NORMAL:
case MSG_NOTI_TYPE_SIM:
@@ -2063,34 +2060,6 @@ _END_OF_INSTANT_NOTI:
return MSG_SUCCESS;
}
-void setPkgName(notification_h noti_h, msg_notification_type_t noti_type)
-{
- MSG_BEGIN();
-
- int noti_err = NOTIFICATION_ERROR_NONE;
-
- switch (noti_type) {
- case MSG_NOTI_TYPE_NORMAL:
- case MSG_NOTI_TYPE_CB:
- case MSG_NOTI_TYPE_SIM:
- case MSG_NOTI_TYPE_FAILED:
- case MSG_NOTI_TYPE_SMS_DELIVERY_REPORT:
- case MSG_NOTI_TYPE_MMS_READ_REPORT:
- case MSG_NOTI_TYPE_MMS_DELIVERY_REPORT:
- case MSG_NOTI_TYPE_SIM_FULL: {
- noti_err = notification_set_pkgname(noti_h, MSG_DEFAULT_APP_ID);
- if (noti_err != NOTIFICATION_ERROR_NONE)
- MSG_ERR("notification_set_pkgname() is failed, [%d]", noti_err);
- break;
- }
- default:
- MSG_DEBUG("No matching type for notification_set_pkgname() [%d]", noti_type);
- break;
- }
-
- MSG_END();
-}
-
void setSoundAndVibration(notification_h noti_h, char *addressVal, bool bVoiceMail)
{
@@ -2176,8 +2145,6 @@ void setActiveNotification(notification_h noti_h, MSG_NOTI_INFO_S *noti_info)
int noti_err = NOTIFICATION_ERROR_NONE;
- setPkgName(noti_h, noti_info->type);
-
setActiveProperty(noti_h, noti_info);
setTextDomain(noti_h, noti_info->type);
@@ -2267,8 +2234,6 @@ void setNotification(notification_h noti_h, MSG_NOTI_INFO_S *noti_info, bool bFe
active_noti_h = NULL;
}
- setPkgName(noti_h, noti_info->type);
-
setProperty(noti_h, noti_info);
setTextDomain(noti_h, noti_info->type);
@@ -2564,7 +2529,7 @@ msg_error_t getLatestMsgInfo(MSG_NOTI_INFO_S *noti_info, bool isForInstantMessag
if (!isForInstantMessage) {
if (noti_info->id > 0 && noti_info->count == 1) {
- noti_err = notification_delete_by_priv_id(MSG_DEFAULT_APP_ID, NOTIFICATION_TYPE_NOTI, noti_info->id);
+ noti_err = notification_delete_by_priv_id(NULL, NOTIFICATION_TYPE_NOTI, noti_info->id);
if (noti_err != NOTIFICATION_ERROR_NONE) {
MSG_DEBUG("Fail to notification_delete_by_priv_id : %d", noti_err);
}
@@ -2587,7 +2552,7 @@ msg_error_t getLatestMsgInfo(MSG_NOTI_INFO_S *noti_info, bool isForInstantMessag
if (!isForInstantMessage) {
/* No unread message. */
if (noti_info->id > 0) {
- noti_err = notification_delete_by_priv_id(MSG_DEFAULT_APP_ID, NOTIFICATION_TYPE_NOTI, noti_info->id);
+ noti_err = notification_delete_by_priv_id(NULL, NOTIFICATION_TYPE_NOTI, noti_info->id);
if (noti_err != NOTIFICATION_ERROR_NONE) {
MSG_DEBUG("Fail to notification_delete_by_priv_id : %d", noti_err);
}
@@ -2782,7 +2747,7 @@ msg_error_t getLatestMsgInfo(MSG_NOTI_INFO_S *noti_info, bool isForInstantMessag
if (!isForInstantMessage) {
/* No unread message. */
if (noti_info->id > 0) {
- noti_err = notification_delete_by_priv_id(MSG_DEFAULT_APP_ID, NOTIFICATION_TYPE_NOTI, noti_info->id);
+ noti_err = notification_delete_by_priv_id(NULL, NOTIFICATION_TYPE_NOTI, noti_info->id);
if (noti_err != NOTIFICATION_ERROR_NONE) {
MSG_DEBUG("Fail to notification_delete_by_priv_id : %d", noti_err);
}
@@ -2886,7 +2851,7 @@ msg_error_t getLatestMsgInfo(MSG_NOTI_INFO_S *noti_info, bool isForInstantMessag
if (!isForInstantMessage) {
if (noti_info->id > 0 && noti_info->count == 1) {
- noti_err = notification_delete_by_priv_id(MSG_DEFAULT_APP_ID, NOTIFICATION_TYPE_NOTI, noti_info->id);
+ noti_err = notification_delete_by_priv_id(NULL, NOTIFICATION_TYPE_NOTI, noti_info->id);
if (noti_err != NOTIFICATION_ERROR_NONE) {
MSG_DEBUG("Fail to notification_delete_by_priv_id : %d", noti_err);
}
@@ -2905,7 +2870,7 @@ msg_error_t getLatestMsgInfo(MSG_NOTI_INFO_S *noti_info, bool isForInstantMessag
if (!isForInstantMessage) {
/* No unread message. */
if (noti_info->id > 0) {
- noti_err = notification_delete_by_priv_id(MSG_DEFAULT_APP_ID, NOTIFICATION_TYPE_NOTI, noti_info->id);
+ noti_err = notification_delete_by_priv_id(NULL, NOTIFICATION_TYPE_NOTI, noti_info->id);
if (noti_err != NOTIFICATION_ERROR_NONE) {
MSG_DEBUG("Fail to notification_delete_by_priv_id : %d", noti_err);
}