Пример #1
0
/*!
 * \brief Deletes a message emergenty(no message passing), ex. when press end key: 1. delete message 2. delete checksum 3. delete JSR entry
 *
 * \param msgId The ID of the message to delete
 *****************************************************************************/
MSF_BOOL meaDeleteMsgEmergency(MmsMsgId msgId)
{
    MSF_LOG_MSG_ARGS((MSF_LOG_DETAIL_MEDIUM, MSF_MODID_MEA, MADEL_DF820EA1858BB3966950435B6E4E90B9, "%s(%d): meaDeleteMsgEmergency\n", __FILE__, __LINE__));

    if (msgId == 0)
    {
        MSF_LOG_MSG_OFF((MSF_LOG_DETAIL_HIGH, MSF_MODID_MEA,
            MADEL_FB9BD416D8EF1E1CC6496BE6EEF032FD, "%s(%d): Removal of non-existent message!\n", __FILE__, __LINE__));
	return FALSE;
    }
    else
    {
        if(fldrMgrDeleteMessage(msgId) != MMS_RESULT_OK)
        {
            return FALSE;
        }

#ifdef MMS_FILE_PROTECT_SUPPORT
        delChkSumFile(msgId);
#endif        
#ifdef MMS_SUPPORT
        if(mmcIsJSRMsg(msgId))
        {
            mmcRemoveMsgIdFromJSRIndex(msgId);
        }
#endif
    }
    return TRUE;
}
Пример #2
0
/*!
 * \brief Deletes a message silently: 1. update folder 2. delete checksum 3. delete JSR entry
 *
 * \param msgId The ID of the message to delete
 *****************************************************************************/
MSF_BOOL meaDeleteMsgSilent(MmsMsgId msgId)
{
    MSF_LOG_MSG_ARGS((MSF_LOG_DETAIL_MEDIUM, MSF_MODID_MEA, MADEL_5F2AD780F0A72C3176E00903FC875B46, "%s(%d): meaDeleteMsgSilent\n", __FILE__, __LINE__));

    if (msgId == 0)
    {
        MSF_LOG_MSG_OFF((MSF_LOG_DETAIL_HIGH, MSF_MODID_MEA,
            MADEL_FB9BD416D8EF1E1CC6496BE6EEF032FD, "%s(%d): Removal of non-existent message!\n", __FILE__, __LINE__));
	return FALSE;
    }
    else
    {
        if(fldrMgrDeleteMessage(msgId) != MMS_RESULT_OK)
        {
            return FALSE;
        }

#ifdef MMS_FILE_PROTECT_SUPPORT
        delChkSumFile(msgId);
#endif        
#ifdef MMS_SUPPORT
        if(mmcIsJSRMsg(msgId))
        {
            mmcRemoveMsgIdFromJSRIndex(msgId);
        }
#endif
        (void)MEA_SIGNAL_SENDTO_I(MEA_MH_FSM, MEA_SIG_MH_UPDATE_FOLDER, MEA_FOLDER_NONE);
    }
    return TRUE;
}
Пример #3
0
/*!
 * \brief Creates the GUI for the message property dialog.
 *
 * \param propItem The current message properties.
 * \param
 * \return TRUE if the operation was successful, otherwise FALSE.
 *****************************************************************************/
MSF_BOOL meaCreateMvPropView(MmsMsgId msgId, MSF_BOOL appActivated)
{
    ctk_screen_handle	scrid;
    ctk_string_id       titleid;
    kal_uint8 			*text;

    if (0 != meaMvPropView.formHandle)
    {
        return FALSE;
    }
    memset(&meaMvPropView, 0, sizeof(MeaMvPropView));

    text = (kal_uint8 *)meaCreateMsgPropText(msgId);

    /* Create widow */
    titleid = (appActivated == TRUE) ? MEA_STR_ID_VIEW_TITLE : MEA_STR_ID_PROPERTIES;
    meaMvPropView.formHandle = HDIa_widgetExtCreateTextViewSeparator(MSF_MODID_MEA, text, titleid , 0);
    MEA_FREE(text);
    meaAddWidgetList(meaMvPropView.formHandle);

    /* Set Key */
    scrid = HDIa_widgetCtkGetScreenHandle(meaMvPropView.formHandle);
    if (appActivated == TRUE)
    {
        ctk_screen_addRSK_UA(scrid, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, NULL, meaMvPropViewGoBack, KAL_TRUE);
        ctk_screen_add_key_UA(scrid, KEY_LEFT_ARROW, NULL, meaMvPropViewGoBack, KAL_TRUE);
        ctk_screen_addLSK_UA(scrid, SMA_STR_ID_MENU_PLAY, IMG_GLOBAL_OK, NULL, meaMvPropViewGoNext, KAL_TRUE);
        //ctk_screen_add_key_UA(scrid, KEY_LEFT_ARROW, NULL, meaMvPropViewGoNext, KAL_TRUE);
    }
    else
    {
#if defined(__UNIFIED_MSG_SUPPORT__) && !defined(__UNIFIED_MESSAGE_LIST_OPTION_SUPPORT__)  /* For delete option */
        if (mmcIsJSRMsg(msgId))
        {
            ctk_screen_addLSK_UA(scrid, MEA_STR_ID_OPTIONS, IMG_GLOBAL_OK, NULL, handleMvPropOptionAction, KAL_TRUE);
        }
#endif
        ctk_screen_addRSK_UA(scrid, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, NULL, meaMvPropViewOnlyGoBack, KAL_TRUE);
        ctk_screen_add_key_UA(scrid, KEY_LEFT_ARROW, NULL, meaMvPropViewOnlyGoBack, KAL_TRUE);
    }
    return meaDisplayWindow(meaMvPropView.formHandle, meaGetPosLeftTop());
}
Пример #4
0
void meaDeleteMsg(MmsMsgId msgId)
{
    if (msgId == 0)
    {
        MSF_LOG_MSG_OFF((MSF_LOG_DETAIL_HIGH, MSF_MODID_MEA,
            MADEL_FB9BD416D8EF1E1CC6496BE6EEF032FD, "%s(%d): Removal of non-existent message!\n", __FILE__, __LINE__));
    }
    else
    {
        /* Delete message without asking */
        MMSif_deleteMessage(MSF_MODID_MEA, msgId);
#ifdef MMS_FILE_PROTECT_SUPPORT
	delChkSumFile(msgId);
#endif        
#ifdef MMS_SUPPORT
        if(mmcIsJSRMsg(msgId))
		{
            mmcRemoveMsgIdFromJSRIndex(msgId);
		}
#endif
    }
}
Пример #5
0
/*!
 * \brief Creates a navigation menu for the DR/RR property window.
 *
 * \param folder The folder that i currently active.
 * \param activeMsgId Message ID of the active message
 * \param msgType The type of the active message. See #MmsFileType.
 * \param forwardLock TRUE if the current message has forward lock, otherwise
 *                    FALSE.
 * \return TRUE if the operation was successful, otherwise FALSE.
 *****************************************************************************/
MSF_BOOL meaCreateMvPropNavMenu(MeaFolder folder, MmsMsgId activeMsgId, MmsFileType msgType, MSF_BOOL forwardLock)
{
    extern MSF_BOOL mmcIsJSRMsg(MSF_UINT32 msgId);

    /* Create navigation menu */
    if (!meaCreatePropNavMenu(0, navMenuSignalConverter))
    {
        meaRemovePropNavMenu();
        return FALSE;
    }
    else if (!createMenuItems(folder, activeMsgId, msgType, forwardLock, mmcIsJSRMsg(activeMsgId)))
    {
        meaRemovePropNavMenu();
        return FALSE;
    }
    else if (!meaShowPropNavMenu())
    {
        meaRemovePropNavMenu();
        return FALSE;
    }
    return TRUE;
}