iaupdate/IAD/ui/src/iaupdateautomaticcheck.cpp
changeset 33 8110bf1194d1
parent 29 26b6f0522fd8
child 42 d17dc5398051
--- a/iaupdate/IAD/ui/src/iaupdateautomaticcheck.cpp	Mon May 03 12:38:03 2010 +0300
+++ b/iaupdate/IAD/ui/src/iaupdateautomaticcheck.cpp	Fri May 14 15:58:48 2010 +0300
@@ -25,10 +25,10 @@
 #include "iaupdate.hrh"
 #include "iaupdateprivatecrkeys.h"
 
-
-
-#include <avkon.hrh>
+//#include <avkon.hrh>
 #include <centralrepository.h> 
+#include <hbmessagebox.h>
+#include <hbaction.h>
 
 
 // ---------------------------------------------------------------------------
@@ -102,15 +102,20 @@
 	        }
 	    else
 	        {
-	        /*TInt ret = IAUpdateDialogUtil::ShowConfirmationQueryL( 
-	                                          R_IAUPDATE_TURN_ON_AUTOUPD_CHECKS, 
-	                                          R_AVKON_SOFTKEYS_YES_NO );*/ 
-	        TInt ret = EAknSoftkeyYes;
+	        HbMessageBox messageBox(HbMessageBox::MessageTypeQuestion); 
+	        messageBox.setText(QString("Turn on setting for Automatic update checks?"));
+	        HbAction yesAction("Yes");
+	        HbAction noAction("No");
+	        messageBox.setPrimaryAction(&yesAction);
+	        messageBox.setSecondaryAction(&noAction);
+	        messageBox.setTimeout(HbPopup::NoTimeout);
+	        messageBox.show();
+	        //HbAction *selectedAction = messageBox.exec();
 	        firstTimeInfo->SetAutomaticUpdatesAskedL();
-	        if ( ret == EAknSoftkeyYes )
-                {
-	            EnableAutoUpdateCheckL( ETrue );
-	            }
+	        //if ( selectedAction == messageBox.primaryAction() )
+	        //    {
+                //EnableAutoUpdateCheckL( ETrue ); // TEMP
+            //    }
 	        }
 	    }
 	CleanupStack::PopAndDestroy( firstTimeInfo );