javaextensions/satsa/pki/src.s60/cstsseprompt.cpp
changeset 61 bf7ee68962da
parent 21 2a9601315dfc
child 83 26b2b12093af
child 87 1627c337e51e
--- a/javaextensions/satsa/pki/src.s60/cstsseprompt.cpp	Tue Jul 06 14:10:26 2010 +0300
+++ b/javaextensions/satsa/pki/src.s60/cstsseprompt.cpp	Wed Aug 18 09:43:15 2010 +0300
@@ -18,11 +18,24 @@
 
 
 // INCLUDE FILES
+
+
+
 #include "cstsseprompt.h"
+
+#ifdef RD_JAVA_S60_RELEASE_10_1_ONWARDS
+
+#include <hbdevicedialog.h>
+#include <QtCore\qvariant.h>
+const QString KMessageTextKey = "text";
+
+#else 
+
 #include <AknGlobalNote.h>
 #include <avkon.rsg>
 #include <caosynchronizer.h>
 
+#endif 
 
 
 // ============================ MEMBER FUNCTIONS ===============================
@@ -43,8 +56,10 @@
 // Destructor
 CSTSSEPrompt::~CSTSSEPrompt()
 {
+#ifndef RD_JAVA_S60_RELEASE_10_1_ONWARDS
     delete iGlobalNote;
     delete iSynchronizer;
+#endif
 }
 
 // -----------------------------------------------------------------------------
@@ -54,11 +69,26 @@
 //
 void CSTSSEPrompt::DisplayPromptL(const TDesC& aPrompt)
 {
+    #ifdef RD_JAVA_S60_RELEASE_10_1_ONWARDS
+            HbDeviceDialog* dialog;
+            dialog = new(ELeave) HbDeviceDialog();
+            
+            QVariantMap parameters;
+            QString qString((QChar*)aPrompt.Ptr(),aPrompt.Length());
+            parameters[QString(KMessageTextKey)] = qString;
+            
+            dialog->show("com.nokia.hb.devicemessagebox/1.0", parameters);
+            
+            delete dialog;
+    #else
+            
     iGlobalNote->ShowNoteL(
         iSynchronizer->iStatus,
-        EAknGlobalConfirmationNote,
+        EAknGlobalConfirmationNote, 
         aPrompt);
     iSynchronizer->ExecuteL((TTimeIntervalMicroSeconds32) 0);
+            
+    #endif
 }
 
 // -----------------------------------------------------------------------------
@@ -77,9 +107,11 @@
 // -----------------------------------------------------------------------------
 void CSTSSEPrompt::ConstructL()
 {
+    #ifndef RD_JAVA_S60_RELEASE_10_1_ONWARDS
     iGlobalNote = CAknGlobalNote::NewL();
     iGlobalNote->SetSoftkeys(R_AVKON_SOFTKEYS_OK_EMPTY);
     iSynchronizer = CAOSynchronizer::NewL();
+    #endif
 }