uifw/EikStd/srvuisrc/EIKSRVUI.CPP
changeset 22 75713bee6484
parent 14 3320e4e6e8bb
child 26 62ef28f7b435
--- a/uifw/EikStd/srvuisrc/EIKSRVUI.CPP	Mon May 03 12:45:33 2010 +0300
+++ b/uifw/EikStd/srvuisrc/EIKSRVUI.CPP	Fri May 14 16:06:26 2010 +0300
@@ -124,6 +124,9 @@
 #include <AknCustomCursorSupport.h>
 #include "AknEikSrv.pan"
 
+#include <hb/hbcore/hbsymbianvariant.h>
+#include <hb/hbcore/hbdevicedialogsymbian.h>
+
 #if defined(__WINS__)
 const TInt KEikServSideBarWidth = 35;
 const TInt KEikServAppbarHeight = 50;
@@ -1060,6 +1063,27 @@
     KeySounds()->BringToForeground();
     }
 
+LOCAL_C void ShowNotificationDialog(const TDesC& aNoteText)
+    {
+    _LIT(KNotificationDialogPlugin, "com.nokia.hb.devicenotificationdialog/1.0");
+    _LIT(KTimeout, "timeout");
+    _LIT(KTitle,   "title");
+
+    CHbDeviceDialogSymbian* dlg = CHbDeviceDialogSymbian::NewL();
+    CleanupStack::PushL(dlg);
+
+    TInt  timeout = 0;
+        
+    CHbSymbianVariantMap* map = CHbSymbianVariantMap::NewL();
+    CleanupStack::PushL(map);
+    
+    map->Add(KTimeout, CHbSymbianVariant::NewL(&timeout,    CHbSymbianVariant::EInt));
+    map->Add(KTitle,   CHbSymbianVariant::NewL(&aNoteText,  CHbSymbianVariant::EDes));
+    
+    dlg->Show(KNotificationDialogPlugin, *map);
+
+    CleanupStack::PopAndDestroy(2);
+    }
 
 void CEikServAppUi::HandleThreadExitL(RThread& aThread)
     {
@@ -1095,7 +1119,10 @@
         // Construct text for a panic note.
         HBufC* panicText = ConstructPanicTextLC( aThread, rdSupport );
         
-        iAknCapServerClient.ShowGlobalNoteL(panicText->Des(), EAknGlobalErrorNote);
+        /* iAknCapServerClient.ShowGlobalNoteL(panicText->Des(), EAknGlobalErrorNote); */
+
+        ShowNotificationDialog( panicText->Des() );
+
         CleanupStack::PopAndDestroy(); // panicText
         }