DateTimeGprot.h
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:6k
源码类别:
MTK
开发平台:
C/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:
- * ---------
- * DateTimeGprot.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * This file defines function prototypes for date/time realted utilities.
- *
- * Author:
- * -------
- * -------
- *
- *==============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *==============================================================================
- *******************************************************************************/
- /**
- * Copyright Notice
- * ?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
- * Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
- */
- /**************************************************************
- FILENAME : DateTimeGprot.h
- PURPOSE : .
- REMARKS : nil
- AUTHOR : Vijay Vaidya
- DATE : .
- **************************************************************/
- #ifndef _MMI_DATETIMEGPROT_H
- #define _MMI_DATETIMEGPROT_H
- #include "PixtelDataTypes.h"
- // #include "DateTimeDef.h"
- #include "DateTimeType.h"
- #include "AlarmDef.h"
- #include "CallManagementStruct.h"
- #ifndef MMI_ON_WIN32
- #include "app_datetime.h"
- #endif
- /*
- * Define
- */
- #define YEARFORMATE 2000
- #define MAX_CM_CALLS MAX_CALLS
- /*
- * Typedef
- */
- typedef void (*DateTimeFuncPtr) (MYTIME *);
- /*
- * Extern Global Variable
- */
- extern DateTimeFuncPtr CMDateTimeCallBack[MAX_CM_CALLS];
- extern U8 CMCallCount;
- extern U8 CMCallBackCount;
- /*
- * Extern Global Function
- */
- #ifdef MMI_ON_WIN32
- extern U16 FindMaxTime(MYTIME *t1, MYTIME *t2);
- extern MYTIME *GetTimeDifference(MYTIME *t1, MYTIME *t2, MYTIME *result);
- extern void GetDateTime(MYTIME *t);
- extern U8 DOW(U16 year, U8 month, U8 day);
- extern U8 LastDayOfMonth(U8 month, U16 year);
- extern void DecrementTime(MYTIME timeToDecrement, MYTIME decrement, MYTIME *Result);
- extern void DecrementTime2(MYTIME timeToDecrement, MYTIME decrement, MYTIME *Result);
- extern TIME_EQUALITY CompareTime(MYTIME referenceTime, MYTIME compareTime, MYTIME *diff);
- extern U16 IsLeapYear(U16 year);
- extern void DTGetRTCTime(MYTIME *t);
- extern U8 mmi_dt_is_valid(MYTIME *t);
- extern MYTIME mmi_dt_utc_to_rtc(FLOAT tz, MYTIME utc);
- extern MYTIME mmi_conv_tz_to_mytime(FLOAT tz);
- extern void mmi_dt_get_secure_time(MYTIME *t);
- extern void IncrementTime(MYTIME timeToIncrement, MYTIME increment, MYTIME *result);
- extern kal_int32 mmi_dt_mytime_2_utc_sec(MYTIME *currTime, kal_bool daylightSaving);
- extern kal_uint8 mmi_dt_utc_sec_2_mytime(kal_int32 utc_sec, MYTIME *result, kal_bool daylightSaving);
- extern void InitTime(void);
- extern U8 mmi_dt_get_week_number(MYTIME *date);
- #else /* MMI_ON_WIN32 */
- extern void DateTimerIndication(void *p);
- extern void SetDateTime(void *t);
- extern void mmi_dt_check_rtc_time(void);
- #endif /* MMI_ON_WIN32 */
- extern void CMGetExactTime(DateTimeFuncPtr callback);
- extern void CMGetExactTimeCB(void *buf);
- extern void CMCallBackTimer(void);
- extern FLOAT mmi_dt_get_tz(void);
- extern void mmi_dt_set_dst(U8 dst);
- extern void mmi_dt_set_rtc_dt(MYTIME *t);
- #endif /* _MMI_DATETIMEGPROT_H */