}
if (g_mmsRecvOpt.bGroupMessage != recvOpt.bGroupMessage) {
- if (MsgSettingSetBool(MMS_RECV_GROUP_MESSAGE, recvOpt.bGroupMessage) != MSG_SUCCESS) {
+ if (MsgSettingSetInt(MMS_RECV_GROUP_MESSAGE, recvOpt.bGroupMessage) != MSG_SUCCESS) {
MSG_ERR("Error to set config data [%s]", MMS_RECV_GROUP_MESSAGE);
return MSG_ERR_SET_SETTING;
}
if (MsgSettingGetBool(MMS_RECV_REJECT_ADVERTISE, &pSetting->option.mmsRecvOpt.bRejectAdvertisement) != MSG_SUCCESS)
MSG_INFO("MsgSettingGetBool() is failed");
+
+ if (MsgSettingGetInt(MMS_RECV_GROUP_MESSAGE, &tmpVal) != MSG_SUCCESS)
+ MSG_INFO("MsgSettingGetInt() is failed");
+ pSetting->option.mmsRecvOpt.bGroupMessage = (MSG_MMS_GROUP_MESSAGE_MODE_T)tmpVal;
}
/**
+ * @brief Represents the group message mode for MMS. \n
+ * The values for this type SHOULD be in _MSG_MMS_GROUP_MESSAGE_MODE_E.
+ */
+typedef unsigned char MSG_MMS_GROUP_MESSAGE_MODE_T;
+
+
+/**
* @brief Represents the frequency of sending MMS read report. \n
* The values for this type SHOULD be in _MSG_MMS_SEND_READ_REPORT_E.
*/
bool bDeliveryReceipt; /**< Indicates whether the delivery report will be sent or not. */
bool bRejectUnknown; /**< Indicates whether unknown addresses are rejected or not. */
bool bRejectAdvertisement; /**< Indicates whether advertisement is rejected or not. */
- bool bGroupMessage; /**< Indicates whether group message option is enable or not. */
+ MSG_MMS_GROUP_MESSAGE_MODE_T bGroupMessage; /**< Indicates whether group message option. */
} MSG_MMS_RECVOPT_S;
MSG_MMS_RECVOPT_DELIVERY_REPORT_BOOL, /**< Indicates whether the delivery report will be sent or not. */
MSG_MMS_RECVOPT_REJECT_UNKNOWN_BOOL, /**< Indicates whether unknown addresses are rejected or not. */
MSG_MMS_RECVOPT_REJECT_ADVERTISEMENT_BOOL, /**< Indicates whether advertisement is rejected or not. */
- MSG_MMS_RECVOPT_GROUP_MESSAGE_BOOL, /**< Indicates whether group message option is enable or not. */
+ MSG_MMS_RECVOPT_GROUP_MESSAGE_INT, /**< Indicates whether group message option. See enum _MSG_MMS_GROUP_MESSAGE_MODE_E*/
};
/**
/**
+ * @brief Enumeration for the values of the mode for group message feature. \n
+ * This enum is used as the value of MSG_MMS_GROUP_MESSAGE_MODE_T.
+ */
+enum _MSG_MMS_GROUP_MESSAGE_MODE_E {
+ MSG_GROUP_MESSAGE_NOT_AVAILABLE, /**< Group message feature not available(in case of SIM has no MSISDN) */
+ MSG_GROUP_MESSAGE_OFF, /**< Group message feature off */
+ MSG_GROUP_MESSAGE_ON, /**< Group message feature on */
+ MSG_GROUP_MESSAGE_MAX /**< Default */
+};
+
+
+/**
* @brief Enumeration for the values of the frequency of sending MMS read report. \n
* This enum is used as the value of MSG_MMS_SEND_READ_REPORT_T.
*/
case MSG_MMS_RECVOPT_ABROAD_RETRIEVE_TYPE_INT:
*value = recv_opt->abroadNetwork;
break;
+ case MSG_MMS_RECVOPT_GROUP_MESSAGE_INT:
+ *value = recv_opt->bGroupMessage;
+ break;
default:
ret = MSG_ERR_INVALID_PARAMETER;
break;
case MSG_MMS_RECVOPT_ABROAD_RETRIEVE_TYPE_INT:
recv_opt->abroadNetwork = value;
break;
+ case MSG_MMS_RECVOPT_GROUP_MESSAGE_INT:
+ recv_opt->bGroupMessage = value;
+ break;
default:
ret = MSG_ERR_INVALID_PARAMETER;
break;
case MSG_MMS_RECVOPT_REJECT_ADVERTISEMENT_BOOL:
*value = recv_opt->bRejectAdvertisement;
break;
- case MSG_MMS_RECVOPT_GROUP_MESSAGE_BOOL:
- *value = recv_opt->bGroupMessage;
- break;
default:
ret = MSG_ERR_INVALID_PARAMETER;
break;
case MSG_MMS_RECVOPT_REJECT_ADVERTISEMENT_BOOL:
recv_opt->bRejectAdvertisement = value;
break;
- case MSG_MMS_RECVOPT_GROUP_MESSAGE_BOOL:
- recv_opt->bGroupMessage = value;
- break;
default:
ret = MSG_ERR_INVALID_PARAMETER;
break;