⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cms_mmsglobal.h

📁 主要用于彩信的开发
💻 H
📖 第 1 页 / 共 2 页
字号:
/*=====================================================================

 Copyright (c) 2001-2002 MobileSoft Corporation

    All Rights Reserved.

    $Logfile: bloble.h

    $Revision:

    $vision:       1.00

    $Date:         08/10/2002

    $Author:       hulf

	$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 _GLOBLE_H_
#define _GLOBLE_H_
#include "Cms_callback.h"//  Modified by TIPrj[2005/7/14]  
//#include "resource.h"

//#include "Cms_MMSMain.h"
//#include "Cms_MMSSmil.h"

//系统函数的使用均在这里


/*
#define MMSSTRING_DIALOGCOMPANY				"移软科技(南京)欢迎您使用此软件!"
#define MMSSTRING_SHOWRFOLDER				"收件箱内有%d条消息,%d条未读。"
#define MMSSTRING_SHOWSFOLDER				"发件箱内有%d条消息,%d条未发送。"
#define MMSSTRING_SHOWDFOLDER				"草稿箱内有%d条消息。"
#define MMSSTRING_NCMESSAGE					"没有当前消息!"
#define MMSSTRING_SPEEDSLOW					"缓慢"
#define MMSSTRING_SPEEDNORMAL				"普通"
#define MMSSTRING_SPEEDFAST					"紧急"
#define MMSSTRING_DOPEN						"打开"
#define MMSSTRING_NOEMPTY					"收件人和主题都不能为空!"
#define MMSSTRING_MM						"多媒体短消息"
#define MMSSTRING_MM_1						"多媒体短消息(smil)\0*.smil\0\0"
#define MMSSTRING_MM_2						"多媒体短消息(wml)\0*.wml\0\0"
#define MMSSTRING_IMAGEFILE					"图象文件\0*.wbmp;*.gif;*.jpg;*.jpeg\0\0"
#define MMSSTRING_VOICEFILE					"音频文件\0*.wav;*.amr;*.imy\0\0"
#define MMSSTRING_SAVETODRAFT				"需要保存到草稿箱吗?"
#define MMSSTRING_NOTEXT					"文本内容不能为空!"
#define MMSSTRING_INUTTEXT					"输入文本"
#define MMSSTRING_ERRORINPUT				"输入错误!"
#define MMSSTRING_SETCONTENT				"内容设置"
#define MMSSTRING_SETFRAME					"帧设置"
#define MMSSTRING_SETDOCUMENT				"文档设置"
#define MMSSTRING_CEVENTFAILED				"创建事件失败!"
#define MMSSTRING_NOWAVE					"所指定的文件不是有效的wave音频流文件"
#define MMSSTRING_CTHREADFAILED1			"创建播放线程失败"
#define MMSSTRING_CTHREADFAILED2			"创建解码线程失败"
#define MMSSTRING_REVENTFAILED				"重设事件失败"
*/
/*
#define MMSSTRING_DELETEMSG					"真的要删除这条消息吗?"
#define MMSSTRING_MSGSENDOUT				"消息已发出!"
#define MMSSTRING_MSGUNKNOWNERROR			"不明确的错误!"
#define MMSSTRING_SERVICEDENIED				"服务拒绝!"
#define MMSSTRING_FORMATERROR				"格式错误!"
#define MMSSTRING_ADDRESSERROR				"地址错误!"
#define MMSSTRING_NOMSGERROR				"没有消息错误!"
#define MMSSTRING_NETWORKERROR				"网络错误!"
#define MMSSTRING_NOTACCEPTERROR			"对方不接收"
#define MMSSTRING_UNSUPPORTERROR			"不支持消息"
#define MMSSTRING_NBSERROR					"网络忙!发送消息失败!\r\n需要重发吗?"
#define MMSSTRING_NBCERROR					"网络忙!接收消息失败!\r\n需要重收吗?"
#define MMSSTRING_NOBJERROR                 "错误!所请求的对象不存在!"
*/
/*
#define MMSSTRING_NMSGCOMMING				"一条新消息!"
#define MMSSTRING_RECEIVINGMSG				"正在接收消息..."
#define MMSSTRING_MSGRECEIVED				"消息已收到!"
#define MMSSTRING_DI1						"彩信:\r\n到:%s;\r\n日期:%s;\r\n"
#define MMSSTRING_MSGISRECEIVED				"对方已收到!"
#define MMSSTRING_MSGISREJECTED				"消息被拒收!"
#define MMSSTRING_MSGISEXPIRED				"消息已过期!"
#define MMSSTRING_MSGISDEFERRED				"消息被延期!"
#define MMSSTRING_MSGNOTARRIVE				"消息无法传输!"
*/


/*
#define MMSSTRING_GPRSWAITING				"网络正在等待资源,请稍候!"
#define MMSSTRING_GPRSERROR					"网络连接错误!"
#define MMSSTRING_NOUSABLENETERROR			"错误:\r\n没有可用的WAP连接!"
#define MMSSTRING_GPRSFAILED				"网络连接失败,请稍候!"
#define MMSSTRING_GPRSRETRY					"网络连接失败,重试?"
*/
/*
#define MMSSTRING_MSGFORMATERROR			"消息格式错误!"
#define MMSSTRING_MSGNOCONTENT				"消息没有内容!"
#define MMSSTRING_LARGE						"较大"
#define MMSSTRING_NORMAL					"一般"
#define MMSSTRING_SMALL						"较小"
*/
/*
#define MMSSTRING_SENDINGMSG				"正在发送消息..."
#define MMSSTRING_RECEIVEDPUSH				"收到一条PUSH消息!"
#define MMSSTRING_SENDINGRESP				"正在发送响应..."
#define MMSSTRING_SENDINGAKCN				"正在发送报告..."
#define MMSSTRING_CONNECTINGGW				"正在连接WAP网关..."
#define MMSSTRING_CHECKINGNETWORK			"正在检查网络..."
#define MMSSTRING_SEARCHGPRS				"正在查找网络..."
#define MMSSTRING_ESTABLISHGPRS				"正在连接网络..."
#define MMSSTRING_NETWORKOK					"网络连接成功!"
*/
/*
#define MMSSTRING_GETTIMEERROR				"获取时间错误!"
#define MMSSTRING_RMSGFIRST					"请先收取消息!"
#define MMSSTRING_SELECTFILE				"请选择文件:"

#define MMSSTRING_NOLASTFRAME				"没有上一帧!"
#define MMSSTRING_NONEXTFRAME				"没有下一帧!"

#define MMSSTRING_SENDER					"发送人:"
#define MMSSTRING_RECEIVER					"接收人:"
#define MMSSTRING_DATE						"日   期:"
#define MMSSTRING_TITLE						"主   题:"

#define MMSSTRING_RECVFAILED				"接收消息失败!"
#define MMSSTRING_AUTORECVFAILED			"自动接收失败!"
#define MMSSTRING_STOREMEMORYLOW			"存储空间严重不足!"

#define MMSSTRING_IMAGETOOLARGE				"对不起,图片尺寸过大!"
#define MMSSTRING_ONEIMAGEONLY				"对不起,一页只能含有一个图片!"
#define MMSSTRING_ONETEXTONLY				"对不起,一页只能含有一段文本!"

#define MMSSTRING_EDITORSTATUS				"消息共%d帧,当前第%d帧!"
#define MMSSTRING_ESTATUSREADY				"就绪!"
#define MMSSTRING_ESTATUSEMPTYMSG			"新消息!"

#define MMSSTRING_PHONEADDRESSEMOTY				"此联系人手机号码为空!"
#define MMSSTRING_EMAILADDRESSEMOTY				"此联系人电子邮箱为空!"
#define MMSSTRING_ADDRESSEXIST					"此联系人已经存在!"

#define MMSSTRING_ADDRESSUNKNOEWN				"未命名"
#define MMSSTRING_ADDRESSNAME					"姓名"
#define MMSSTRING_ADDRESSEMAIL					"电子邮箱"
#define MMSSTRING_ADDRESSPHONE					"移动电话"
*/
#define		GWL_HINSTANCE -2
#define		MENU_HEIGHT 26
#define     MMS_FILE_NAME_LEN  128//max length of file name


//#define		RUN_ON_POCKETPC
//#define		PUSH_OVER_SMS
//#define		_MMS_DEBUG_

/****************************** Basic Data types *****************************/
/*------------------------------------------------------------------------
 *
 *
 *
 *						struct padding
 *
 *
 *
------------------------------------------------------------------------*/
#ifndef CENT_FILL_FIELD1
#define CENT_FILL_FIELD1  char  unuseful1;
#endif

#ifndef CENT_FILL_FIELD2
#define CENT_FILL_FIELD2  char  unuseful1;\
							char  unuseful2;
#endif

#ifndef CENT_FILL_FIELD3
#define CENT_FILL_FIELD3  char  unuseful1;\
							char unuseful2; \
						char unuseful3;
#endif

/* Typedefs for integer types */

#ifndef TRUE 
#define TRUE 1
#endif

#ifndef FALSE 
#define FALSE 0
#endif

#ifndef     MMSHANDLE
#define		MMSHANDLE		void*
#endif
typedef unsigned int COLOR;
#ifndef RGB
	#define RGB(r,g,b)	((CMS_MMS_U32)((CMS_MMS_U8)r|(CMS_MMS_U32)((CMS_MMS_U8)g<<8)|(CMS_MMS_U32)((CMS_MMS_U8)b<<16)))
#endif



/*------------------------------------------------------------------------
 *
 *
 *
 *                 不同的MMS头字段宏定义
 *
 *
 *
------------------------------------------------------------------------*/
#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消息类型值宏定义
 *
 *
 *
------------------------------------------------------------------------*/
#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


typedef enum
{
	NETLINK_RETURN = 0,
	SENDDATA_RETURN,
	DATAARRIVED,
	NETCLOSELINK_RETURN,
	FILEOPRATE_RETURN,
	DIR_OPREATE_RETURN,
	//CECW_TIMER_MSG,//超时 
	WTP_TIMEROUT_MSG
}CenMsgType;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -