convergedconnectionhandler/cchserver/src/cchuihandler.cpp
branchRCL_3
changeset 14 be41ab7b952f
parent 9 bddb6d4447db
equal deleted inserted replaced
12:876a3df1f464 14:be41ab7b952f
   242 // ---------------------------------------------------------------------------
   242 // ---------------------------------------------------------------------------
   243 //      
   243 //      
   244 void CCchUIHandler::CheckGprsFirstUsageL( )
   244 void CCchUIHandler::CheckGprsFirstUsageL( )
   245     { 
   245     { 
   246     CCHLOGSTRING( "CCchUIHandler::CheckGprsFirstUsageL - IN" );
   246     CCHLOGSTRING( "CCchUIHandler::CheckGprsFirstUsageL - IN" );
   247     
       
   248     // Check value from cenrep
       
   249     TInt gprsRoamingCostWarningShown( 0 );
       
   250     
       
   251     User::LeaveIfError( iCchRepository->Get( 
       
   252         KCCHGprsRoamingCostWarningShown, 
       
   253         gprsRoamingCostWarningShown ) );
       
   254     
       
   255     // Show gprs roaming cost warning note if not already shown
   247     // Show gprs roaming cost warning note if not already shown
   256     if( !gprsRoamingCostWarningShown )
   248     if( !IsCostWarningSeen() )
   257         {
   249         {
   258         iNoteHandler->LaunchGlobalNoteL( 
   250         iNoteHandler->LaunchGlobalNoteL( 
   259             R_QTN_SERVTAB_ALLOW_GPRS_WHEN_ROAMING_QUERY, 
   251             R_QTN_SERVTAB_ALLOW_GPRS_WHEN_ROAMING_QUERY, 
   260             R_AVKON_SOFTKEYS_OK_EMPTY,
   252             R_AVKON_SOFTKEYS_OK_EMPTY,
   261             SecondaryDisplay::ECmdNoNote );     
   253             SecondaryDisplay::ECmdNoNote );     
   262         }
   254         }
   263     
   255     
   264     CCHLOGSTRING( "CCchUIHandler::CheckGprsFirstUsageL - OUT" );
   256     CCHLOGSTRING( "CCchUIHandler::CheckGprsFirstUsageL - OUT" );
       
   257     }
       
   258 
       
   259 // ---------------------------------------------------------------------------
       
   260 // CCchUIHandler::IsCostWarningSeen
       
   261 // (other items were commented in a header).
       
   262 // ---------------------------------------------------------------------------
       
   263 //      
       
   264 TBool CCchUIHandler::IsCostWarningSeen() const
       
   265     {
       
   266     TBool response( EFalse );
       
   267     TInt costWarning( KErrNone );
       
   268     iCchRepository->Get( KCCHGprsRoamingCostWarningShown, costWarning );
       
   269 
       
   270     response = 1 == costWarning;
       
   271     CCHLOGSTRING2( "CCchUIHandler::IsCostWarningSeen : %d", response );
       
   272     return response;
   265     }
   273     }
   266 
   274 
   267 // ---------------------------------------------------------------------------
   275 // ---------------------------------------------------------------------------
   268 // CCchUIHandler::NetworkConnectionsAllowed
   276 // CCchUIHandler::NetworkConnectionsAllowed
   269 // (other items were commented in a header).
   277 // (other items were commented in a header).