vorrei sapere come cancellare un messaggio in entrata, per ora ho solamente scritto una parte di codice che si accorge quando nella inbox entra un nuovo messaggio:
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);
}
}come posso implementare questo codice affinchè cancelli i messaggi in ingresso?
Grazie e tutti

Aiuto











Pubblicità