📄 customer_email_num.c
字号:
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*******************************************************************************
*
* Filename:
* ---------
* customer_email_num.c
*
* Project:
* --------
* MAUI Project
*
* Description:
* ------------
* This file is used to define the E-mail maximum message number.
*
* Author:
* -------
* -------
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
* removed!
* removed!
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
#include "kal_release.h"
#include "customer_ps_inc.h"
#ifdef __EMAIL__
#include "stack_common.h"
#include "stack_msgs.h"
#include "app_ltlcom.h" /* local/peer struct */
#include "rtc_sw.h"
#include "email_mmi.h"
#include "email_export.h"
/* POP3-related global variables */
kal_uint32 pop3_msgid_list_g[EMAIL_MAX_MSG_NUM];
kal_uint32 pop3_msgsize_list_g[EMAIL_MAX_MSG_NUM];
/* Mailbox-related global variables */
kal_uint16 email_sort_list_g[EMAIL_MAX_MSG_NUM];
email_nv_mb_entry_struct email_nvmb_entry_g[EMAIL_MAX_MSG_NUM];
email_mb_entry_struct email_mb_entry_g[EMAIL_MAX_MSG_NUM];
#ifdef __POP3_LEAVE_COPY_ON_SERVER__
/* UID list which obtained by UIDL command */
kal_uint8 pop3_uid_list_g[EMAIL_MAX_MSG_NUM][POP3_UIDL_DIGEST_LEN];
/* UID list which stored the email retrieved */
email_nv_uidl_entry_struct email_nvuidl_entry_g[EMAIL_UIDL_ENTRY_NUM];
kal_uint8 pop3_nv_uid_flag_g[EMAIL_UIDL_ENTRY_NUM];
/*****************************************************************************
* FUNCTION
* email_get_max_uidl_num
* DESCRIPTION
* This function is used to define the E-mail maximum UIDL number.
*
* PARAMETERS
*
* RETURNS
* kal_uint16
* GLOBALS AFFECTED
* None
*****************************************************************************/
kal_uint16 email_get_max_uidl_num (void)
{
return (EMAIL_UIDL_ENTRY_NUM);
}
#endif /* __POP3_LEAVE_COPY_ON_SERVER__ */
/*****************************************************************************
* FUNCTION
* email_get_max_num
* DESCRIPTION
* This function is used to define the
* E-mail maximum message box number.
*
* PARAMETERS
*
* RETURNS
* kal_uint16
* GLOBALS AFFECTED
* None
*****************************************************************************/
kal_uint16 email_get_max_num (void)
{
return (EMAIL_MAX_MSG_NUM);
}
/*****************************************************************************
* FUNCTION
* email_get_max_msg_size
* DESCRIPTION
* This function is used to define the E-mail maximum message size.
* NOTE that this number will be used to reserve file system space.
*
* PARAMETERS
*
* RETURNS
* kal_uint32
* GLOBALS AFFECTED
* None
*****************************************************************************/
kal_uint32 email_get_max_msg_size()
{
return (kal_uint32)MMI_EMAIL_MAX_MSG_SIZE;
}
/*****************************************************************************
* FUNCTION
* email_get_min_msg_size
* DESCRIPTION
* This function is used to define the E-mail minimum message size.
*
* PARAMETERS
*
* RETURNS
* kal_uint32
* GLOBALS AFFECTED
* None
*****************************************************************************/
kal_uint32 email_get_min_msg_size()
{
return (kal_uint32)MMI_EMAIL_MIN_MSG_SIZE;
}
/*****************************************************************************
* FUNCTION
* email_get_max_attach_size
* DESCRIPTION
* This function is used to define the E-mail maximum per attachment size.
*
* PARAMETERS
*
* RETURNS
* kal_uint32
* GLOBALS AFFECTED
* None
*****************************************************************************/
kal_uint32 email_get_max_attach_size()
{
return (kal_uint32)MMI_EMAIL_MAX_ATTACH_SIZE;
}
/*****************************************************************************
* FUNCTION
* email_get_total_max_attach_size
* DESCRIPTION
* This function is used to define
* the E-mail maximum total attachment size.
*
* PARAMETERS
*
* RETURNS
* kal_uint32
* GLOBALS AFFECTED
* None
*****************************************************************************/
kal_uint32 email_get_total_max_attach_size()
{
return (kal_uint32)MMI_EMAIL_TOTAL_MAX_ATTACH_SIZE;
}
#endif /* __EMAIL__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -