iaupdate/IAD/ui/src/iaupdateroaminghandler.cpp
branchRCL_3
changeset 15 51c0f5edf5ef
parent 0 ba25891c3a9e
child 29 26b6f0522fd8
child 36 f9033e605ee2
equal deleted inserted replaced
6:aba6b8104af3 15:51c0f5edf5ef
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   138 TBool CIAUpdateRoamingHandler::IsRoaming()
   138 TBool CIAUpdateRoamingHandler::IsRoaming()
   139     {
   139     {
   140 	return iRoaming;
   140 	return iRoaming;
   141     }
   141     }
   142     
   142     
   143 // ---------------------------------------------------------------------------
   143 
   144 // CIAUpdateRoamingHandler::RoamingRejectionL()
       
   145 // 
       
   146 // ---------------------------------------------------------------------------
       
   147 //    
       
   148 TBool CIAUpdateRoamingHandler::RoamingRejectionL()
       
   149     {
       
   150   	TBool rejected = EFalse;
       
   151   	if ( ( iRoaming )  && ( !iRoamingConnectionAccepted ) )
       
   152   	    {
       
   153   		CRepository* cenrep = CRepository::NewLC( KCRUidIAUpdateSettings );
       
   154     
       
   155         TInt num = KErrNotFound;
       
   156         User::LeaveIfError( cenrep->Get( KIAUpdateRoamingWarning, num ) );
       
   157         
       
   158         CleanupStack::PopAndDestroy( cenrep );
       
   159         if ( num == EIAUpdateSettingValueOn ) 
       
   160             {
       
   161         	TInt ret = IAUpdateDialogUtil::ShowConfirmationQueryL( 
       
   162    	                                          R_IAUPDATE_CONNECT_TO_SERVER, 
       
   163 	                                          R_AVKON_SOFTKEYS_YES_NO );
       
   164 	        if ( ret == EAknSoftkeyYes )
       
   165 	            {
       
   166 	        	iRoamingConnectionAccepted = ETrue;
       
   167 	            }
       
   168 	        else
       
   169 	            {
       
   170 	            rejected = ETrue;
       
   171 	            }
       
   172 	        }   
       
   173   	    }
       
   174 	return rejected;
       
   175     }
       
   176 
   144 
   177     
   145     
   178 // End of File  
   146 // End of File