equal
deleted
inserted
replaced
122 |
122 |
123 #include "AknNotifierControllerPlugin.h" |
123 #include "AknNotifierControllerPlugin.h" |
124 #include <AknCustomCursorSupport.h> |
124 #include <AknCustomCursorSupport.h> |
125 #include "AknEikSrv.pan" |
125 #include "AknEikSrv.pan" |
126 |
126 |
|
127 #include <hb/hbcore/hbsymbianvariant.h> |
|
128 #include <hb/hbcore/hbdevicedialogsymbian.h> |
|
129 |
127 #if defined(__WINS__) |
130 #if defined(__WINS__) |
128 const TInt KEikServSideBarWidth = 35; |
131 const TInt KEikServSideBarWidth = 35; |
129 const TInt KEikServAppbarHeight = 50; |
132 const TInt KEikServAppbarHeight = 50; |
130 #endif |
133 #endif |
131 |
134 |
1058 // Invented new API. |
1061 // Invented new API. |
1059 ReplaceKeySoundsL(0x100053D0); |
1062 ReplaceKeySoundsL(0x100053D0); |
1060 KeySounds()->BringToForeground(); |
1063 KeySounds()->BringToForeground(); |
1061 } |
1064 } |
1062 |
1065 |
|
1066 LOCAL_C void ShowNotificationDialog(const TDesC& aNoteText) |
|
1067 { |
|
1068 _LIT(KNotificationDialogPlugin, "com.nokia.hb.devicenotificationdialog/1.0"); |
|
1069 _LIT(KTimeout, "timeout"); |
|
1070 _LIT(KTitle, "title"); |
|
1071 |
|
1072 CHbDeviceDialogSymbian* dlg = CHbDeviceDialogSymbian::NewL(); |
|
1073 CleanupStack::PushL(dlg); |
|
1074 |
|
1075 TInt timeout = 0; |
|
1076 |
|
1077 CHbSymbianVariantMap* map = CHbSymbianVariantMap::NewL(); |
|
1078 CleanupStack::PushL(map); |
|
1079 |
|
1080 map->Add(KTimeout, CHbSymbianVariant::NewL(&timeout, CHbSymbianVariant::EInt)); |
|
1081 map->Add(KTitle, CHbSymbianVariant::NewL(&aNoteText, CHbSymbianVariant::EDes)); |
|
1082 |
|
1083 dlg->Show(KNotificationDialogPlugin, *map); |
|
1084 |
|
1085 CleanupStack::PopAndDestroy(2); |
|
1086 } |
1063 |
1087 |
1064 void CEikServAppUi::HandleThreadExitL(RThread& aThread) |
1088 void CEikServAppUi::HandleThreadExitL(RThread& aThread) |
1065 { |
1089 { |
1066 if(aThread.Name().CompareF(_L("aknnfysrv")) == 0) |
1090 if(aThread.Name().CompareF(_L("aknnfysrv")) == 0) |
1067 { |
1091 { |
1093 KFeatureIdShowPanics )) ) |
1117 KFeatureIdShowPanics )) ) |
1094 { |
1118 { |
1095 // Construct text for a panic note. |
1119 // Construct text for a panic note. |
1096 HBufC* panicText = ConstructPanicTextLC( aThread, rdSupport ); |
1120 HBufC* panicText = ConstructPanicTextLC( aThread, rdSupport ); |
1097 |
1121 |
1098 iAknCapServerClient.ShowGlobalNoteL(panicText->Des(), EAknGlobalErrorNote); |
1122 /* iAknCapServerClient.ShowGlobalNoteL(panicText->Des(), EAknGlobalErrorNote); */ |
|
1123 |
|
1124 ShowNotificationDialog( panicText->Des() ); |
|
1125 |
1099 CleanupStack::PopAndDestroy(); // panicText |
1126 CleanupStack::PopAndDestroy(); // panicText |
1100 } |
1127 } |
1101 |
1128 |
1102 CEikServAppUiBase::HandleThreadExitL(aThread); |
1129 CEikServAppUiBase::HandleThreadExitL(aThread); |
1103 } |
1130 } |