Hi all,
I want to learn to cancel a message in inbox.
This is my code
I Know that this code is very poor.Code:case EMsvEntriesCreated: { if(*(static_cast<TMsvId*>(aArg2)) == KMsvGlobalInBoxIndexEntryId) { CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1); iNewMessageId = entries->At(0); } break; } case EMsvEntriesChanged: if (aArg2 && *(static_cast<TMsvId*>(aArg2)) == KMsvGlobalInBoxIndexEntryId) { CMsvEntrySelection* entries = static_cast<CMsvEntrySelection*>(aArg1); if( iNewMessageId == entries->At(0) ) { const TMsvId id = entries->At(0); TInt uid = id; CMsvEntry* msvEntry = iSession->GetEntryL(id); //Accesses the entry with the specified ID. CleanupStack:: PushL(msvEntry); CleanupStack::PopAndDestroy(msvEntry); } }
What methods i need to use and add on my code?
thank you very much





