📄 historyhelper.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).
*
*****************************************************************************/
/*******************************************************************************
* Modification Notice:
* --------------------------
* This software is modified by MediaTek Inc. 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) 2001
*
*******************************************************************************/
/*******************************************************************************
* Filename:
* ---------
* HistoryHelper.c
*
* Project:
* --------
* Maui_Software
*
* Description:
* ------------
* .......
*
* Author:
* -------
* -------
*
*------------------------------------------------------------------------------
* $Log$
*
* removed!
* removed!
* Don't notify USB when CM is over.
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
* Delete CTM editor screen after call ended.
*
* 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!
*
*
* 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!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
* removed!
* removed!
*
*
*******************************************************************************/
/**
* Copyright Notice
* ?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
* Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
* (It is illegal to remove this copyright notice from this software or any
* portion of it)
*/
/**************************************************************
FILENAME : HistoryHelper.c
PURPOSE : Call Structure Management API
REMARKS : nil
AUTHOR : Ashish
DATE : Nov 8,02
**************************************************************/
#include "stdC.h"
#include "MMI_Features.h"
#include "L4Dr.h"
#include "L4Dr1.h"
#include "PixtelDataTypes.h"
#include "DebugInitDef.h"
#include "GlobalScrEnum.h"
#include "HistoryGprot.h"
#include "SubLCDHistoryGprot.h"
#include "Wgui_categories.h"
#include "TimerEvents.h"
#include "MMI_trc.h"
#include "KeyBrd.h"
#include "bootup.h"
#include "PowerOnChargerProt.h"
#include "USBDeviceGprot.h"
#include "SATGProts.h"
#include "SimDetectionGexdcl.h"
#include "AlarmFrameworkProt.h"
#include "AlarmDef.h"
#ifdef __MMI_TODOLIST__
#include "ToDoListEnum.h"
#endif
#include "MessagesMiscell.h"
#include "PhonebookDef.h"
#include "PhonebookGprot.h"
#include "gpioInc.h"
#include "ProfileGprots.h"
#include "CallhistoryEnum.h"
#include "mdi_datatype.h"
#include "mdi_audio.h"
#ifdef WAP_SUPPORT
#include "wapadp.h"
#endif
#include "Mdi_datatype.h"
#include "Mdi_audio.h"
#include "CallManagementIdDef.h"
#include "CallManagementStruct.h"
#include "CallStructureManagementProt.h"
#include "CallsGprots.h"
#include "CommonStubsProt.h"
#include "RedialHelperGProt.h"
#include "CallManagementGprot.h"
#include "IncomingCallManagementProt.h"
#include "OutgoingCallHelperProt.h"
#include "OutgoingCallManagementProt.h"
#include "HistoryHelperProt.h"
#if defined(__MMI_BG_SOUND_EFFECT__)
#include "BGSoundGProt.h"
#endif
#if defined(__MMI_WEBCAM__)
#include "ExtDeviceDefs.h"
#endif
//static pBOOL gPOPUpFlag=FALSE;
//static pBOOL gNotifySSFlag= FALSE;
//static FuncPtr gCbackAfterSS=NULL;
/* pBOOL noSave = TRUE; */
PU8 gdispnameForSubLCD = NULL;
#ifdef __MMI_CLAMCLOSE_BACK2IDLE__
extern BOOL IsClamClose(void);
//micha0601
//extern U8 gIsInSATCall;
#endif /* __MMI_CLAMCLOSE_BACK2IDLE__ */
extern void mmi_msg_reset_new_msg_ind_call_end(void);
extern U8 mmi_msg_need_new_msg_ind_call_end(void);
/*****************************************************************************
* FUNCTION
* EntryScrMarkerError
* DESCRIPTION
* This function is the error screen which should never be
* called.
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void EntryScrMarkerError(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
/* U8* guiBuffer; */
EntryNewScreen(CM_SCR_MARKER, NULL, NULL, NULL);
// guiBuffer = GetCurrGuiBuffer(CM_SCR_MARKER); /* Getting the Index from history */
SetLeftSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
StartTimer(CM_NOTIFYDURATION_TIMER, 1, GoBackfromNotifyScr);
}
/*****************************************************************************
* FUNCTION
* AddMarkerToHistory
* DESCRIPTION
* This function inserts a marker screen to history
* PARAMETERS
* void
* Screen(?) [IN] ID to add as marker screen
* RETURNS
* void
*****************************************************************************/
void AddMarkerToHistory(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
history scr101;
U16 nHistory = 0;
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
pfnUnicodeStrcpy((S8*) scr101.inputBuffer, (PS8) & nHistory);
scr101.scrnID = CM_SCR_MARKER;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -