uifw/EikStd/srvuisrc/EIKSRVUI.CPP
branchGCC_SURGE
changeset 44 484cb5040995
parent 40 7165f928e888
equal deleted inserted replaced
32:512f698a535d 44:484cb5040995
   626     iEikServExtra->iServerRestarter = CPeriodic::NewL(CActive::EPriorityStandard);
   626     iEikServExtra->iServerRestarter = CPeriodic::NewL(CActive::EPriorityStandard);
   627     }
   627     }
   628 
   628 
   629 EXPORT_C void CEikServAppUiBase::HandleThreadExitL(RThread& aThread)
   629 EXPORT_C void CEikServAppUiBase::HandleThreadExitL(RThread& aThread)
   630     {
   630     {
       
   631     _LIT(KAppArcServerThread, "AppArcServerThread");
   631     if (aThread.Name() == ASCliDefinitions::ServerAndThreadName()) // alarm server died
   632     if (aThread.Name() == ASCliDefinitions::ServerAndThreadName()) // alarm server died
   632         {
   633         {
   633         aThread.Close(); // need to Close() before restarting with same name
   634         aThread.Close(); // need to Close() before restarting with same name
   634         iServerToRestart |= EAlwlSvr; // restarted under active object
   635         iServerToRestart |= EAlwlSvr; // restarted under active object
   635         }
   636         }
   636     else if (aThread.Name()==NameApaServServerThread()) // AppArc server died
   637     else if (aThread.Name() == KAppArcServerThread) // AppArc server died
   637         {
   638         {
   638         aThread.Close();
   639         aThread.Close();
   639         iServerToRestart|=EApaSvr;
   640         iServerToRestart|=EApaSvr;
   640         }
   641         }
   641         
   642         
  1067     {
  1068     {
  1068     _LIT(KNotificationDialogPlugin, "com.nokia.hb.devicenotificationdialog/1.0");
  1069     _LIT(KNotificationDialogPlugin, "com.nokia.hb.devicenotificationdialog/1.0");
  1069     _LIT(KTimeout, "timeout");
  1070     _LIT(KTimeout, "timeout");
  1070     _LIT(KTitle,   "title");
  1071     _LIT(KTitle,   "title");
  1071 
  1072 
  1072     CHbDeviceDialogSymbian* dlg = CHbDeviceDialogSymbian::NewL();
  1073     //@TODO replace the hardcoded parameter after enum EASyncServerStartup
       
  1074     // is defined(after MCL wk26).
       
  1075     //CHbDeviceDialogSymbian* dlg = CHbDeviceDialogSymbian::NewL(
       
  1076     //                    CHbDeviceDialogSymbian::EASyncServerStartup);
       
  1077     CHbDeviceDialogSymbian* dlg = CHbDeviceDialogSymbian::NewL(2);
  1073     CleanupStack::PushL(dlg);
  1078     CleanupStack::PushL(dlg);
  1074 
  1079 
  1075     TInt  timeout = 0;
  1080     TInt  timeout = 0;
  1076         
  1081         
  1077     CHbSymbianVariantMap* map = CHbSymbianVariantMap::NewL();
  1082     CHbSymbianVariantMap* map = CHbSymbianVariantMap::NewL();