📄 mmiidle.c
字号:
SceneSelect_mode = 0;
if( idleIsFocussed() )
winShow(idle_data.win);
return MFW_EVENT_CONSUMED;
case KCD_RIGHT:
case KCD_HUP:
case KCD_POWER:
SceneSelect_mode = 0;
if( idleIsFocussed() )
winShow(idle_data.win);
return MFW_EVENT_CONSUMED;
case KCD_ABC: //xsf add 2003.03.17
break;
default:
SceneSelect_mode = 0;
if( idleIsFocussed() )
winShow(idle_data.win);
break;
}
}
#endif
if( (!idle_data.clean_screen) && (idle_data.edt) )
{
switch( k->code )
{
case KCD_MNUUP:
if( idleIsFocussed() )
{
if( idle_data.edt )
{
TRACE_EVENT("CB menu down");
edtChar(idle_data.edt,ecUp);
}
}
return MFW_EVENT_CONSUMED;
case KCD_MNUDOWN:
if( idleIsFocussed() )
{
if( idle_data.edt )
{
TRACE_EVENT("CB menu down");
edtChar(idle_data.edt,ecDown);
}
}
return MFW_EVENT_CONSUMED;
/* 2004/04/01 sunsj add */
case KCD_LEFT:
case KCD_RIGHT: /* main menu */
case KCD_HUP:
statusCBCH(FALSE);
windowsUpdate();
return MFW_EVENT_CONSUMED;
default:
break;
}
}
if( (!idle_data.clean_screen) && (idle_data.missedCalls > 0) )
{
switch( k->code )
{
case KCD_LEFT:
idle_data.missedCalls = 0;
timStop(gtimeMissedCall); //xsf add 2002.09.16
//bookPhonebookStart(idle_data.win,PhbkMissedCallsListNormal);
GetLMNrecord();//wufei add
return MFW_EVENT_CONSUMED;
//xsf add for press KCD_RIGHT in missed calls interface 2002.09.17
case KCD_RIGHT: /* main menu */
bookPhonebookStart(idle_data.win,PhbkMainMenu);
return MFW_EVENT_CONSUMED;
/* 2004/03/26 sunsj modify */
//case KCD_HUP: //hu binhao 2003-1-14
// return MFW_EVENT_CONSUMED; //hu binhao 2003-1-14
default:
break;
}
}
if( idle_data.search )
{
switch( idle_data.nm_status )
{
/*
glowing: add the following statement for processing
the NETWORK_LIMITED_SERVICE
*/
case NETWORK_LIMITED_SERVICE:
case NETWORK_NO_SERVICE :
case NETWORK_NO_PLMN_XXX_AVAIL:
switch( k->code )
{
case KCD_LEFT:
//xsf changed 2002.11.11 wake_up_rr();
nm_registration (NM_AUTOMATIC,0, 0);
winShow(idle_data.win);
break; //xsf add 11.11
case KCD_HUP:
idle_data.search=FALSE;
winShow(idle_data.win);
break;
/*CONQ 6436, MC allow entry of emergency number*/
case KCD_1:
case KCD_2:
case KCD_9:
memset(idle_data.dialshow_buf,'\0',sizeof(idle_data.dialshow_buf));
idle_data.dialshow_buf[0]=editControls[k->code];
idle_dialling_start(idle_data.win,NULL);
break;
default:
break;
}
return MFW_EVENT_CONSUMED;
default:
break;
}
}
if( smsidle_get_unread_sms_available()
&& (!idle_data.clean_screen)
&& idle_data.new_sms )
{
switch( k->code )
{
case KCD_LEFT:
if( g_pcsyncstatus )////this need add return if the phone is connect with pc,hxl
return 1;
// terminate the ringing
//Stopplayingdevice(); //xsf changed 12.31
StopPlayByReasonId(SMSPLAY);
//audio_StopSoundbyID( AUDIO_BUZZER, currentRinger );
timStop(gtimeMissedCall); //xsf add 2002.09.17
idle_data.new_sms = FALSE;
//windyidle_data.clean_screen = TRUE;
IdleReadsms(idle_data.win, (T_MFW_SMS_STAT*) &sms_idle_list_type);
//g_sms_list_counter=0;
//SmsRead_R_start(idle_data.win, (T_MFW_SMS_STAT*) &sms_idle_list_type);
return MFW_EVENT_CONSUMED;
//xsf add for press KCD_RIGHT in new SMS interface 2002.09.17
case KCD_RIGHT: /* main menu */
bookPhonebookStart(idle_data.win,PhbkMainMenu);
return MFW_EVENT_CONSUMED;
default:
break;
}
}
//this is for cell broadcast
if( (!idle_data.clean_screen) && idle_data.new_cbch )
{
switch( k->code )
{
case KCD_LEFT:
// terminate the ringing
audio_StopSoundbyID( AUDIO_BUZZER, currentRinger );
idle_data.new_cbch = FALSE;
idle_data.clean_screen = TRUE;
sms_cb_read_msg (ALL_MESSAGE);
return MFW_EVENT_CONSUMED;
//xsf add for press KCD_RIGHT in new cell broadcast interface 2002.09.17
case KCD_RIGHT: /* main menu */
bookPhonebookStart(idle_data.win,PhbkMainMenu);
return MFW_EVENT_CONSUMED;
default:
break;
}
}
#ifdef _MMS_ENABLE_
if( (!idle_data.clean_screen) && MMS_Get_NewMMS_Sum() > 0)
{
switch( k->code )
{
case KCD_LEFT:
// terminate the ringing
StopPlayByReasonId(SMSPLAY);
idle_data.clean_screen = TRUE;
MMS_Initialize_In_Idle();
MMS_Entry_Recv_Folder_In_Idle(idle_data.win);
return MFW_EVENT_CONSUMED;
case KCD_RIGHT: /* main menu */
bookPhonebookStart(idle_data.win,PhbkMainMenu);
return MFW_EVENT_CONSUMED;
default:
break;
}
}
#endif
switch( k->code )
{ //xsf add 2002.09.04
case KCD_VOLUP:
case KCD_VOLDOWN:
case KCD_F3:
MMI_TRACE_EVENT(("sunsj-------------short key volup"));
//if(FlashEnvironmentData.CurrentEnv != MUTE_ENV) //xsf disabled it 2003.04.29
/* 2004/04/12 sunsj modify for select outer wallpaper */
if( HallStatus() )/*2004/0408,talcon add*/
{
AdjustRingerVolumeIdle();
}
/* 2004/04/21 sunsj add */
else
{
LedLightnessAdjust(200);
timStart(gtVibator);
}
/* 2004/04/16 sunsj remove */
/*
else
{
if( FlashSettingData.OutBGI != 3 )
{
FlashSettingData.OutBGI++;
}
else
{
FlashSettingData.OutBGI = 0;
}
LedLightnessAdjust(200);
timStart(gtVibator);
drawOuterIdle();
}
*/
break;
case KCD_MNUUP:
if( idleIsFocussed() ) //xsf add for switch backgroung bmp with pressing KCD_OK in idle window 09.25
{
/*if(idle_data.edt)
{
TRACE_EVENT("CB menu down");
edtChar(idle_data.edt,ecUp);
}
else*/
//chenjun changed for user defined picture 2003-01-15
//if has pic1stid 7, else 6;
/* 2004/04/02 sunsj modify for menuup key control */
GetLMNrecord();
/*
if( flash_CheckStat(picIndex)>=0 )
{
if( FlashSettingData.BGI>=nBkgIcnAnim + nBkgIcnNormal+1 )
FlashSettingData.BGI = 0;//zy add no background bmp
else
FlashSettingData.BGI++;
}
else
{
if( FlashSettingData.BGI>=nBkgIcnAnim + nBkgIcnNormal )
FlashSettingData.BGI = 0;//zy add no background bmp
else
FlashSettingData.BGI++;
}
flash_settingwrite();
winShow(idle_data.win);
*/
}
break;
case KCD_MNUDOWN:
//hxl add------------------------------------------
//this need add return if the phone is connect with pc,hxl
if( g_pcsyncstatus )//when pc read sim phb,return
return 1;
//end of hxl add----------------------------------
/*
// Indicate that the volume settings menu has been invoked from the
// incoming call screen.
setSoundsReason(SettingVolume);
idle_data.info_win=bookMenuStart(idle_data.win, ringerVolumeSetting(), SettingVolume);
*/
/*
T_EntryMenuData EntryData;
EntryData.EntryMode=FromShortCutKey;
idle_data.phonebook_win=BookDynamicMenuStart(idle_data.win,&EntryData);
*/
/*if(idle_data.edt)
{
TRACE_EVENT("CB menu down");
edtChar(idle_data.edt,ecDown);
}
else*/
/* 2004/04/02 sunsj modify */
GetLRNrecord();
//idle_data.phonebook_win=bookPhonebookStart(idle_data.win,PhbkFromShortcutKey);
break;
#if 0
case KCD_F3:
{
bookPhonebookStart(idle_data.win,PhbkFromVoiceMemo);
}
#endif
break;
/*
case KCD_MNUDOWN:
if(idle_data.edt)
{
TRACE_EVENT("CB menu down");
edtChar(idle_data.edt,ecDown);
}
else
{
// Indicate that the volume settings menu has been invoked from the
// incoming call screen.
setSoundsReason(SettingVolume);
idle_data.info_win=bookMenuStart(idle_data.win, ringerVolumeSetting(), SettingVolume);
}
break;
break;
*/
case KCD_LEFT: /* main menu */
bookPhonebookStart(idle_data.win,PhbkMainMenu);//zy exchage the left and right softkey 04/08/02
break;
case KCD_CALL:
//bookPhonebookStart(idle_data.win,PhbkRedialListNormal);
GetLDNrecord();//wufei add
break;
case KCD_RIGHT: /* contacts (ADN) */
/*
* terminate any call even if no alerting was received
*/
//hxl add------------------------------------------
//this need add return if the phone is connect with pc,hxl
if( g_pcsyncstatus )//when pc read sim phb,return
return 1;
//end of hxl add----------------------------------
cm_force_disconnect();
call_data.ignore_disconnect=TRUE;//zy 2003-04-07 in idle avoid callwin didn't setup but callcmevent is run
// terminate the ringing
//Stopplayingdevice(); //xsf add 2002.08.12 MI18800000126
//audio_StopSoundbyID( AUDIO_BUZZER, currentRinger );
/*if(idle_data.edt)
{
statusCBCH(FALSE);
windowsUpdate();
}
else*/
bookPhonebookStart(idle_data.win,PhbkNormal);//zy exchage the left and right softkey 04/08/02
break;
case KCD_HUP:
/*
* terminate any call even if no alerting was received
*/
cm_force_disconnect();
call_data.ignore_disconnect=TRUE;//zy 2003-04-07 in idle avoid callwin didn't setup but callcmevent is run
// terminate the ringing
//Stopplayingdevice(); //xsf add 2002.08.12 MI18800000126
//audio_StopSoundbyID( AUDIO_BUZZER, currentRinger );
//for clean the DISPLAY ZONE 3
//information like "missed calls" and "receive messages"
//disappear if the user press the HUP key
/*if(idle_data.edt)
{
statusCBCH(FALSE);
windowsUpdate();
}
else*/
if( smsidle_get_unread_sms_available() && (!idle_data.clean_screen) && idle_data.new_sms ) //xsf add 2003.04.14
{
timStop(gtimeMissedCall);
idle_data.new_sms = FALSE;
/* 2004/03/26 sunsj add */
idle_data.missedCalls = 0;
}
idle_data.clean_screen = TRUE;
/* delete the message buffer plus the editor */
statusCBCH(FALSE);
windowsUpdate();
// set origin to 1 so we know pressed in idle screen->shut down
break;
// sbh - power key pressed in idle screen, we can shut down
case KCD_POWER:
TRACE_EVENT("glowing: idle_kbd_cb - KCD_POWER");
HUPKeyOrigin = 1;
break;
case KCD_MNULEFT:
/*2004/04/09,talcon add scenemode shortcut menu*/
bookMenuStart(idle_data.win,SceneMenuAttributes(),0);
#if 0
/*if(MorethanMaxPressKeyNum(12))
break;
if( idleIsFocussed())
{
if(scenenum<4)
{
scenenum++;
FlashEnvironmentData.CurrentEnv= scenenum;
//flash_environmentwrite();
}
else
{
scenenum=0;;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -