Remove profile macro (partially)
[platform/core/messaging/msg-service.git] / mapi / msg_message.cpp
index 8ba2cd1..1a179da 100755 (executable)
@@ -225,8 +225,7 @@ int msg_message_get_int_value(void *data, int field, int *value)
                                        *value = MSG_TYPE_SMS;
                                        break;
                        }
-               }
-               else if (msg_data->mainType == MSG_MMS_TYPE) {
+               } else if (msg_data->mainType == MSG_MMS_TYPE) {
                        if (msg_data->subType == MSG_NOTIFICATIONIND_MMS)
                                *value = MSG_TYPE_MMS_NOTI;
                        else if (msg_data->subType == MSG_SENDREQ_JAVA_MMS)
@@ -312,6 +311,9 @@ int msg_message_get_bool_value(void *data, int field, bool *value)
                        *value = false;
                break;
        }
+       case MSG_MESSAGE_DPM_RESTRICTED_BOOL:
+               *value = msg_data->bRestricted;
+               break;
        default:
                ret = MSG_ERR_INVALID_PARAMETER;
                break;
@@ -634,6 +636,7 @@ void msg_message_copy_message(MSG_MESSAGE_HIDDEN_S *pSrc, MSG_MESSAGE_HIDDEN_S *
        }
 }
 
+//LCOV_EXCL_START
 int msg_cb_message_get_int_value(void *data, int field, int *value)
 {
        if (!data)
@@ -745,7 +748,7 @@ int msg_cb_message_get_str_value(void *data, int field, char *value, int size)
 
        return ret;
 }
-
+//LCOV_EXCL_STOP
 
 
 EXPORT_API int msg_get_mms_struct(msg_struct_t msg_struct_handle, msg_struct_t mms_struct_handle)