i have to developed an application that also have to delete / block outgoing message. below is my written code. but still unable to stop the outgoing SMS.
please some one help regarding this issue.
else if (aArg2 && *(static_cast<TMsvId*>(aArg2)) == KMsvGlobalOutBoxIndexEntryId )
CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1);
for(TInt i = 0; i < entries->Count(); i++)
TMsvId EntryId = entries->At(i);
// Set entry context to the new message
if ( iMsvEntry->Entry().iMtm != KUidMsgTypeSMS || !iMsvEntry->Entry().Complete() )
// change state to sent, does not have effect.
TMsvEntry entry = iMsvEntry->Entry();
entry.SetSendingState( KMsvSendStateSent );
thanx in advance.