apply new system-event defines 80/72180/1
authorKyeonghun Lee <kh9090.lee@samsung.com>
Tue, 31 May 2016 05:56:54 +0000 (14:56 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Tue, 31 May 2016 05:57:03 +0000 (14:57 +0900)
Change-Id: I1257a919c6a44dd26b04e3c35eb796cca414179f
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
include/common/MsgInternalTypes.h
manager/src/msg-manager.cpp
plugin/sms_cdma_plugin/SmsCdmaPluginEventHandler.cpp
plugin/sms_plugin/SmsPluginEventHandler.cpp

index 8526dfa..ebc78a0 100755 (executable)
 #define MSG_TELEPHONY_SMS_FEATURE      "http://tizen.org/feature/network.telephony.sms"
 #define MSG_TELEPHONY_MMS_FEATURE      "http://tizen.org/feature/network.telephony.mms"
 
-/*below defines will be removed */
-#define SYS_EVENT_OUTGOING_MSG "tizen.system.event.outgoing_msg"
-#define EVT_VAL_MMS "mms"
-#define EVT_KEY_OUT_MSG_ID "msg_id"
-#define EVT_KEY_OUT_MSG_TYPE "msg_type"
-
 /*==================================================================================================
                                          TYPES
 ==================================================================================================*/
index 588d7f6..0bb8fc2 100644 (file)
@@ -44,13 +44,6 @@ extern "C"
 #include "msg-manager-util.h"
 
 /*==================================================================================================
-                                     DEFINES
-==================================================================================================*/
-/* below defines will be removed */
-#define EVENT_KEY_OUT_MSG_TYPE "msg_type"
-#define EVENT_KEY_OUT_MSG_ID "msg_id"
-
-/*==================================================================================================
                                      VARIABLES
 ==================================================================================================*/
 msg_handle_t msg_handle = NULL;
index 2320e11..5b0411f 100755 (executable)
@@ -465,9 +465,9 @@ void SmsPluginEventHandler::handleSentStatus(msg_network_status_t NetStatus)
                                b = bundle_create();
                                if (b) {
                                        if (sentInfo.reqInfo.msgInfo.msgType.mainType == MSG_SMS_TYPE)
-                                               bundle_add_str(b, EVT_KEY_OUT_MSG_TYPE, EVT_VAL_SMS);
+                                               bundle_add_str(b, EVT_KEY_OUT_MSG_TYPE, EVT_VAL_OUT_MSG_SMS);
                                        else
-                                               bundle_add_str(b, EVT_KEY_OUT_MSG_TYPE, EVT_VAL_MMS);
+                                               bundle_add_str(b, EVT_KEY_OUT_MSG_TYPE, EVT_VAL_OUT_MSG_MMS);
 
                                        char msgId[MSG_EVENT_MSG_ID_LEN] = {0, };
                                        snprintf(msgId, sizeof(msgId), "%u", sentInfo.reqInfo.msgInfo.msgId);
index 616d1b9..dda8132 100755 (executable)
@@ -103,9 +103,9 @@ void SmsPluginEventHandler::handleSentStatus(msg_network_status_t NetStatus)
                                b = bundle_create();
                                if (b) {
                                        if (sentInfo.reqInfo.msgInfo.msgType.mainType == MSG_SMS_TYPE)
-                                               bundle_add_str(b, EVT_KEY_OUT_MSG_TYPE, EVT_VAL_SMS);
+                                               bundle_add_str(b, EVT_KEY_OUT_MSG_TYPE, EVT_VAL_OUT_MSG_SMS);
                                        else
-                                               bundle_add_str(b, EVT_KEY_OUT_MSG_TYPE, EVT_VAL_MMS);
+                                               bundle_add_str(b, EVT_KEY_OUT_MSG_TYPE, EVT_VAL_OUT_MSG_MMS);
 
                                        char msgId[MSG_EVENT_MSG_ID_LEN] = {0, };
                                        snprintf(msgId, sizeof(msgId), "%u", sentInfo.reqInfo.msgInfo.msgId);