/*
-* Copyright 2012-2013 Samsung Electronics Co., Ltd
-*
-* Licensed under the Flora License, Version 1.1 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://floralicense.org/license/
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd. All rights reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
#ifndef MSG_INTERNAL_TYPES_H
#define MSG_INTERNAL_TYPES_H
/**
- * @file MsgInternalTypes.h
- * @brief Defines types of messaging framework
- * @version 1.0
+ * @file MsgInternalTypes.h
+ * @brief Defines types of messaging framework
+ * @version 1.0
*/
/*==================================================================================================
- INCLUDE FILES
+ INCLUDE FILES
==================================================================================================*/
#include "MsgMmsTypes.h"
-#include <inttypes.h>
+
/*==================================================================================================
- DEFINES
+ DEFINES
==================================================================================================*/
-#define MSG_DATA_ROOT_PATH "/opt/usr/data/msg-service/"
+#define MSG_DATA_ROOT_PATH TZ_SYS_GLOBALUSER_DATA_PATH"/msg-service/"
#define MSG_DATA_PATH MSG_DATA_ROOT_PATH"msgdata/"
#define MSG_SMIL_FILE_PATH MSG_DATA_ROOT_PATH"smildata/"
#define MSG_IPC_DATA_PATH MSG_DATA_ROOT_PATH"ipcdata/"
#define MSG_THUMBNAIL_PATH MSG_DATA_PATH"thumbnails/"
-// temporary
-#define TPDU_LOG_FILE MSG_DATA_ROOT_PATH"tpduLog.txt"
-#define MSG_NATIONAL_SIM "memory/private/msg-service/national_sim"
+
+
+/* temporary */
#define MSG_SIM_MSISDN "memory/private/msg-service/msisdn"
-#define MAX_FULL_PATH_SIZE 320 // max length for internal file path
-#define MAX_PRECONFIG_NUM 8
+
+#define MAX_FULL_PATH_SIZE 320 /* max length for internal file path */
#define MAX_THREAD_ADDR_LEN 40
#define MAX_THREAD_NAME_LEN 195
#define MAX_THREAD_DATA_LEN 128
-#define MAX_CB_MSG_TEXT_LEN 4200 // 1page max char(93)*max page(15)*max bytes of UTF8 1 char(3)
+#define MAX_CB_MSG_TEXT_LEN 4200 /* 1page max char(93)*max page(15)*max bytes of UTF8 1 char(3) */
#define MAX_CB_MSG_LANGUAGE_TYPE_LEN 3
#define MAX_ETWS_WARNING_SECURITY_INFO_LEN 50
+#define MAX_ME_IMEI_LEN 20
+#define MAX_SIM_MSISDN_LEN 26
+#define MAX_COMMON_INFO_SIZE 20
+#define MAX_VCONFKEY_NAME_LEN 128
+#define MAX_SIM_IMSI_LEN 16
+#define MAX_TAPI_SIM_API_TIMEOUT 70
+#define MSG_EVENT_MSG_ID_LEN (32)
-#define SMS_MINIMUM_SPACE (3 * 1024)
-#define MMS_MINIMUM_SPACE (600 * 1024)
+#define SMS_MINIMUM_SPACE (1 * 1024 * 1024)
+#define MMS_MINIMUM_SPACE (1 * 1024 * 1024)
/*vconf keys*/
-#define MSG_SIM_IMSI "memory/private/msg-service/sim_imsi"
-#define MSG_SIM_CHANGED "memory/private/msg-service/sim_changed"
-
#define DEFAULT_SETTING_PATH "db/private/msg-service"
+#define DEFAULT_MSG_MEMORY_PATH "memory/private/msg-service"
+
+#ifdef FEATURE_SMS_CDMA
+#define MSG_SIM_IMSI DEFAULT_MSG_MEMORY_PATH"/sim_imsi"
+#endif
+#define MSG_SIM_SUBS_ID DEFAULT_MSG_MEMORY_PATH"/sim_subs_id"
+#define MSG_SIM_CHANGED DEFAULT_MSG_MEMORY_PATH"/sim_changed"
+
+#define MSG_SIM_SERVICE_TABLE DEFAULT_MSG_MEMORY_PATH"/sim_st"
+#define MSG_SIM_MO_CONTROL DEFAULT_MSG_MEMORY_PATH"/sim_mo_ctrl"
+#define MSG_NETWORK_SIM DEFAULT_MSG_MEMORY_PATH"/default_network_sim"
#define DEFAULT_GENERAL_OPT_PATH DEFAULT_SETTING_PATH"/general"
#define DEFAULT_SMS_SEND_OPT_PATH DEFAULT_SETTING_PATH"/sms_send"
#define DEFAULT_MMS_STYLE_OPT_PATH DEFAULT_SETTING_PATH"/mms_style"
#define DEFAULT_PUSH_MSG_OPT_PATH DEFAULT_SETTING_PATH"/push_msg"
#define DEFAULT_CB_MSG_OPT_PATH DEFAULT_SETTING_PATH"/cb_msg"
+#define DEFAULT_CB_CMAS_MSG_OPT_PATH DEFAULT_CB_MSG_OPT_PATH"/cmas_init"
+
#define DEFAULT_VOICE_MAIL_OPT_PATH DEFAULT_SETTING_PATH"/voice_mail"
#define DEFAULT_MSGSIZE_OPT_PATH DEFAULT_SETTING_PATH"/size_opt"
#define DEFAULT_SIM_COUNT_PATH DEFAULT_SETTING_PATH"/sim_count"
#define MSG_KEEP_COPY DEFAULT_GENERAL_OPT_PATH"/keep_copy"
-#define MSG_ALERT_TONE VCONFKEY_SETAPPL_NOTI_MSG_ALERT_REP_TYPE_INT
+/* #define MSG_ALERT_REP_TYPE DEFAULT_GENERAL_OPT_PATH"/alert_rep_type" */
+#define MSG_ALERT_REP_TYPE "db/setting/sound/noti/msg_alert_rep_type"
#define MSG_AUTO_ERASE DEFAULT_GENERAL_OPT_PATH"/auto_erase"
#define MSG_BLOCK_MESSAGE DEFAULT_GENERAL_OPT_PATH"/block_msg"
-#define CONTACT_SYNC_TIME DEFAULT_GENERAL_OPT_PATH"/contact_sync_time"
+
+#define MSG_BLOCK_UNKNOWN_MSG DEFAULT_GENERAL_OPT_PATH"/block_unknown_msg"
+#define MSG_SMS_LIMIT DEFAULT_GENERAL_OPT_PATH"/sms_limit"
+#define MSG_MMS_LIMIT DEFAULT_GENERAL_OPT_PATH"/mms_limit"
+#define MSG_SETTING_NOTIFICATION DEFAULT_GENERAL_OPT_PATH"/notification"
+#define MSG_SETTING_VIBRATION DEFAULT_GENERAL_OPT_PATH"/vibration"
+#define MSG_SETTING_PREVIEW DEFAULT_GENERAL_OPT_PATH"/preview"
+#define MSG_SETTING_RINGTONE_PATH DEFAULT_GENERAL_OPT_PATH"/ringtone_path"
+#define MSG_SETTING_RINGTONE_TYPE DEFAULT_GENERAL_OPT_PATH"/ringtone_type"
+#define MSG_MMS_UA_PROFILE DEFAULT_GENERAL_OPT_PATH"/ua_profile"
#define SMS_SEND_DCS DEFAULT_SMS_SEND_OPT_PATH"/dcs"
#define SMS_SEND_NETWORK_MODE VCONFKEY_MESSAGE_NETWORK_MODE
#define CB_RECEIVE DEFAULT_CB_MSG_OPT_PATH"/receive"
#define CB_SAVE DEFAULT_CB_MSG_OPT_PATH"/save"
#define CB_MAX_SIM_COUNT DEFAULT_CB_MSG_OPT_PATH"/max_sim_count"
-#define CB_CHANNEL_COUNT DEFAULT_CB_MSG_OPT_PATH"/channel_count"
#define CB_CHANNEL_ACTIVATE DEFAULT_CB_MSG_OPT_PATH"/channel_activate"
#define CB_CHANNEL_ID_FROM DEFAULT_CB_MSG_OPT_PATH"/channel_id_from"
#define CB_CHANNEL_ID_TO DEFAULT_CB_MSG_OPT_PATH"/channel_id_to"
#define VOICEMAIL_NUMBER DEFAULT_VOICE_MAIL_OPT_PATH"/voice_mail_number"
#define VOICEMAIL_COUNT DEFAULT_VOICE_MAIL_OPT_PATH"/voice_mail_count"
+#define VOICEMAIL_ALPHA_ID DEFAULT_VOICE_MAIL_OPT_PATH"/voice_mail_alphaid"
+#define VOICEMAIL_DEFAULT_ALPHA_ID ""
#define MSGSIZE_OPTION DEFAULT_MSGSIZE_OPT_PATH"/msg_size"
#define SIM_USED_COUNT DEFAULT_SIM_COUNT_PATH"/used_cnt"
#define SIM_TOTAL_COUNT DEFAULT_SIM_COUNT_PATH"/total_cnt"
+#ifdef FEATURE_SMS_CDMA
+#define MSG_MESSAGE_ID_COUNTER DEFAULT_GENERAL_OPT_PATH"/msg_id_counter"
+#endif
+#define MSG_MESSAGE_DURING_CALL DEFAULT_GENERAL_OPT_PATH"/during_call"
+
+#define MSG_DEFAULT_APP_ID "org.tizen.message"
+#define MSG_MGR_APP_ID "org.tizen.msg-manager"
+#define MSG_TELEPHONY_SMS_FEATURE "http://tizen.org/feature/network.telephony.sms"
+#define MSG_TELEPHONY_MMS_FEATURE "http://tizen.org/feature/network.telephony.mms"
/*==================================================================================================
- TYPES
+ TYPES
==================================================================================================*/
/**
typedef unsigned char MSG_CLASS_TYPE_T;
-/**
- * @brief Represents a message class. \n
- * The values for this type SHOULD be in _MSG_MMS_TRANSACTION_TYPE_E.
- */
-typedef unsigned char MSG_MMS_TRANSACTION_TYPE_T;
-
-
/*==================================================================================================
- STRUCTURES
+ STRUCTURES
==================================================================================================*/
/**
* @brief Represents a message type.
*/
-typedef struct
-{
+typedef struct {
MSG_MAIN_TYPE_T mainType; /**< Message main type. See enum _MSG_MAIN_TYPE_E */
MSG_SUB_TYPE_T subType; /**< Message sub type. See enum _MSG_SUB_TYPE_E */
MSG_CLASS_TYPE_T classType; /**< Message class type. See enum _MSG_CLASS_TYPE_E */
/**
* @brief Represents a message in the framework.
*/
-typedef struct
-{
+typedef struct {
msg_message_id_t msgId; /**< Indicates the message ID of this message. */
msg_thread_id_t threadId; /**< Indicates the thread ID. */
msg_folder_id_t folderId; /**< Indicates the folder ID. */
MSG_MESSAGE_TYPE_S msgType; /**< Indicates the message type such as SMS and MMS */
msg_storage_id_t storageId; /**< Indicates where the message is saved. */
int nAddressCnt; /**< Indicates the count of addresses. */
+#if 0
MSG_ADDRESS_INFO_S addressList[MAX_TO_ADDRESS_CNT]; /**< Indicates the address information list. */
+#endif
+ MSG_ADDRESS_INFO_S *addressList; /**< Indicates the address information list. */
char replyAddress[MAX_PHONE_NUMBER_LEN+1]; /**< Indicates the reply address. */
char subject[MAX_SUBJECT_LEN+1]; /**< Indicates the message subject. */
time_t displayTime; /**< Indicates the display time related to the specific operation. */
char msgText[MAX_MSG_TEXT_LEN+1];
char thumbPath[MSG_FILEPATH_LEN_MAX+1];
bool bStore; /**< Indicates whether the message is stored or not if it is MWI message. */
+ int sim_idx;
+ char msgURL[MMS_LOCATION_LEN + 1];
+ bool bRestricted; /**< Indicates whether the message is restricted by DPM(Device Policy Manager) or not. */
+ unsigned short serialNum; /**< Indicates the serial number of a cell broadcast message. */
} MSG_MESSAGE_INFO_S;
-typedef struct
-{
+
+typedef struct {
msg_message_id_t msgId; /**< Indicates the message ID of this message. */
msg_thread_id_t threadId; /**< Indicates the thread ID. */
msg_folder_id_t folderId; /**< Indicates the folder ID. see enum _MSG_FOLDER_TYPE_E */
MSG_SUB_TYPE_T subType; /**< Message sub type. See enum _MSG_SUB_TYPE_E */
MSG_CLASS_TYPE_T classType; /**< Message class type. See enum _MSG_CLASS_TYPE_E */
msg_storage_id_t storageId; /**< Indicates where the message is saved. see enum _MSG_FOLDER_TYPE_E*/
- msg_struct_list_s *addr_list;
+ msg_struct_list_s *addr_list;
+ GList *addressList;
char replyAddress[MAX_PHONE_NUMBER_LEN+1]; /**< Indicates the reply address. */
char subject[MAX_SUBJECT_LEN+1]; /**< Indicates the message subject. */
time_t displayTime; /**< Indicates the display time related to the specific operation. */
void *pData; /**< Indicates the message payload information as a body. default character encoding is UTF-8*/
void *pMmsData; /**< Indicates the message payload information as a body. default character encoding is UTF-8*/
size_t mmsDataSize;
+ int simIndex;
+ bool bRestricted; /**< Indicates whether the message is restricted by DPM(Device Policy Manager) or not. */
} MSG_MESSAGE_HIDDEN_S;
+
/**
* @brief Represents message information for thread view.
*/
-typedef struct
-{
+typedef struct {
msg_thread_id_t threadId; /**< Indicates the thread ID of this peer. */
char threadName[MAX_THREAD_NAME_LEN+1]; /**< Indicates the name of this peer. > */
MSG_MAIN_TYPE_T mainType; /**< Indicates the latest msg main type. */
int unreadCnt; /**< Indicates the unread messages from the Peer. */
int smsCnt; /**< Indicates the SMS messages from the Peer. */
int mmsCnt; /**< Indicates the MMS messages from the Peer. */
- bool bProtected; /**< Indicates whether the thread includes protected messages. */
+ bool bProtected; /**< Indicates whether the thread includes protected messages. */
+ bool bDraft;
+ bool bSendFailed;
+ bool bSending;
} MSG_THREAD_VIEW_S;
/**
* @brief Represents message information for conversation view.
*/
-typedef struct
-{
+typedef struct {
msg_message_id_t msgId; /**< Indicates the message ID of this message. */
msg_thread_id_t threadId; /**< Indicates the thread ID of this peer. */
MSG_MAIN_TYPE_T mainType; /**< Message main type. See enum _MSG_MAIN_TYPE_E */
char subject[MAX_SUBJECT_LEN+1]; /**< Indicates the message subject. */
size_t textSize; /**< Indicates the data size. The unit is byte. */
char *pText; /**< Indicates the message payload information as a body. default character encoding is UTF-8*/
+ int tcs_bc_level;
+ char firstMediaPath[MSG_FILEPATH_LEN_MAX+1]; /**< First Media Path in mms; */
+ msg_list_handle_t multipart_list;
+ int simIndex;
+ bool bRestricted;
} MSG_CONVERSATION_VIEW_S;
+typedef struct {
+ MimeType type; /**< Indicates the multipart mime type. see enum MimeType */
+ char szContentType[MSG_MSG_ID_LEN + 1]; /**< Indicates the content type */
+ char szFileName[MSG_FILENAME_LEN_MAX + 1]; /**< Indicates the file name */
+ char szFilePath[MSG_FILEPATH_LEN_MAX + 1]; /**< Indicates the file path */
+ char szContentID[MSG_MSG_ID_LEN + 1]; /**< Indicates the content id */
+ char szContentLocation[MSG_MSG_ID_LEN + 1]; /**< Indicates the content Location */
-/**
- * @brief Represents sim message informatioin list.
- */
-typedef struct
-{
- int nIdxCnt; /**< The count of sim index */
- int nMsgCnt; /**< The count of sim message */
- MSG_MESSAGE_INFO_S *simMsgInfo; /**< The pointer to sim message informatioin */
-} MSG_SIM_MSG_INFO_LIST_S;
+ int tcs_bc_level; /** detect malware type **/
+ char szThumbFilePath[MSG_FILEPATH_LEN_MAX + 1]; /**< Indicates the thumbnail file path */
+} MSG_MMS_MULTIPART_S;
/**
* Applications compose a request and send it to the framework via Message handle. \n
* This request ID is used to manage the request by the framework.
*/
-typedef struct
-{
+typedef struct {
msg_request_id_t reqId; /**< Indicates the request ID, which is unique.
When applications submit a request to the framework, this value will be set by the framework. */
MSG_MESSAGE_INFO_S msgInfo; /**< Indicates the message structure to be sent by applications. */
* @brief Represents proxy information. \n
* This stucture contains the information about the status cnf of a sent message.
*/
-typedef struct
-{
+typedef struct {
int listenerFd; /**< Rx fd for status cnf */
-#ifdef __x86_64__
- uint64_t handleAddr; /**< Handle address for status cnf */
-#else
- unsigned int handleAddr; /**< Handle address for status cnf */
-#endif
+ unsigned long handleAddr; /**< Handle address for status cnf */
msg_message_id_t sentMsgId; /**< The ID of a sent message for updating message status */
-
} MSG_PROXY_INFO_S;
+
/**
* @brief Aux data structure for MSG_CMD_REG_INCOMING_MSG_CB. \n
* This stucture contains the information about the receiver for msgType and port.
*/
-typedef struct
-{
- int listenerFd;
- MSG_MAIN_TYPE_T msgType;
- unsigned short port;
+typedef struct {
+ int listenerFd;
+ MSG_MAIN_TYPE_T msgType;
+ unsigned short port;
} MSG_CMD_REG_INCOMING_MSG_CB_S;
-typedef struct
-{
- int listenerFd;
- MSG_MAIN_TYPE_T msgType;
- bool bsave;
+typedef struct {
+ int listenerFd;
+ MSG_MAIN_TYPE_T msgType;
+ bool bsave;
} MSG_CMD_REG_CB_INCOMING_MSG_CB_S;
* @brief Aux data structure for MSG_CMD_REG_INCOMING_MMS_CONF_MSG_CB. \n
* This stucture contains the information about the receiver for msgType and port.
*/
-typedef struct
-{
- int listenerFd;
- MSG_MAIN_TYPE_T msgType;
+typedef struct {
+ int listenerFd;
+ MSG_MAIN_TYPE_T msgType;
char appId[MAX_MMS_JAVA_APPID_LEN+1];
} MSG_CMD_REG_INCOMING_MMS_CONF_MSG_CB_S;
* @brief Aux data structure for MSG_CMD_REG_INCOMING_SYNCML_MSG_CB. \n
* This stucture contains the information about the receiver for msgType and port.
*/
-typedef struct
-{
- int listenerFd;
- MSG_MAIN_TYPE_T msgType;
+typedef struct {
+ int listenerFd;
+ MSG_MAIN_TYPE_T msgType;
} MSG_CMD_REG_INCOMING_SYNCML_MSG_CB_S;
* @brief Aux data structure for MSG_CMD_REG_INCOMING_LBS_MSG_CB_S. \n
* This stucture contains the information about the receiver for msgType and port.
*/
-typedef struct
-{
- int listenerFd;
- MSG_MAIN_TYPE_T msgType;
+typedef struct {
+ int listenerFd;
+ MSG_MAIN_TYPE_T msgType;
} MSG_CMD_REG_INCOMING_LBS_MSG_CB_S;
* @brief Aux data structure for MSG_CMD_REG_INCOMING_JAVAMMS_TRID_S. \n
* This stucture contains the information about the sent Java MMS messge transactionId.
*/
-typedef struct
-{
- bool posted;
- char id[MMS_TR_ID_LEN+1];
+typedef struct {
+ bool posted;
+ char id[MMS_TR_ID_LEN+1];
char pduFileName[MAX_COMMON_INFO_SIZE+1];
} MSG_CMD_REG_INCOMING_JAVAMMS_TRID_S;
* @brief Aux data structure for MSG_CMD_REG_SYNCML_MSG_OPERATION_CB. \n
* This stucture contains the information about the receiver for msgType and port.
*/
-typedef struct
-{
- int listenerFd;
- MSG_MAIN_TYPE_T msgType;
+typedef struct {
+ int listenerFd;
+ MSG_MAIN_TYPE_T msgType;
} MSG_CMD_REG_SYNCML_MSG_OPERATION_CB_S;
-typedef struct
-{
- int listenerFd;
- MSG_MAIN_TYPE_T msgType;
+typedef struct {
+ int listenerFd;
+ MSG_MAIN_TYPE_T msgType;
char appId[MAX_WAPPUSH_ID_LEN+1];
char content_type[MAX_WAPPUSH_CONTENT_TYPE_LEN+1];
} MSG_CMD_REG_INCOMING_PUSH_MSG_CB_S;
-typedef struct
-{
- int listenerFd;
- MSG_MAIN_TYPE_T msgType;
+typedef struct {
+ int listenerFd;
+ MSG_MAIN_TYPE_T msgType;
bool bsave;
} MSG_CMD_REG_INCOMING_CB_MSG_CB_S;
-typedef struct
-{
- int alarm_id;
- MSG_REQUEST_INFO_S reqInfo;
-}MSG_SCHEDULED_MSG_S;
-
/**
* @brief Represents a CB message in the framework.
*/
-typedef struct
-{
+typedef struct {
MSG_SUB_TYPE_T type;
time_t receivedTime;
unsigned short serialNum;
- unsigned short messageId; // Message Identifier
- unsigned char dcs; // data coding scheme
- int cbTextLen; // length of cbText
- unsigned char cbText[MAX_CB_MSG_TEXT_LEN];// cb message text (UTF8)
+ unsigned short messageId; /**< Message Identifier */
+ unsigned char dcs; /**< data coding scheme */
+ int cbTextLen; /**< length of cbText */
+ unsigned char cbText[MAX_CB_MSG_TEXT_LEN]; /**< cb message text (UTF8) */
unsigned short etwsWarningType;
unsigned char etwsWarningSecurityInfo[MAX_ETWS_WARNING_SECURITY_INFO_LEN];
unsigned char language_type[MAX_CB_MSG_LANGUAGE_TYPE_LEN];
} MSG_CB_MSG_S;
+#ifdef FEATURE_SMS_CDMA
+typedef struct _MSG_UNIQUE_INDEX_S {
+ unsigned short tele_msgId;
+ char address[MAX_ADDRESS_VAL_LEN+1];
+ char sub_address[MAX_ADDRESS_VAL_LEN+1];
+ char time_stamp[MAX_COMMON_INFO_SIZE+1];
+ int telesvc_id;
+} MSG_UNIQUE_INDEX_S;
+
+typedef struct {
+ time_t receivedTime;
+ unsigned short serialNum;
+ unsigned short messageId; /**< Message Identifier */
+} MSG_CB_DUPLICATE_S;
+#endif
+
/*==================================================================================================
- ENUMS
+ ENUMS
==================================================================================================*/
/**
* Three main types of a message are predefined : SMS, MMS, and Email. More main types of a message can be defined here. \n
* This enum is used as the value of MSG_MAIN_TYPE_T.
*/
-enum _MSG_MAIN_TYPE_E
-{
+enum _MSG_MAIN_TYPE_E {
MSG_UNKNOWN_TYPE = 0, /**< Unknown main type */
MSG_SMS_TYPE, /**< SMS */
MSG_MMS_TYPE, /**< MMS */
* Three sub types of a message are predefined : NORMAL, WAPPUSH, and CB. More sub types of a message can be defined here. \n
* This enum is used as the value of MSG_SUB_TYPE_T.
*/
-enum _MSG_SUB_TYPE_E
-{
+enum _MSG_SUB_TYPE_E {
/* SMS Specific Message Type */
MSG_NORMAL_SMS = 0, /**< Text SMS message */
MSG_CB_SMS, /**< Cell Broadcasting message */
MSG_JAVACB_SMS, /**< JAVA Cell Broadcasting message */
- MSG_TYPE0_SMS, /**< Short Message Type 0 */
+ MSG_TYPE0_SMS, /**< Short Message Type 0 */
MSG_REPLACE_TYPE1_SMS, /**< Replace Short Message Type 1 */
MSG_REPLACE_TYPE2_SMS, /**< Replace Short Message Type 2 */
MSG_REPLACE_TYPE3_SMS, /**< Replace Short Message Type 3 */
/* MMS Specific Message Type */
MSG_SENDREQ_MMS = 24, /**< MMS Send Request message */
- MSG_SENDCONF_MMS, /**< MMS Send Confirm message */
+ MSG_SENDCONF_MMS, /**< MMS Send Confirm message */
MSG_NOTIFICATIONIND_MMS, /**< MMS Notification Indication message */
MSG_GET_MMS, /**< MMS GET MMS message */
MSG_NOTIFYRESPIND_MMS, /**< MMS Notify Response Indication message */
MSG_READORGIND_MMS, /**< MMS Read Origin Indication message */
MSG_FORWARD_MMS, /**< MMS Forward message */
MSG_FORWARDREQ_MMS, /**< MMS Forward Request message */
- MSG_FORWARDCONF_MMS, /**< MMS Forward Confirm message */
+ MSG_FORWARDCONF_MMS, /**< MMS Forward Confirm message */
MSG_READREPLY_MMS, /**< MMS Read Reply message */
- MSG_SENDREQ_JAVA_MMS, /**< MMS Send Request message for JAVA MMS */
+ MSG_SENDREQ_JAVA_MMS, /**< MMS Send Request message for JAVA MMS */
MSG_ETWS_SMS,
+ MSG_MWI_VOICE2_SMS, /**< MWI Message Voice for line 2(CPHS)*/
+
+ MSG_CMAS_PRESIDENTIAL, /**< CMAS CLASS */
+ MSG_CMAS_EXTREME,
+ MSG_CMAS_SEVERE,
+ MSG_CMAS_AMBER,
+ MSG_CMAS_TEST,
+ MSG_CMAS_EXERCISE,
+ MSG_CMAS_OPERATOR_DEFINED,
};
-/**
- * @brief Represents the values of a message transaction type. \n
- * This enum is used as the value of MSG_MMS_TRANSACTION_TYPE_T.
- */
-enum _MSG_MMS_TRANSACTION_TYPE_E
-{
- MSG_MMS_SEND_COMPLETE = 0,
- MSG_MMS_RETRIEVE_COMPLETE,
- MSG_MMS_UNKNOWN,
-};
/**
* @brief Represents the values of File Type of MMS. \n
* This enum is used as the value of .
*/
-enum _MSG_MMS_ITEM_TYPE_E
-{
+enum _MSG_MMS_ITEM_TYPE_E {
MSG_MMS_ITEM_TYPE_IMG, /**< Indicates the image media */
MSG_MMS_ITEM_TYPE_AUDIO, /**< Indicates the audio media */
MSG_MMS_ITEM_TYPE_VIDEO, /**< Indicates the video media */
MSG_MMS_ITEM_TYPE_ATTACH, /**< Indicates the attach file */
- MSG_MMS_ITEM_TYPE_PAGE, /**< Indicates the page count */
+ MSG_MMS_ITEM_TYPE_PAGE, /**< Indicates the page count */
+ MSG_MMS_ITEM_TYPE_MALWARE, /**< Indicates the tcs bc level*/
+ MSG_MMS_ITEM_TYPE_1ST_MEDIA, /**< Indicates the 1st media path*/
};
+
+
#endif