equal
deleted
inserted
replaced
44 #include <hlplch.h> |
44 #include <hlplch.h> |
45 #include <csxhelp/dm.hlp.hrh> |
45 #include <csxhelp/dm.hlp.hrh> |
46 |
46 |
47 #include <aknmessagequerydialog.h> // For CAknMessageQueryDialog |
47 #include <aknmessagequerydialog.h> // For CAknMessageQueryDialog |
48 |
48 |
|
49 #include <fotaconst.h> |
49 // For KCalenHoursInDay = 24 and other time-related constants. |
50 // For KCalenHoursInDay = 24 and other time-related constants. |
50 #include <calenconstants.h> |
51 #include <calenconstants.h> |
51 |
52 |
52 // Array granuality for displaying R_QTN_FOTA_NOTE_TIME_RESTRICTION note. |
53 // Array granuality for displaying R_QTN_FOTA_NOTE_TIME_RESTRICTION note. |
53 const TInt KNSmlDMFotaNoteArrayGranuality = 3; |
54 const TInt KNSmlDMFotaNoteArrayGranuality = 3; |
|
55 |
54 |
56 |
55 // ============================ MEMBER FUNCTIONS ============================== |
57 // ============================ MEMBER FUNCTIONS ============================== |
56 // |
58 // |
57 |
59 |
58 // ----------------------------------------------------------------------------- |
60 // ----------------------------------------------------------------------------- |
234 break; |
236 break; |
235 |
237 |
236 case EAknSoftkeyExit: //For independent .exe app launch from file browser |
238 case EAknSoftkeyExit: //For independent .exe app launch from file browser |
237 case EAknCmdExit: |
239 case EAknCmdExit: |
238 case EEikCmdExit: // quit application |
240 case EEikCmdExit: // quit application |
239 { |
241 { |
240 TApaTaskList taskList(CEikonEnv::Static()->WsSession()); |
|
241 TApaTask task1(taskList.FindApp( KFotaServerAppUid)); |
|
242 TInt value=-1; |
242 TInt value=-1; |
243 TInt r1=RProperty::Set(KPSUidNSmlDMSyncApp,KNSmlDMSyncUiLaunchKey,value); |
243 TInt r1=RProperty::Set(KPSUidNSmlDMSyncApp,KNSmlDMSyncUiLaunchKey,value); |
244 if(task1.Exists()) |
244 |
245 { |
245 TBool val (EFalse); |
246 task1.EndTask(); |
246 TInt err = RProperty::Get(TUid::Uid(KOmaDMAppUid), KFotaDownloadActive, val ); |
247 } |
247 if(val == 1) |
|
248 { |
|
249 TApaTaskList taskList(CEikonEnv::Static()->WsSession()); |
|
250 TApaTask task1(taskList.FindApp( KFotaServerAppUid)); |
|
251 if(task1.Exists()) |
|
252 task1.EndTask(); |
|
253 } |
248 Exit(); |
254 Exit(); |
249 } |
255 } |
250 break; |
256 break; |
251 |
257 |
252 case ENSmlMenuCmdNewProfile: // create new profile |
258 case ENSmlMenuCmdNewProfile: // create new profile |