📄 mmsconf.h
字号:
/*
* Copyright (C) Obigo AB, 2002-2005.
* All rights reserved.
*
* This software is covered by the license agreement between
* the end user and Obigo AB, and may be
* used and copied only in accordance with the terms of the
* said agreement.
*
* Obigo AB assumes no responsibility or
* liability for any errors or inaccuracies in this software,
* or any consequential, incidental or indirect damage arising
* out of the use of the software.
*
*/
/******************************************************************************
* File: $Workfile: mmsconf.h $
* Revision: $Revision: \main\166 $
*****************************************************************************/
/*! \file mmsconf.h
* \brief Configuration variables for the MMS Client.
*/
#ifndef _MMSCONF_H
#define _MMSCONF_H
/****************************************************************************
* Change, comment or uncomment the defines below in order to alter the
* behaviour and/or functionality of the MMS Client.
****************************************************************************/
/*! This value is the default value for the configuration variable
* #MMS_CFG_EXTERNAL_DRM_PARSER. */
#define MMS_DEFAULT_EXTERNAL_DRM_PARSER TRUE
/*! This value is the default value for the configuration variable
* #MMS_CFG_IMM_RET_RETRY_ATTEMPTS. */
#define MMS_DEFAULT_IMM_RET_RETRY_ATTEMPTS 1
/*! This value is the default value for the configuration variable
* #MMS_CFG_IMM_RET_RETRY_TIMEOUT. */
#define MMS_DEFAULT_IMM_RET_RETRY_TIMEOUT 3000
/*! This value is the default value for the configuration variable
* #MMS_CFG_READ_REPORT_MULTIPART_MIXED. */
#define MMS_DEFAULT_READ_REPORT_MULTIPART_MIXED FALSE
/*! This value is the default value for the configuration variable
* #MMS_CFG_GET_URI. */
#define MMS_DEFAULT_GET_URI ""
/*! This value is the default value for the configuration variable
* #MMS_CFG_STANDARD_NOTIFICATION_URI. */
#define MMS_DEFAULT_STANDARD_NOTIFICATION_URI TRUE
/*! This value is the default value for the configuration variable
* #MMS_CFG_USE_RECEPTION_DATE. */
#define MMS_DEFAULT_USE_RECEPTION_DATE TRUE
/*! This value is the default value for the configuration variable
* #MMS_CFG_EXTRA_NOTIFY_RESP. */
#define MMS_DEFAULT_EXTRA_NOTIFY_RESP FALSE
/*! This value is the default value for the configuration variable
* #MMS_CFG_MAX_DOWNLOAD_SIZE. */
#define MMS_DEFAULT_MAX_DOWNLOAD_SIZE 0
/*! This value is the default value for the configuration variable
* #MMS_CFG_SCHEME. */
#define MMS_DEFAULT_SCHEME "http://"
/*! This value is the default value for the configuration variable
* #MMS_CFG_CLIENT_USER_AGENT. */
#define MMS_DEFAULT_USER_AGENT ""
/*! This value is the default value for the configuration variable
* #MMS_CFG_CLIENT_HTTP_HEADER. */
#define MMS_DEFAULT_HTTP_HEADER ""
/*! This is the default value for the configuration variable
* #MMS_CFG_PROXY_RELAY. */
#define MMS_PROXY_RELAY "localhost"
/*! This is the default value for the configuration variable
* #MMS_CFG_PROXY_RELAY_VERSION. The definition from mmstypes.h cannot be used
* in this file because that would lead to circular dependencies between the
* header files. 0x10 is MMS 1.0, 0x11 is MMS 1.1, 0x12 is MMS 1.2 and so on.*/
#define MMS_DEFAULT_PROXY_RELAY_VERSION 0x11
/*! This is the default value for the configuration variable
* #MMS_CFG_GET_RETRY. */
#define MMS_DEFAULT_GET_RETRY 3
/*! This is the default value for the configuration variable
* #MMS_CFG_POST_RETRY. */
#define MMS_DEFAULT_POST_RETRY 3
/*! This is the default value for the configuration variable #MMS_CFG_PORT. */
#define MMS_PORT 80
/*! This is the default value for the configuration variable
* #MMS_CFG_POST_URI. */
#define MMS_POST_URI "/mms/proxyRelay.exe"
/*! Time in tenth of seconds before a GET operation is considered
* to have timed out e.g. a value of 300 means 30 seconds.
*/
#define MMS_GET_TIMEOUT 300
/*! Time in seconds before a post operation is considered to have timed out.
* Time is given in tenth of seconds, e.g. a value of 300 means 30 seconds.
*/
#define MMS_POST_TIMEOUT 300
/*! Time in seconds before a connect operation (i.e. the operation of starting
* a WSP/HTTP session) is considered to have timed out.
* Time is given in tenth of seconds, e.g. a value of 600 means 60 seconds.
*/
#define MMS_CONNECT_TIMEOUT 600
/*! This is the default value for the #MMS_CFG_DISCONNECT_ON_IDLE
* configuration variable.
*/
#define MMS_DISCONNECT_ON_IDLE FALSE
/*! Time in seconds before the MMS Client disconnects if the
* #MMS_CFG_DISCONNECT_ON_IDLE configuration variable is set to TRUE.
* Time is given in tenth of seconds, e.g. a value of 50 means 5 seconds.
*/
#define MMS_DISCONNECT_ON_IDLE_TIMEOUT 50
/*! This is the default value for the #MMS_CFG_NO_SMS_NOTIFY_RESP
* configuration variable.
*/
#define MMS_NO_SMS_NOTIFY_RESP FALSE
/*! This is the default value for the #MMS_CFG_MAX_SIZE_OF_MSG configuration
* variable.
*/
#define MMS_MAX_MSG_SIZE 32000
/*! Defines the maximum number of notifications that is searched for duplicates.
*/
#define MMS_MAX_DUPLICATE_NOTIFICATION_CHECK 40
/*! Defines the maximum number chunks to copy from file A to file B in the
* same state.
*/
#define MMS_NR_OF_COPY_SLOTS 4
/*! Defines the maximum number of messages that are deleted in the same call
* to MMSc_run during an MMSc_deleteFolder operation. Every delete message
* operation will lead to multiple file operations during cleanup.
*/
#define MMS_NR_OF_DELETE_FOLDER_MSG 20
/****************************************************************************
* Defines for logging. These defines must be removed before the final
* TDA is delivered.
****************************************************************************/
#define MMS_LOG_EXTERNAL /*!< Enables external logging in the MMS Client. */
#define MMS_LOG_INTERNAL /*!< Enables internal logging in the MMS Client. */
#undef MMS_LOG_PROTOCOL /*!< Enables logging of data sent over http (only
* first chunk). */
/****************************************************************************
* Text defines used for creating an MMS 1.0 Read Reply message.
****************************************************************************/
#define MMS_RR_TEXT_FROM "From: " /*!< Part of Read Reply message. */
#define MMS_RR_TEXT_READ "Read: " /*!< Part of Read Reply message. */
#define MMS_RR_TEXT_YOUR_MSG "Your message\n\n" /*!< Part of Read Reply message. */
#define MMS_RR_TEXT_TO "To: " /*!< Part of Read Reply message. */
#define MMS_RR_TEXT_SUBJECT "Subject: " /*!< Part of Read Reply message. */
#define MMS_RR_TEXT_MSGID "Message ID: " /*!< Part of Read Reply message. */
#define MMS_RR_TEXT_SENT "Sent: " /*!< Part of Read Reply message. */
#define MMS_RR_TEXT_WAS_READ "\n\nwas read on " /*!< Part of Read Reply message. */
/****************************************************************************
* Text length related configurations. These defines determines how long
* text fields may be. Values is number of bytes.
***************************************************************************/
#define MAX_ADDRESS_LEN 128 /*!< Max length for one address field. */
#define MAX_CONTENT_TYPE_LEN 100 /*!< Max length for content type. */
#define MAX_STR_LEN_MSG_CLASS 64 /*!< Max length for message class. */
#define MAX_SUBJECT_LEN 100 /*!< Max length for subject. */
#define MAX_MMS_ENTRY_HEADER_VALUE_LEN 100 /*!< Max length for Entry header values. */
/*! When an Entry header of type CONTENT-ID or CONTENT-LOCATION is longer than
* #MAX_MMS_ENTRY_HEADER_VALUE_LEN characters, this definition determines
* if #MAX_MMS_ENTRY_HEADER_VALUE_LEN characters should be used in the entry
* header or if the message is considered to be corrupt.
*
* Possible values
* - TRUE means that #MAX_MMS_ENTRY_HEADER_VALUE_LEN characters from the entry
* header will be copied and used, following characters is skipped. The SMIL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -