applicationmanagement/server/src/AMDownloader.cpp
changeset 4 75a71fdb4c92
parent 0 3ce708148e4d
child 14 4699373c9af8
equal deleted inserted replaced
3:ecc2fefbdf1d 4:75a71fdb4c92
   224         TInt operNonSilent = -1;
   224         TInt operNonSilent = -1;
   225 
   225 
   226         RProperty::Get(KUidPSApplicationManagementKeys,
   226         RProperty::Get(KUidPSApplicationManagementKeys,
   227                 KAMOperationNonSilent, operNonSilent);
   227                 KAMOperationNonSilent, operNonSilent);
   228 
   228 
       
   229          RDEBUG_2( "CAMDownloader::Value of operNonSilent '%d'", operNonSilent );
       
   230 
   229         if (operNonSilent==1 || operNonSilent==KErrNotFound)
   231         if (operNonSilent==1 || operNonSilent==KErrNotFound)
   230             {
   232             {
   231             TApaTaskList taskList(CEikonEnv::Static()->WsSession() );
   233             TApaTaskList taskList(CEikonEnv::Static()->WsSession() );
   232             TApaTask task = taskList.FindApp(TUid::Uid(KAppMgmtServerUid));
   234             TApaTask task = taskList.FindApp(TUid::Uid(KAppMgmtServerUid));
   233 
   235 
   235 
   237 
   236             if (task.Exists())
   238             if (task.Exists())
   237                 task.BringToForeground();
   239                 task.BringToForeground();
   238 
   240 
   239             }
   241             }
       
   242          else
       
   243             {
       
   244 			RDEBUG( "CAMDownloadManager::HandleAlreadyRunningL - CreateAndUpdateProgressDialogL UI enabled = 0" );
       
   245 
       
   246 		    TInt UIenabled = 0;
       
   247 			TInt err = RProperty::Set(KUidPSApplicationManagementKeys,
       
   248 			                KAMServerUIEnabled, UIenabled);
       
   249         	User::LeaveIfError(err); // invalid
       
   250 			}
   240 
   251 
   241         iProgStarted = 1;
   252         iProgStarted = 1;
   242         }
   253         }
   243 
   254 
   244     if (!iSetFinalValue && aContentSize>=0)
   255     if (!iSetFinalValue && aContentSize>=0)