⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wgui_categories_cm.c

📁 The font library converting tool MCT mainly introduces the process of the font formats to give us a
💻 C
📖 第 1 页 / 共 5 页
字号:
	on_idle_screen=0;
//PMT VIKAS START 20051202
	set_on_idlescreen(0);
//PMT VIKAS END 20051202
	leave_idle_screen();
	enactive_main_lcd_update_date_time();
	enable_softkey_background();
	register_hide_status_icon_bar(1,MMI_dummy_function);
	register_hide_status_icon_bar(0,MMI_dummy_function);
#endif
	gdi_layer_unlock_frame_buffer();


#if ( (defined  __MMI_WGUI_CSK_ENABLE__) && defined (__MMI_TOUCH_SCREEN__))
	#if defined (__MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__)
	dialing_keypad_call_handler = NULL;
	dialing_keypad_phonebook_handler = NULL;//011006 dialing screen Calvin
	#else
	ResetCenterSoftkey();
	#endif
#endif

}/* end of ExitCategory16Screen */


/*****************************************************************************
* FUNCTION
*  GetCategory16History
*
* DESCRIPTION
*   Get the category16 screen history
*
* PARAMETERS
*  U8* 			IN/OUT	history_buffer
*
* RETURNS
*  U8*
*
* GLOBALS AFFECTED
* 
*****************************************************************************/
U8* GetCategory16History(U8 * history_buffer)
{
	get_dialer_inputbox_category_history(MMI_CATEGORY16_ID, history_buffer);
	return (history_buffer);
}/* end of GetCategory16History */


/*****************************************************************************
* FUNCTION
*  GetCategory16HistorySize
*
* DESCRIPTION
*   Get the category16 screen history size
*
* PARAMETERS
*  void
*
* RETURNS
*  S32
*
* GLOBALS AFFECTED
* 
*****************************************************************************/
S32 GetCategory16HistorySize(void)
{
	return sizeof (dialer_inputbox_category_history);
}/* end of GetCategory16HistorySize */


/*****************************************************************************
* FUNCTION
*	 ShowCategory17Screen()
* DESCRIPTION
*   Show category ShowCategory17Screen screen.
* PARAMETERS
*	 title 							IN		title string id
*	 title_icon						IN		title image id
*	 left_softkey					IN		lsk string id
*	 left_softkey_icon			IN		lsk image id
*	 right_softkey					IN		rsk string id
*	 right_softkey_icon			IN		rsk image id
*	 NotificationStringId		IN		notification string,	notification string
*	 NameOrNumber					IN 	name or number text,	name or number text
*	 IP_Number						IN		
*	 image_id						IN		resource to be displayed (ID)
*	 video_id						IN		resource to be displayed (ID)
*	 res_filename					IN		resource to be displayed (file)
*	 repeat_count					IN		repeat count, used for video only, 0 means infiniate loop 
*	 is_visual_update				IN		update to LCM or not
*	 is_play_audio					IN		play video's audio or not, this will determine to enable video's audio or not
*	 is_play_when_start			IN		play audio when start 
*	 history_buffer				IN		history buffer
* RETURNS
*   void
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
void ShowCategory17Screen(	U16 	title_id,
									U16 	left_softkey,	
									U16 	left_softkey_icon,
									U16 	right_softkey,
									U16 	right_softkey_icon,
									U16 	NotificationStringId, 
									PU8 	NameOrNumber,
									PU8 	IP_Number,
									U16 	image_id,
									U16 	video_id,
									PS8 	video_filename,
									U16 	repeat_count,
									BOOL 	is_visaul_update,
									BOOL 	is_play_audio,
									BOOL	is_play_when_start,
									PU8 	history_buffer)
{
   /*----------------------------------------------------------------*/
   /* Code Body                                                      */
   /*----------------------------------------------------------------*/	
	 ShowMOMTCallScreen(	title_id,
								left_softkey,
								left_softkey_icon,
								right_softkey,
								right_softkey_icon,
								NotificationStringId,
								NameOrNumber,
								IP_Number,
								image_id,
								video_id,
								video_filename,
								CATEGORY_RES_TYPE_VIDEO,
								repeat_count, 					/* video only. 0 means infinite loop */
								is_visaul_update,				/* video only. update to LCM */
								is_play_audio,					/* video only. play video's audio */
								is_play_when_start,
								history_buffer);
	 
}/* end of ShowCategory17Screen */


/*****************************************************************************
* FUNCTION
*	 RedrawCategory17Screen()
* DESCRIPTION
*   Redraw Category 17 screen.
* PARAMETERS
*   void
* RETURNS
*   void
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
void RedrawCategory17Screen(void)
{
   /*----------------------------------------------------------------*/
   /* Code Body                                                      */
   /*----------------------------------------------------------------*/	
	RedrawMOMTCallScreen();
}/* end of ShowCategory17Screen */


/*****************************************************************************
* FUNCTION
*	 ExitCategory17Screen()
* DESCRIPTION
*   Exit Category 17 screen.
* PARAMETERS
*   void
* RETURNS
*   void
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
void ExitCategory17Screen(void)
{
   /*----------------------------------------------------------------*/
   /* Code Body                                                      */
   /*----------------------------------------------------------------*/	
	ExitMOMTCallScreen();
}/* end of ExitCategory17Screen */


/*****************************************************************************
* FUNCTION
*	 StopCategory17Video()
* DESCRIPTION
*   Stop Category 17 screen's video clip.
* PARAMETERS
*   void
* RETURNS
*   void
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
void StopCategory17Video(void)
{
   /*----------------------------------------------------------------*/
   /* Code Body                                                      */
   /*----------------------------------------------------------------*/
	#ifdef __MMI_VIDEO_PLAYER__
		if(cat_momt_is_video_open && cat_momt_is_video_play)
		{
			/* stop video playing */
			mdi_video_ply_stop();
			cat_momt_is_video_play = FALSE;
		}
	#endif /* __MMI_VIDEO_PLAYER__ */
}/* end of StopCategory17Video */


/*****************************************************************************
* FUNCTION
*	 DisableCategory17Audio()
* DESCRIPTION
*   Disable Category 17 screen video' audio
* PARAMETERS
*   void
* RETURNS
*   void
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
void DisableCategory17Audio(void)
{
   /*----------------------------------------------------------------*/
   /* Code Body                                                      */
   /*----------------------------------------------------------------*/
   #ifdef __MMI_VIDEO_PLAYER__
	   if(cat_momt_is_video_open && cat_momt_is_video_play)
	   {
	   	 mdi_audio_set_mute(MDI_VOLUME_MEDIA, TRUE);
	   	 cat_momt_is_aud_muted = TRUE;
	   }
	#endif /* __MMI_VIDEO_PLAYER__ */
}



/*****************************************************************************
* FUNCTION
*	 EnableCategory17Audio()
* DESCRIPTION
*   Enable Category 17 screen video' audio
* PARAMETERS
*   level 	IN			audio level
* RETURNS
*   void
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
void EnableCategory17Audio(void)
{
   /*----------------------------------------------------------------*/
   /* Code Body                                                      */
   /*----------------------------------------------------------------*/
   #ifdef __MMI_VIDEO_PLAYER__   
	   if(cat_momt_is_video_open && cat_momt_is_video_play)
	   {
	   	mdi_audio_set_mute(MDI_VOLUME_MEDIA, FALSE);
	   	cat_momt_is_aud_muted = FALSE;
	   }
	#endif /* __MMI_VIDEO_PLAYER__ */
}


/*****************************************************************************
* FUNCTION
*	 DisableCategory17VideoUpdate()
* DESCRIPTION
*   Disable update video to LCM
* PARAMETERS
*   void
* RETURNS
*   void
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
void DisableCategory17VideoUpdate(void)
{
   /*----------------------------------------------------------------*/
   /* Code Body                                                      */
   /*----------------------------------------------------------------*/
   #ifdef __MMI_VIDEO__
   	if(cat_momt_is_video_open && cat_momt_is_video_play)
	   {
	   	mdi_video_ply_set_lcm_update(FALSE);
	   }
	#endif /* __MMI_VIDEO_PLAYER__ */
}


/*****************************************************************************
* FUNCTION
*	 EnableCategory17VideoUpdate()
* DESCRIPTION
*   Enable update video to LCM
* PARAMETERS
*   void
* RETURNS
*   void
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
void EnableCategory17VideoUpdate(void)
{
   /*----------------------------------------------------------------*/
   /* Code Body                                                      */
   /*----------------------------------------------------------------*/
   #ifdef __MMI_VIDEO_PLAYER__   
	   if(cat_momt_is_video_open && cat_momt_is_video_play)
	   {
	   	mdi_video_ply_set_lcm_update(TRUE);
	   }
	#endif /* __MMI_VIDEO_PLAYER__ */
}



/*****************************************************************************
* FUNCTION
*	 IsCategory17VideoValid()
* DESCRIPTION
*   Call this function to check if Cat17 show video success or not 
* PARAMETERS
*   void
* RETURNS
*   BOOL
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
MMI_BOOL IsCategory17VideoValid(void)
{
   /*----------------------------------------------------------------*/
   /* Code Body                                                      */
   /*----------------------------------------------------------------*/
   #ifdef __MMI_VIDEO_PLAYER__   
	   if(cat_momt_is_video_open && cat_momt_is_video_play)
	   {
	   	return MMI_TRUE;
	   }
	#endif /* __MMI_VIDEO_PLAYER__ */

	 return MMI_FALSE;
}





/*****************************************************************************
* FUNCTION
*	 ShowCategory18Screen()
* DESCRIPTION
*   Show Cateogry 18, for MO MT call. for call disconnecting screen
* PARAMETERS
*	 title 							IN		title string id
*	 title_icon						IN		title image id
*	 left_softkey					IN		lsk string id
*	 left_softkey_icon			IN		lsk image id
*	 right_softkey					IN		rsk string id
*	 right_softkey_icon			IN		rsk image id
*	 NotificationStringId		IN		notification string,	notification string
*	 NameOrNumber					IN 	name or number text,	name or number text
*	 IP_Number						IN		
*	 image_id						IN		resource to be displayed (ID)
*	 image_filename				IN		resource to be displayed (file)
*	 history_buffer				IN		history buffer
* RETURNS
*   void
* GLOBALS AFFECTED
*   nil
*****************************************************************************/
void ShowCategory18Screen(	U16 title_id,
									U16 left_softkey,
									U16 left_softkey_icon,
									U16 right_softkey,
									U16 right_softkey_icon,
									U16 NotificationStringId,
									PU8 NameOrNumber,
									PU8 IP_Number,
									U16 image_id,
									PS8 image_filename,
									MMI_BOOL isDisconnecting,
									PU8 history_buffer)
{
     isCallDisconnecting = isDisconnecting;

	 ShowMOMTCallScreen(	title_id,
								left_softkey,
								left_softkey_icon,
								right_softkey,
								right_softkey_icon,
								NotificationStringId,
								NameOrNumber,
								IP_Number,
								image_id,
								0,
								image_filename,
								CATEGORY_RES_TYPE_IMAGE,
								0, 				/* video only. 0 means infinite loop */
								FALSE,			/* video only. update to LCM */
								FALSE,			/* video only. eanble video's audio */
								FALSE,			/* video only, play video sound when start */
								history_buffer);
}
 

/*****************************************************************************

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -