src/SmsSocketEngine.cpp
void CSmsSender::RunL()
    {
    if (iStatus == KErrNone)
        {
        // push first number from the numbers stack
        iNumbers->Delete(0);
        
        if (iNumbers->Count())
            {
            // send message to the next recepient
            DoSendSmsMessageL((*iNumbers)[0]);
            return;
            }
        else
            {
            iObserver.MessageSentComplete();
            }
        }
    else
        {
        iObserver.HandleError(iStatus.Int());
        }
    
    // cleanup
    delete iNumbers;
    iNumbers = NULL;
    delete iSmsMessage;
    iSmsMessage = NULL;
    iWriteSocket.Close();
    }
// ----------------------------------------------------------------------------
// CSmsSender::RunL()
// Handles an active objects request completion event.
// ----------------------------------------------------------------------------
//

:RunL()
Handles an active objects request completion event.
: RunL () Handles an active objects request completion event .
void CSmsSender::RunL()
    {
    if (iStatus == KErrNone)
        {
        iNumbers->Delete(0);
        if (iNumbers->Count())
            {
            DoSendSmsMessageL((*iNumbers)[0]);
            return;
            }
        else
            {
            iObserver.MessageSentComplete();
            }
        }
    else
        {
        iObserver.HandleError(iStatus.Int());
        }
    delete iNumbers;
    iNumbers = NULL;
    delete iSmsMessage;
    iSmsMessage = NULL;
    iWriteSocket.Close();
    }
void CSmsSender :: RunL ( ) { if ( iStatus == KErrNone ) { iNumbers -> Delete ( 0 ) ; if ( iNumbers -> Count ( ) ) { DoSendSmsMessageL ( ( * iNumbers ) [ 0 ] ) ; return ; } else { iObserver . MessageSentComplete ( ) ; } } else { iObserver . HandleError ( iStatus . Int ( ) ) ; } delete iNumbers ; iNumbers = NULL ; delete iSmsMessage ; iSmsMessage = NULL ; iWriteSocket . Close ( ) ; }
CSmsSender::RunL()
Handles an active objects request completion event.
CSmsSender :: RunL () Handles an active objects request completion event .
// push first number from the numbers stack
 // send message to the next recepient
 // cleanup
