ipsservices/ipssosplugin/src/ipsplgsmtpoperation.cpp
changeset 30 759dc5235cdb
parent 23 2dc6caa42ec3
child 68 83cc6bae1de8
equal deleted inserted replaced
27:9ba4404ef423 30:759dc5235cdb
   368             {
   368             {
   369             // chage suspended flag to waiting
   369             // chage suspended flag to waiting
   370             // is it safe to change flag from suspended to waiting?
   370             // is it safe to change flag from suspended to waiting?
   371             if ( sendState == KMsvSendStateSuspended )
   371             if ( sendState == KMsvSendStateSuspended )
   372                 {
   372                 {
       
   373                 // <qmail> remove activeschedulerwait
   373                 CMsvEntry* cEntry = CMsvEntry::NewL(
   374                 CMsvEntry* cEntry = CMsvEntry::NewL(
   374                     iMsvSession, entry.Id(), TMsvSelectionOrdering() );
   375                     iMsvSession, entry.Id(), TMsvSelectionOrdering() );
   375                 CleanupStack::PushL( cEntry );
   376                 CleanupStack::PushL( cEntry );
   376                 CIpsPlgOperationWait* wait = CIpsPlgOperationWait::NewLC( );
       
   377                 entry.SetSendingState( KMsvSendStateWaiting );
   377                 entry.SetSendingState( KMsvSendStateWaiting );
   378                 cEntry->ChangeL( entry, wait->iStatus );
   378                 cEntry->ChangeL( entry );
   379                 wait->Start();
   379                 CleanupStack::PopAndDestroy( cEntry ); // cEntry
   380                 CleanupStack::PopAndDestroy(2, cEntry ); // wait, cEntry
   380                 // </qmail>
   381                 }
   381                 }
   382             // add to send list
   382             // add to send list
   383             iSelection->AppendL( entry.Id() );
   383             iSelection->AppendL( entry.Id() );
   384             ++retValue;
   384             ++retValue;
   385             }
   385             }