[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/app/goahead/interface5.0/zte_web_sms.h b/ap/app/goahead/interface5.0/zte_web_sms.h
new file mode 100644
index 0000000..0ab7fa6
--- /dev/null
+++ b/ap/app/goahead/interface5.0/zte_web_sms.h
@@ -0,0 +1,153 @@
+#include "message.h"
+
+
+#define ZTE_WMS_MESSAGE_LIST_MAX 255
+#define ZTE_WMS_DB_EXECSQL_LEN 1024
+#define ZTE_WMS_ADDRESS_LEN_MAX 32
+
+/*support MAX COUNT NUMBER*/
+#define ZTE_WMS_RECEIVER_NUM_MAX (50)
+#define ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX (2 * ZTE_WMS_SMS_MSG_CONTENT_LEN_MAX)
+#define ZTE_WMS_SMS_COUNT_MAX (10)
+//#define ZTE_WMS_CONCAT_SMS_COUNT_MAX (1)
+//#define ZTE_WMS_SMS_CONCAT_CONTENT_LEN_MAX (2 * ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX * ZTE_WMS_CONCAT_SMS_COUNT_MAX)
+
+
+#define ZTE_WMS_TP_SCTS_LEN_MAX (50) /*modified by crw*/
+#define ZTE_WMS_SMS_UD_HEADER_LEN_MAX (30)
+#define ZTE_WMS_SMS_CONCAT_ELEMNT_MAX (3)
+#define ZTE_WMS_SMS_CONCAT_ELEMNT_ASC_LEN (153)
+#define ZTE_WMS_SMS_CONCAT_ELEMNT_UCS_LEN (67)
+
+#define DCS_ASC 1
+#define DCS_USC 2
+#define DCS_UNKNOW 0
+#define DCS_UNICODE 2
+#define DCS_SPANISH 3
+#define DCS_GSM7_DEFAULT 4
+#define DCS_TURKISH 6
+
+#define SEPARATOR_CHARACTER ';'
+#define WMS_MODULE_ID_LEN 11
+
+#define SMS_READ_RECORD_MAX_NUM 10
+
+#define SMS_CMD_STATUS_RESULT "sms_cmd_status_result"
+#define SMS_CMD "sms_cmd"
+
+#define SMS_PARAMETER_SCA "sms_para_sca"
+#define SMS_PARAMETER_MEM_STORE "sms_para_mem_store"
+#define SMS_PARAMETER_VALIDITY_PERIOD "sms_para_validity_period"
+#define SMS_PARAMETER_STATUS_REPORT "sms_para_status_report"
+#define SMS_PARAMETER_SEND_RETRY "sendfail_retry"
+#define SMS_PARAMETER_OUTDATE_DELETE "outdate_delete"
+#define SMS_PARAMETER_DEFAULT_STORE "default_store"
+
+#define SMS_MESSAGES "messages"
+
+#define SMS_ID "id"
+#define SMS_NUMBER "number"
+#define SMS_NAME "name"
+#define SMS_CONTENT "content"
+#define SMS_TAG "tag"
+#define SMS_DATE "date"
+#define SMS_DRAFT_GROUP_ID "draft_group_id"
+//capacity info
+#define SMS_NV_TOTAL "sms_nv_total"
+#define SMS_SIM_TOTAL "sms_sim_total"
+#define SMS_NV_REV_TOTAL "sms_nv_rev_total"
+#define SMS_NV_SEND_TOTAL "sms_nv_send_total"
+#define SMS_NV_DRAFTBOX_TOTAL "sms_nv_draftbox_total"
+#define SMS_SIM_REV_TOTAL "sms_sim_rev_total"
+#define SMS_SIM_SEND_TOTAL "sms_sim_send_total"
+#define SMS_SIM_DRAFTBOX_TOTAL "sms_sim_draftbox_total"
+
+//#define ZTE_WMS_SEND_NUM_MAX (1)
+#define SMS_DEV_UNREAD_COUNT "sms_dev_unread_num"
+#define SMS_SIM_UNREAD_COUNT "sms_sim_unread_num"
+#define NUMBER_SIZE 8
+
+typedef struct {
+ unsigned char page;
+ unsigned char data_per_page;
+ unsigned char mem_store;
+ unsigned char tags;
+ unsigned char order_by[256];
+} zte_sms_query_req ;
+
+typedef struct {
+ unsigned char year[5];
+ unsigned char month[3];
+ unsigned char day[3];
+ unsigned char hour[3];
+ unsigned char min[3];
+ unsigned char sec[3];
+ unsigned char timezone[4];
+} zte_wms_sms_date;
+
+//CONCAT_SMS
+typedef struct {
+ char id[10];
+ char number [ZTE_WMS_ADDRESS_LEN_MAX + 1];
+ char sms_content[2 * ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX * ZTE_WMS_CONCAT_SMS_COUNT_MAX + 1];
+ char tag[10];
+ zte_wms_sms_date date;
+ char draft_group_id[32];
+} zte_sms_data;
+#if 0 // ÔÀ´²»Ö§³Ö¼¶Áª¶ÌÐŵĴúÂë
+typedef struct {
+ char id[10];
+ char number [ZTE_WMS_ADDRESS_LEN_MAX + 1];
+ char sms_content[2 * ZTE_WMS_SMS_MSG_CONTENT_STORE_LEN_MAX + 1];
+ char tag[10];
+ zte_wms_sms_date date;
+ char draft_group_id[32];
+} zte_sms_data;
+#endif
+#if 0
+//¶ÌÏûÏ¢ÊÕ¼þÏä¡¢·¢¼þÏä¡¢²Ý¸åÏä¡¢Ô¤Éè¶ÌÏûÏ¢µÄö¾Ù
+typedef enum _SMS_BOX_NAME {
+ SMS_ALLBOX = 1,
+ SMS_INBOX,
+ SMS_OUTBOX,
+ SMS_DRAFTBOX,
+ SMS_PRESETBOX
+} SMS_BOX_NAME;
+#endif
+
+/*¶ÌÐÅ´æ·ÅµÄλÖÃ*/
+typedef enum _SMS_LOCATION {
+ SMS_LOCATION_SIM = 0, //¿¨²à
+ SMS_LOCATION_ME, //É豸²à
+ SMS_LOCATION_PC, //PC²à
+} SMS_LOCATION;
+
+typedef enum _SMS_BOX_NAME {
+ SMS_ALLBOX = 1,
+ SMS_INBOX,
+ SMS_OUTBOX,
+ SMS_DRAFTBOX,
+ SMS_PRESETBOX
+} SMS_BOX_NAME;
+
+/*Ò³ÃæÇëÇóɾ³ýijһÀà¶ÌÐÅ*/
+typedef struct tagWEB_DEL_SMS_BY_TYPE {
+ SMS_BOX_NAME eBoxName; /*´ýɾ³ýµÄBOX*/
+ SMS_LOCATION eLocation; /*¶ÌÐÅ´æ·ÅµÄλÖÃ*/
+} WEB_DEL_SMS_BY_TYPE;
+
+
+typedef struct {
+ unsigned char count;
+ zte_sms_data data[0]; /*lint !e1501*/
+} zte_sms_query_result;
+
+
+typedef struct {
+ unsigned char content[1024];
+} zte_wms_cell_bro_s_type;
+
+
+
+
+