iaupdate/IAD/ui/src/iaupdateautomaticcheck.cpp
changeset 29 26b6f0522fd8
parent 0 ba25891c3a9e
child 33 8110bf1194d1
equal deleted inserted replaced
25:98b66e4fb0be 29:26b6f0522fd8
     1 /*
     1 /*
     2 * Copyright (c) 2008-2009 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".
    19 
    19 
    20 
    20 
    21 //INCLUDES
    21 //INCLUDES
    22 
    22 
    23 #include "iaupdateautomaticcheck.h"
    23 #include "iaupdateautomaticcheck.h"
    24 #include "iaupdatedialogutil.h"
       
    25 #include "iaupdatefirsttimeinfo.h"
    24 #include "iaupdatefirsttimeinfo.h"
    26 #include "iaupdate.hrh"
    25 #include "iaupdate.hrh"
    27 #include "iaupdateprivatecrkeys.h"
    26 #include "iaupdateprivatecrkeys.h"
    28 #include "iaupdateapplication.h"
       
    29 
    27 
    30 #include <avkon.rsg>
    28 
       
    29 
    31 #include <avkon.hrh>
    30 #include <avkon.hrh>
    32 #include <iaupdate.rsg>
       
    33 #include <centralrepository.h> 
    31 #include <centralrepository.h> 
    34 
    32 
    35 
    33 
    36 // ---------------------------------------------------------------------------
    34 // ---------------------------------------------------------------------------
    37 // CIAUpdateAutomaticCheck::NewL
    35 // CIAUpdateAutomaticCheck::NewL
   102 	        // if automatic update check configured as enabled, confirmation is not asked  
   100 	        // if automatic update check configured as enabled, confirmation is not asked  
   103 	        firstTimeInfo->SetAutomaticUpdatesAskedL();
   101 	        firstTimeInfo->SetAutomaticUpdatesAskedL();
   104 	        }
   102 	        }
   105 	    else
   103 	    else
   106 	        {
   104 	        {
   107 	        TInt ret = IAUpdateDialogUtil::ShowConfirmationQueryL( 
   105 	        /*TInt ret = IAUpdateDialogUtil::ShowConfirmationQueryL( 
   108 	                                          R_IAUPDATE_TURN_ON_AUTOUPD_CHECKS, 
   106 	                                          R_IAUPDATE_TURN_ON_AUTOUPD_CHECKS, 
   109 	                                          R_AVKON_SOFTKEYS_YES_NO );    
   107 	                                          R_AVKON_SOFTKEYS_YES_NO );*/ 
       
   108 	        TInt ret = EAknSoftkeyYes;
   110 	        firstTimeInfo->SetAutomaticUpdatesAskedL();
   109 	        firstTimeInfo->SetAutomaticUpdatesAskedL();
   111 	        if ( ret == EAknSoftkeyYes )
   110 	        if ( ret == EAknSoftkeyYes )
   112                 {
   111                 {
   113 	            EnableAutoUpdateCheckL( ETrue );
   112 	            EnableAutoUpdateCheckL( ETrue );
   114 	            }
   113 	            }