Beispiel #1
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_recent_page_host_pre_entry_options
 * DESCRIPTION
 *  Function to get the highlighted item and call appropriate function.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_recent_page_host_pre_entry_options(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    g_brw_cntx.index_highlighted_item = GetHighlightedItem();
    mmi_brw_recent_page_host_entry_options();
}
Beispiel #2
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_highlighted_push_msg
 * DESCRIPTION
 *  Function to get the highlighted push message and call appropriate function.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_highlighted_push_msg(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    g_mmi_brw_push_cntx.curr_hilited_item_index = (U8) GetHighlightedItem();
    mmi_brw_entry_service_inbox_options();
}
Beispiel #3
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_stored_page_pre_entry_options
 * DESCRIPTION
 *  Function to get the highlighted item and call appropriate function.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_stored_page_pre_entry_options(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    g_brw_cntx.index_highlighted_item = GetHighlightedItem();
	mmi_brw_stored_page_get_saved_page_req(g_brw_cntx.index_highlighted_item);
}
Beispiel #4
0
void Select_hltd_template()
{
	U16 hltd_index=0;
	JC_CHAR *pStrItem;
	JC_INT32 len = 0;
	JC_CHAR *psInputValue = JC_NULL ;
	JC_UINT32 uiStrLen = 0 ;
	JC_RETCODE rCode = JC_OK;

	jc_tcsncat(TEST1,TEST2,0) ;
	
	hltd_index =(U8) GetHighlightedItem();
		
	len = jc_wstrlen(GetString(g_str_templates[hltd_index].strId));
	pStrItem = (JC_CHAR*) jdd_MemAlloc((len + 1), sizeof(JC_CHAR));
	jc_wstrcpy(pStrItem, (UINT16*)GetString(g_str_templates[hltd_index].strId));
	
	//mmi_trace(1,"Select_hltd_template [%s]",GetString(g_str_templates[hltd_index].strId)) ;
	//mmi_trace(1,"Select_hltd_template [%s]",pStrItem) ;
	//mmi_trace(1,"Select_hltd_template [%d]",len) ;
	
	if(g_pstJMmsAppInfo->pActiveTextBuffer)
	{
		mmi_trace(1, " length in if  [%d]", jc_tcslen(g_pstJMmsAppInfo->pcInputBuff));
		jc_tcsncpy((JC_CHAR*)g_pstJMmsAppInfo->pcInputBuff,  
		 				(JC_CHAR*)g_pstJMmsAppInfo->pActiveTextBuffer,
		 				jMMS_MAX_INPUT_SIZE) ;				
	}
	mmi_trace(1, " length in afer if  [%d]", jc_tcslen(g_pstJMmsAppInfo->pcInputBuff));	
		
	uiStrLen = jMMS_MAX_INPUT_SIZE - jc_tcslen(g_pstJMmsAppInfo->pcInputBuff);
	
	jc_tcsncat((JC_CHAR*)g_pstJMmsAppInfo->pcInputBuff,(JC_CHAR*)pStrItem,\
				uiStrLen) ;
	
	mmi_trace(1, " length in sdgsd if  [%d], [%d]", jc_tcslen(g_pstJMmsAppInfo->pcInputBuff),uiStrLen);
	jMMS_MMIGetInputBoxValue (&psInputValue); 

	if(psInputValue)
	{
	   rCode =jmms_AddTextMediaToCurrSlide(psInputValue);
	}
	//raj change mem leak
	jdd_MemFree(pStrItem);
      if(rCode == JC_OK)
        {
	DeleteNHistory(1);	
	GoBackHistory();
        }
	
}
Beispiel #5
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_recent_page_pre_entry_options
 * DESCRIPTION
 *  Function to get the highlighted item and call appropriate function.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_recent_page_pre_entry_options(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    g_brw_cntx.index_highlighted_item = GetHighlightedItem();

	mmi_brw_recent_pages_get_recent_page_req(
			g_brw_cntx.recent_page_list[g_brw_cntx.index_highlighted_item].actual_index);
}
Rocket::Core::Element* RocketMenuPlugin::GetHighlightedItem(Rocket::Core::Context *context, const Rocket::Core::String& docId) {
    Rocket::Core::ElementDocument *doc = context->GetDocument(docId);
    return doc ? GetHighlightedItem(doc) : NULL;
}