Пример #1
0
/*****************************************************************************
 * FUNCTION
 *  mmi_bt_avrcp_ct_main
 * DESCRIPTION
 *  This function is to
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_bt_avrcp_ct_main(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *gui_buffer;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_BT_AVCRP_CT_MAIN, NULL, mmi_bt_avrcp_ct_main, NULL);

    gui_buffer = GetCurrGuiBuffer(SCR_ID_BT_AVCRP_CT_MAIN);

    if (gui_buffer == NULL)
    {
        g_mmi_bt_avrcp_ct_curr_cmd = 0;
        srv_avrcp_set_cmd_frame_cnf_hdlr((AVRCP_SRV_CMD_CNF_CALLBACK)mmi_bt_avrcp_ct_cmd_confirm);
    }

    RegisterHighlightHandler(mmi_bt_avrcp_ct_main_list_highlight_hdlr);

    ShowCategory184Screen(
        STR_GLOBAL_OK, /* Title ID*/
        IMG_GLOBAL_OK, /* Title ICON */
        STR_GLOBAL_SELECT,
        IMG_GLOBAL_OK,
        STR_GLOBAL_BACK,
        IMG_GLOBAL_BACK,
        MMI_BT_AVRCP_CMD_NUM,
        mmi_bt_avrcp_ct_main_list_item,
        NULL,
        g_mmi_bt_avrcp_ct_curr_cmd,
        gui_buffer);

    /* register LSK, RSK hanlders */
    SetLeftSoftkeyFunction(mmi_bt_avrcp_ct_send_cmd, KEY_EVENT_UP);
    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);

    /* register left right arrow key handler */
    SetKeyHandler(mmi_bt_avrcp_ct_send_cmd, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
Пример #2
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_entry_address_list
 * DESCRIPTION
 *  Entry function for enter address menu
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_entry_address_list(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer = NULL;
    U8 highlight_index = 0;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_BRW_ENTER_ADDRESS, NULL, mmi_brw_entry_address_list, NULL);
    guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_ENTER_ADDRESS);

	/*it saves the current screen as the browser top most screen*/
	mmi_brw_set_top_screen_id();

    if (mmi_brw_address_list_get_hiliter_flag() && guiBuffer != NULL && guiBuffer[2] != 0)
    {
        guiBuffer = NULL;
        mmi_brw_address_list_set_hiliter_flag(MMI_FALSE);
        highlight_index = 1;
    }
    
	RegisterHighlightHandler(mmi_brw_address_list_scr_highlight_hdlr);

    ShowCategory184Screen(
        STR_ID_BRW_ENTER_ADDRESS,
        GetRootTitleIcon(SERVICES_WAP_MENU_ID),
        STR_GLOBAL_OK,
        0,
        STR_GLOBAL_BACK,
        0,
        g_brw_cntx.total_address_list_items + 1,
        mmi_brw_address_list_get_item,
        0,
        highlight_index,
        guiBuffer);


    SetRightSoftkeyFunction(mmi_brw_address_list_GoBackHistory, KEY_EVENT_UP);
    SetKeyHandler(mmi_brw_address_list_GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
Пример #3
0
void	jMms_template_entry_handler ()
{
	U8* guiBuffer; 

	EntryNewScreen (SCR_ID_MMS_TEMPLATE, NULL, jMms_template_entry_handler, NULL) ;
	guiBuffer = GetCurrGuiBuffer (SCR_ID_MMS_TEMPLATE) ;	
	//RegisterHighlightHandler (ExecuteCurrHiliteHandler) ;
	ShowCategory184Screen(STR_ID_MMS_TEXT, IMG_SMS_ENTRY_SCRN_CAPTION,
				        STR_GLOBAL_OK, IMG_GLOBAL_OK,
				        STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
				        10,
				        get_templates_item_data,
				        0, 0,
				        guiBuffer);
	
	SetLeftSoftkeyFunction (Select_hltd_template, KEY_EVENT_UP);
	SetRightSoftkeyFunction (GoBackHistory, KEY_EVENT_UP);
	//jmms_MmsEntryRegisterEndKeyHandler();
	//calling the same end key handle as adresssubmenu
	//SetKeyHandler(jmms_ComposeEndKeyHandler, KEY_END, KEY_EVENT_DOWN) ;
}
Пример #4
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_entry_service_inbox
 * DESCRIPTION
 *  Entry function for service inbox
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_entry_service_inbox(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer;
    U32 ret_code = 0;
    JC_UINT32 brw_total_msg_count = 0;
    JC_UINT32 brw_unread_msg_count = 0;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (NULL == g_mmi_brw_push_cntx.service_msg_list_p)
    {
        DisplayPopup(
            (PU8) GetString(STR_ID_BRW_PUSH_MEMORY_NOT_ENOUGH),
            IMG_GLOBAL_ERROR,
            1,
            UI_POPUP_NOTIFYDURATION_TIME,
            ERROR_TONE);
        return;
    }

    ret_code = mmi_brw_get_push_statistics(&brw_total_msg_count, &brw_unread_msg_count);
    if (ret_code != JC_OK)
    {
        PRINT_INFORMATION_2(MMI_TRACE_INFO, "%s %u", "PUSH- Inside Push Inbox", ret_code);
        ASSERT(0);
    }

    /* While reading the messsage from idle screen when user will press back.
       at that time while displying the message list local buffer should clear
       Vivek - 12082006 */
    mmi_brw_push_free_service_value_struct(&g_mmi_brw_push_cntx.current_service_message);

    g_mmi_brw_cntx.push_msg_rcvd_flag = MMI_FALSE;
    g_mmi_brw_push_cntx.push_delete_notification = MMI_FALSE;

    /* Display 'Empty' if no push messages are present */
    if ((brw_total_msg_count) == 0)
    {
        DisplayPopup(
            (PU8) GetString(STR_GLOBAL_EMPTY),
            IMG_GLOBAL_EMPTY,
            1,
            UI_POPUP_NOTIFYDURATION_TIME,
            EMPTY_LIST_TONE);

        /* Added by Vivek - 30july, 2006. If push inbox is open from the 'idle screen
           push indication'. After showing the empty pop up it should return to
           idle screen */
        if (SCR_ID_BRW_NEW_PUSH_MESSAGE_IND == GetCurrScrnId())
        {
            DeleteNHistory(1);
        }
    }
    else
    {
        EntryNewScreen(SCR_ID_BRW_SERVICE_INBOX, NULL, mmi_brw_entry_service_inbox, NULL);

        /* Added by Vivek - 11july, 2006. If push inbox is open from the 'idle screen
           push indication' */
        if (SCR_ID_BRW_NEW_PUSH_MESSAGE_IND == GetCurrScrnId())
        {
            DeleteNHistory(1);
        }

        guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_SERVICE_INBOX);

        mmi_brw_create_push_msg_list();

        ShowCategory184Screen(
            STR_ID_BRW_SERVICE_INBOX,
            GetRootTitleIcon(SERVICES_WAP_MENU_ID),
            STR_GLOBAL_OPTIONS,
            0,
            STR_GLOBAL_BACK,
            0,
            brw_total_msg_count,
            mmi_brw_service_inbox_list_get_item,
            0,
            0,
            guiBuffer);

        SetLeftSoftkeyFunction(mmi_brw_highlighted_push_msg, KEY_EVENT_UP);
        SetKeyHandler(mmi_brw_highlighted_push_msg, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);

        SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
        SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
    }
}