}
// Set Msg FW Ready Flag
- MsgSettingSetBool(VCONFKEY_MSG_SERVER_READY, true);
+ if(MsgSettingSetBool(VCONFKEY_MSG_SERVER_READY, true) != MSG_SUCCESS)
+ MSG_DEBUG("MsgSettingSetBool FAIL : VCONFKEY_MSG_SERVER_READY");
MSG_DEBUG("### VCONFKEY_MSG_SERVER_READY ###");
if (plg == NULL) {
MSG_DEBUG("===========START MESSAGING FRAMEWORK==========");
// Reset message server ready flag
- MsgSettingSetBool(VCONFKEY_MSG_SERVER_READY, false);
+ if(MsgSettingSetBool(VCONFKEY_MSG_SERVER_READY, false) != MSG_SUCCESS)
+ MSG_DEBUG("MsgSettingSetBool FAIL: VCONFKEY_MSG_SERVER_READY");
// Connect to DB
// MsgStoConnectDB();
MSG_DEBUG("JAVA MMS PDU filepath:%s", pReqInfo->msgInfo.msgData);
// submit request
- plg->submitReq(pReqInfo);
+ err = plg->submitReq(pReqInfo);
if(err != MSG_SUCCESS)
{
}
if(pCbInfo->bsave)
- MsgSettingSetBool(CB_SAVE, pCbInfo->bsave);
+ if(MsgSettingSetBool(CB_SAVE, pCbInfo->bsave) != MSG_SUCCESS)
+ MSG_DEBUG("MsgSettingSetBool FAIL: CB_SAVE");
newCBMsgCBList.push_back(*pCbInfo);
{
int err = MM_ERROR_NONE;
- /* Setting fade in,out */
- err = mm_player_set_attribute(hPlayerHandle, NULL, "sound_priority", 2, NULL);
-
- if (err != MM_ERROR_NONE) {
- MSG_DEBUG("error setting the profile attr");
- return err;
- }
-
- /* Setting the Volume */
+ /* Setting fade in/out, Volume */
err = mm_player_set_attribute(hPlayerHandle, NULL, "sound_volume_type", MM_SOUND_VOLUME_TYPE_NOTIFICATION,
- "profile_uri", pMsgToneFilePath, strlen(pMsgToneFilePath), NULL);
+ "profile_uri", pMsgToneFilePath, strlen(pMsgToneFilePath),
+ "sound_priority", 2, NULL);
if (err != MM_ERROR_NONE) {
MSG_DEBUG("error setting the profile attr");
if (pMsgBody->body.pMultipart == NULL) {
/* first multipart */
pMsgBody->body.pMultipart = pMultipart;
- pLastMultipart = pMultipart;
- pPreMultipart = NULL;
- } else if (pLastMultipart != NULL) {
- pPreMultipart = pLastMultipart;
+ }
- pLastMultipart->pNext = pMultipart;
- pLastMultipart = pMultipart;
+ if (pLastMultipart == NULL) {
+ /* first multipart */
+ pLastMultipart = pMultipart;
+ pPreMultipart = NULL;
+ } else {
+ pLastMultipart->pNext = pMultipart;
+ pLastMultipart = pMultipart;
pPreMultipart = pMultipart;
}
}
}
- remove(szTempFilePath);
+ if(remove(szTempFilePath) != 0)
+ MSG_DEBUG("remove fail");
isFileCreated = false;
if (__MmsBinaryDecodeMovePointer(pFile, offset + bodyLength, totalLength) == false)
}
if(!bSave)
- MsgSettingSetBool(CB_SAVE, bSave);
+ if(MsgSettingSetBool(CB_SAVE, bSave) != MSG_SUCCESS)
+ MSG_DEBUG("MsgSettingSetBool FAIL: CB_SAVE");
// Storage change Message CB list
std::list<MSG_STORAGE_CHANGE_CB_ITEM_S>::iterator it8 = storageChangeCBList.begin();
VDATA_TRACE_END
return NULL;
}
- _VQPEncode( pRes, pEncode );
+ if(pEncode)
+ _VQPEncode( pRes, pEncode );
VFREE(pEncode);
}
else if(enc & pEncList[1].flag ) {
if (encoded == NULL) {
VDATA_TRACE( "vcard_encode() failed\n");
VFREE(pTemp);
+ VFREE(pVMsgRes);
VDATA_TRACE_END
return NULL;
}
VDATA_TRACE("pTemp : %s", encoded);
VFREE( pTemp );
VFREE( encoded );
+ VFREE(pVMsgRes);
break;
}
else
VDATA_TRACE_END
return NULL;
}
- _VQPEncode( pRes, pEncode );
+ if(pEncode)
+ _VQPEncode( pRes, pEncode );
VFREE(pEncode);
}
else if(enc & pMsgEncList[1].flag )