📄 cms_mmsprovide.h
字号:
/*=====================================================================
Copyright (c) 2001-2002 MobileSoft Corporation
All Rights Reserved.
$Logfile: "Cms_MMSProvide.h"
$Revision:
$vision: 1.00
$Date: 05/23/2003
$Author: Shawn Pan
$Declare:
This document contains information proprietary to MobileSoft
Technology (Nanjing), Corp. Transmittal, receipt, or possession
of this document does not express, license, or imply any rights to
use, sell, design, or manufacture from this information. No reproduction,
publication, or disclosure of this information, in whole or in part,
shall be made without prior written authorization from an officer of
MobileSoft Technology (NanJing), Corp.
Abstract:
Modified By:
Environment:
Revision History:
=====================================================================*/
#ifndef _CMS_MMS_PROVIDE_H
#define _CMS_MMS_PROVIDE_H
#include "Cms_callback.h"// Modified by TIPrj[2005/7/14]
#include "Cms_MMSGlobal.h"
#include "Cms_MMSDoc.h"
#ifndef MMSHANDLE
#define MMSHANDLE void*
#endif
#ifndef bool
#define bool int
#endif
#ifndef WTP_PACKET_SIZE
#define WTP_PACKET_SIZE 1395//1020
#endif
//#define CECW_RECV_MRU WTP_PACKET_SIZE+10
/* define document type */
#ifndef DOCUMENT_TYPE_WML
#define DOCUMENT_TYPE_WML 1
#endif
#ifndef DOCUMENT_TYPE_SMIL
#define DOCUMENT_TYPE_SMIL 2
#endif
#ifndef DOCUMENT_TYPE_MMS
#define DOCUMENT_TYPE_MMS 3
#endif
/*------------------------------------------------------------------------
*
*
*
* the size of variable in a struct should be times of 4 bytes
* this is padding
*
*
------------------------------------------------------------------------*/
/*------------------------------------------------------------------------
*
*
*
* use this to malloc space
*
*
*
------------------------------------------------------------------------*/
#ifndef WTP_MTU
#define WTP_MTU 1500
#endif
#ifndef WTP_RECV_MAXSPACE
#define WTP_RECV_MAXSPACE WTP_MTU+100
#endif
/*----------------------------------------------------------------------*/
/*------------------------------------------------------------------------
*
*
*
* MMS head field definition
*
*
*
------------------------------------------------------------------------*/
#ifndef MMS_BCC
#define MMS_BCC 0x01
#endif
#ifndef MMS_CC
#define MMS_CC 0x02
#endif
#ifndef MMS_CONTENT_LOCATION
#define MMS_CONTENT_LOCATION 0x03
#endif
#ifndef MMS_CONTENT_TYPE
#define MMS_CONTENT_TYPE 0x04
#endif
#ifndef MMS_DATE
#define MMS_DATE 0x05
#endif
#ifndef MMS_DELIVERY_REPORT
#define MMS_DELIVERY_REPORT 0x06
#endif
#ifndef MMS_DELIVERY_TIME
#define MMS_DELIVERY_TIME 0x07
#endif
#ifndef MMS_EXPIRY
#define MMS_EXPIRY 0x08
#endif
#ifndef MMS_FROM
#define MMS_FROM 0x09
#endif
#ifndef MMS_MESSAGE_CLASS
#define MMS_MESSAGE_CLASS 0x0a
#endif
#ifndef MMS_MESSAGE_ID
#define MMS_MESSAGE_ID 0x0b
#endif
#ifndef MMS_MESSAGE_TYPE
#define MMS_MESSAGE_TYPE 0x0c
#endif
#ifndef MMS_MMS_VERSION
#define MMS_MMS_VERSION 0x0d
#endif
#ifndef MMS_MESSAGE_SIZE
#define MMS_MESSAGE_SIZE 0x0e
#endif
#ifndef MMS_PRIORITY
#define MMS_PRIORITY 0x0f
#endif
#ifndef MMS_READ_REPORT
#define MMS_READ_REPORT 0x10
#endif
#ifndef MMS_REPORT_ALLOWED
#define MMS_REPORT_ALLOWED 0x11
#endif
#ifndef MMS_RESPONSE_STATUS
#define MMS_RESPONSE_STATUS 0x12
#endif
#ifndef MMS_RESPONSE_TEXT
#define MMS_RESPONSE_TEXT 0x13
#endif
#ifndef MMS_SENDER_VISIBILITY
#define MMS_SENDER_VISIBILITY 0x14
#endif
#ifndef MMS_STATUS
#define MMS_STATUS 0x15
#endif
#ifndef MMS_SUBJECT
#define MMS_SUBJECT 0x16
#endif
#ifndef MMS_TO
#define MMS_TO 0x17
#endif
#ifndef MMS_TRANSACTION_ID
#define MMS_TRANSACTION_ID 0x18
#endif
#ifndef MMS_READ_STATUS
#define MMS_READ_STATUS 0x1b
#endif
/*------------------------------------------------------------------------
*
*
*
* MMS message type value definition
*
*
*
------------------------------------------------------------------------*/
#ifndef MMS_MESSAGE_TYPE_SEND_REQ
#define MMS_MESSAGE_TYPE_SEND_REQ 128
#endif
#ifndef MMS_MESSAGE_TYPE_SEND_CONF
#define MMS_MESSAGE_TYPE_SEND_CONF 129
#endif
#ifndef MMS_MESSAGE_TYPE_NOTIFICATION_IND
#define MMS_MESSAGE_TYPE_NOTIFICATION_IND 130
#endif
#ifndef MMS_MESSAGE_TYPE_NOTIFYRESP_IND
#define MMS_MESSAGE_TYPE_NOTIFYRESP_IND 131
#endif
#ifndef MMS_MESSAGE_TYPE_RETRIVE_CONF
#define MMS_MESSAGE_TYPE_RETRIVE_CONF 132
#endif
#ifndef MMS_MESSAGE_TYPE_ACKNOWLEDGE_IND
#define MMS_MESSAGE_TYPE_ACKNOWLEDGE_IND 133
#endif
#ifndef MMS_MESSAGE_TYPE_DELIVERY_IND
#define MMS_MESSAGE_TYPE_DELIVERY_IND 134
#endif
#ifndef MMS_MESSAGE_TYPE_READREC_IND
#define MMS_MESSAGE_TYPE_READREC_IND 135
#endif
#ifndef MMS_MESSAGE_TYPE_READORIG_IND
#define MMS_MESSAGE_TYPE_READORIG_IND 136
#endif
/*------------------------------------------------------------------------
*
*
*
* MMS head field macro definition
*
*
*
------------------------------------------------------------------------*/
/* define address type */
#ifndef ADDRESS_TYPE_UNKNOWN
#define ADDRESS_TYPE_UNKNOWN 0
#endif
#ifndef ADDRESS_TYPE_PLMN
#define ADDRESS_TYPE_PLMN 1
#endif
#ifndef ADDRESS_TYPE_IPV4
#define ADDRESS_TYPE_IPV4 2
#endif
#ifndef ADDRESS_TYPE_IPV6
#define ADDRESS_TYPE_IPV6 3
#endif
#ifndef ADDRESS_TYPE_EMAIL
#define ADDRESS_TYPE_EMAIL 4
#endif
/* Well-known Parameter Assignments */
#ifndef MMS_TYPE_PA_TYPE
#define MMS_TYPE_PA_TYPE 0x09
#endif
#ifndef MMS_TYPE_PA_START
#define MMS_TYPE_PA_START 0x0A
#endif
/* macro define of deffrient mms bool field value */
#ifndef MMS_FIELD_VALUE_YES
#define MMS_FIELD_VALUE_YES 128
#endif
#ifndef MMS_FIELD_VALUE_NO
#define MMS_FIELD_VALUE_NO 129
#endif
/* macro define of deffrient time field type value */
#ifndef MMS_TIME_TYPE_ABCOLUTE
#define MMS_TIME_TYPE_ABCOLUTE 128
#endif
#ifndef MMS_TIME_TYPE_RELATIVE
#define MMS_TIME_TYPE_RELATIVE 129
#endif
/* macro define of from field value type value */
#ifndef MMS_FROM_VALUE_TYPE_ADDRESS
#define MMS_FROM_VALUE_TYPE_ADDRESS 128
#endif
#ifndef MMS_FROM_VALUE_TYPE_INSERT
#define MMS_FROM_VALUE_TYPE_INSERT 129
#endif
/* macro define of from message class type value */
#ifndef MMS_MESSAGE_CLASS_TYPE_PERSONAL
#define MMS_MESSAGE_CLASS_TYPE_PERSONAL 128
#endif
#ifndef MMS_MESSAGE_CLASS_TYPE_ADVERTISEMENT
#define MMS_MESSAGE_CLASS_TYPE_ADVERTISEMENT 129
#endif
#ifndef MMS_MESSAGE_CLASS_TYPE_INFORMATIONAL
#define MMS_MESSAGE_CLASS_TYPE_INFORMATIONAL 130
#endif
#ifndef MMS_MESSAGE_CLASS_TYPE_AUTO
#define MMS_MESSAGE_CLASS_TYPE_AUTO 131
#endif
#ifndef MMS_DELIVERY_REPORT_YES
#define MMS_DELIVERY_REPORT_YES 1
#endif
#ifndef MMS_DELIVERY_REPORT_NO
#define MMS_DELIVERY_REPORT_NO 0
#endif
#ifndef MMS_READ_REPORT_YES
#define MMS_READ_REPORT_YES 1
#endif
#ifndef MMS_READ_REPORT_NO
#define MMS_READ_REPORT_NO 0
#endif
/* macro define of message priority value */
#ifndef MMS_PRIORITY_VALUE_LOW
#define MMS_PRIORITY_VALUE_LOW 128
#endif
#ifndef MMS_PRIORITY_VALUE_NORMAL
#define MMS_PRIORITY_VALUE_NORMAL 129
#endif
#ifndef MMS_PRIORITY_VALUE_HIGH
#define MMS_PRIORITY_VALUE_HIGH 130
#endif
/* macro define of send visibility value */
#define MMS_SENDER_VISIBILITY_HIDE 128
#define MMS_SENDER_VISIBILITY_SHOW 129
/* macro define of status value */
#define MMS_STATUS_VALUE_EXPIRED 128
#define MMS_STATUS_VALUE_RETRIVED 129
#define MMS_STATUS_VALUE_REJECTED 130
#define MMS_STATUS_VALUE_DEFERRED 131
#define MMS_STATUS_VALUE_UNRECOGNISED 132
#if 0 // Modified by TIPrj[2005/7/13]
/*------------------------------------------------------------------------
*
*
*
* MMS bottom message funcion param definition
*
*
*
------------------------------------------------------------------------*/
typedef enum
{
NETLINK_RETURN = 0,
SENDDATA_RETURN,
DATAARRIVED,
NETCLOSELINK_RETURN,
FILEOPRATE_RETURN,
DIR_OPREATE_RETURN,
//CECW_TIMER_MSG,//timout
WTP_TIMEROUT_MSG
}CenMsgType;
typedef enum
{
NETLINK_FAILED,
NETLINK_SUCCESS
}NETLINK_RETURN_VALUE;//after netlink
typedef enum
{
SENDDATA_FAILED,
SENDDATA_SUCCESS
}SENDDATA_RETURN_VALUE;
typedef enum
{
MMSNETLINKING,
MMSNETLINK_SUCCESS,
WAPCONNECT_SUCCESS,
MMS_RECEIVING,
MMS_SENDING,
MMSNETLINK_FAILED,
MMSWAPCONNECT_FAILED,
//MMSSEND_FAILED,
//MMSSEND_SUCCESS,
MMSRECV_FAILED,
MMSRECV_FAILED_BY_NOT_FOUND,
MMSRECV_FINISHED,
MMSRECV_SUCCESS,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -