phoneapp/phoneuivoipextension/src/cphonevoiperrormessageshandler.cpp
changeset 22 6bb1b21d2484
parent 21 92ab7f8d0eab
child 51 f39ed5e045e0
equal deleted inserted replaced
21:92ab7f8d0eab 22:6bb1b21d2484
    18 // INCLUDES
    18 // INCLUDES
    19 
    19 
    20 #include <ccpdefs.h>
    20 #include <ccpdefs.h>
    21 #include <mpeengineinfo.h>
    21 #include <mpeengineinfo.h>
    22 #include <StringLoader.h>
    22 #include <StringLoader.h>
    23 
       
    24 // <-- QT PHONE START -->
       
    25 //#include <ccherror.h>
       
    26 // <-- QT PHONE END -->
       
    27 
       
    28 #include <spsettings.h>
    23 #include <spsettings.h>
    29 #include <spentry.h>
    24 #include <spentry.h>
    30 
       
    31 #include <telephonydomainpskeys.h>
    25 #include <telephonydomainpskeys.h>
    32 #include <UikonInternalPSKeys.h>
    26 #include <UikonInternalPSKeys.h>
    33 #include <aknnotedialog.h>
    27 #include <aknnotedialog.h>
    34 
       
    35 #include "cphonevoiperrormessageshandler.h"
    28 #include "cphonevoiperrormessageshandler.h"
    36 #include "cphonemainerrormessageshandler.h"
    29 #include "cphonemainerrormessageshandler.h"
    37 #include "cphoneerrormessageshandler.h"
    30 #include "cphoneerrormessageshandler.h"
    38 #include "cphonestatehandle.h"
    31 #include "cphonestatehandle.h"
    39 #include "phonerssvoip.h"
    32 #include "phonerssvoip.h"
   380     TInt /*aErrorCode*/ )
   373     TInt /*aErrorCode*/ )
   381     {
   374     {
   382     __LOGMETHODSTARTEND( PhoneUIVoIPExtension, 
   375     __LOGMETHODSTARTEND( PhoneUIVoIPExtension, 
   383               "CPhoneVoIPErrorMessagesHandler::ShowRegistrationErrorNotesL()" );
   376               "CPhoneVoIPErrorMessagesHandler::ShowRegistrationErrorNotesL()" );
   384     // Dismiss service enabling wait note
   377     // Dismiss service enabling wait note
   385     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalWaitNote );
   378     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalWaitNote );    
   386     
       
   387     // <-- QT PHONE START -->
       
   388     /*switch ( aErrorCode )
       
   389         {
       
   390         case KCCHErrorAccessPointNotDefined:
       
   391             {
       
   392             TUint32 serviceId = 
       
   393                 iStateMachine->PhoneEngineInfo()->ServiceIdCommand();
       
   394             ShowErrorNoteWithServiceNameL( EPhoneVoIPNoConnectionsDefined,
       
   395                 serviceId );
       
   396             break;
       
   397             }
       
   398         case KCCHErrorBandwidthInsufficient:   
       
   399             {
       
   400             TUint32 serviceId = 
       
   401                 iStateMachine->PhoneEngineInfo()->ServiceIdCommand();
       
   402             ShowErrorNoteWithServiceNameL( EPhoneVoIPCallsNotSupported,
       
   403                 serviceId );
       
   404             break;
       
   405             }
       
   406         case KCCHErrorInvalidSettings:
       
   407             {
       
   408             TUint32 serviceId = 
       
   409                 iStateMachine->PhoneEngineInfo()->ServiceIdCommand();
       
   410             ShowErrorNoteWithServiceNameL( EPhoneVoIPDefectiveSettings,
       
   411                 serviceId );
       
   412             break;
       
   413             }
       
   414         case KCCHErrorAuthenticationFailed:
       
   415             {
       
   416             SendGlobalErrorNoteL( EPhoneVoIPAuthenticationFailed );
       
   417             break;
       
   418             }
       
   419         case KCCHErrorInvalidIap:
       
   420         case KCCHErrorNetworkLost:
       
   421         case KCCHErrorServiceNotResponding:
       
   422             {
       
   423             TUint32 serviceId = 
       
   424                 iStateMachine->PhoneEngineInfo()->ServiceIdCommand();
       
   425             ShowErrorNoteWithServiceNameL( EPhoneVoIPNoConnectionsAvailable,
       
   426                 serviceId );
       
   427             break;
       
   428             }
       
   429         default:
       
   430             {
       
   431             TUint32 serviceId = 
       
   432                iStateMachine->PhoneEngineInfo()->ServiceIdCommand();
       
   433             ShowErrorNoteWithServiceNameL( EPhoneVoIPServiceUnavailable,
       
   434                serviceId );
       
   435             break;
       
   436             }
       
   437         }*/
       
   438     // <-- QT PHONE END -->
       
   439     }
   379     }
   440 
   380 
   441 // ---------------------------------------------------------
   381 // ---------------------------------------------------------
   442 //  CPhoneVoIPErrorMessagesHandler::SendGlobalErrorNoteWithTextL
   382 //  CPhoneVoIPErrorMessagesHandler::SendGlobalErrorNoteWithTextL
   443 // ---------------------------------------------------------
   383 // ---------------------------------------------------------