14 * Description: starts update sequence |
14 * Description: starts update sequence |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // INCLUDE FILES |
18 // INCLUDE FILES |
19 #include <StringLoader.h> |
19 |
20 #include <centralrepository.h> |
20 #include <centralrepository.h> |
21 #include <AknUtils.h> |
21 #include <AknUtils.h> |
22 #include <AknBidiTextUtils.h> |
22 #include <AknBidiTextUtils.h> |
23 #include <biditext.h> |
23 #include <biditext.h> |
24 #include <gdi.h> |
24 #include <gdi.h> |
25 #include <fotaengine.h> |
25 #include <fotaengine.h> |
26 #include <apgtask.h> |
26 #include <apgtask.h> |
27 #include <aknradiobuttonsettingpage.h> |
|
28 #include <akntitle.h> |
|
29 #include <schtime.h> |
27 #include <schtime.h> |
30 #include <csch_cli.h> |
28 #include <csch_cli.h> |
31 #include <fotaengine.h> |
29 #include <fotaengine.h> |
32 #include <XQConversions> |
30 #include <XQConversions> |
33 #include "fotaupdate.h" |
31 #include "fotaupdate.h" |
74 // --------------------------------------------------------------------------- |
83 // --------------------------------------------------------------------------- |
75 // |
84 // |
76 CFotaUpdate* CFotaUpdate::NewL(CFotaServer* aServer) |
85 CFotaUpdate* CFotaUpdate::NewL(CFotaServer* aServer) |
77 { |
86 { |
78 CFotaUpdate* ao = new (ELeave) CFotaUpdate(); |
87 CFotaUpdate* ao = new (ELeave) CFotaUpdate(); |
|
88 CleanupStack::PushL( ao ); |
|
89 ao->ConstructL(); |
79 ao->iFotaServer = aServer; |
90 ao->iFotaServer = aServer; |
|
91 CleanupStack::Pop(ao); |
80 return ao; |
92 return ao; |
|
93 } |
|
94 |
|
95 // --------------------------------------------------------------------------- |
|
96 // CFotaUpdate::ConstructL |
|
97 // --------------------------------------------------------------------------- |
|
98 // |
|
99 |
|
100 void CFotaUpdate::ConstructL() |
|
101 { |
|
102 iNotifier = CFotaDownloadNotifHandler::NewL(this); |
81 } |
103 } |
82 |
104 |
83 // --------------------------------------------------------------------------- |
105 // --------------------------------------------------------------------------- |
84 // CFotaUpdate::CheckUpdateResults |
106 // CFotaUpdate::CheckUpdateResults |
85 // Checks if there is update result file available (meaning that update just |
107 // Checks if there is update result file available (meaning that update just |
631 { |
653 { |
632 FLOG(_L("CFotaUpdate::ShowDialogL, dialogid = %d >>"), aDialogid); |
654 FLOG(_L("CFotaUpdate::ShowDialogL, dialogid = %d >>"), aDialogid); |
633 iFotaServer->ServerCanShut(EFalse); |
655 iFotaServer->ServerCanShut(EFalse); |
634 |
656 |
635 if (iFotaServer->FullScreenDialog()) |
657 if (iFotaServer->FullScreenDialog()) |
636 iFotaServer->FullScreenDialog()->Close(); |
658 iFotaServer->FullScreenDialog()->close(); |
637 |
659 |
638 iNotifParams = CHbSymbianVariantMap::NewL(); |
660 iNotifParams = CHbSymbianVariantMap::NewL(); |
639 |
661 |
640 HBufC* keyDialog = HBufC::NewL(10); |
662 HBufC* keyDialog = HBufC::NewL(10); |
641 CleanupStack::PushL(keyDialog); |
663 CleanupStack::PushL(keyDialog); |
642 *keyDialog = KKeyDialog; |
664 *keyDialog = KKeyDialog; |
643 |
665 |
644 CHbSymbianVariant* dialogId = CHbSymbianVariant::NewL(&aDialogid, |
666 CHbSymbianVariant* dialogId = CHbSymbianVariant::NewL(&aDialogid, |
645 CHbSymbianVariant::EInt); |
667 CHbSymbianVariant::EInt); |
646 iNotifParams->Add(*keyDialog, dialogId); |
668 iNotifParams->Add(*keyDialog, dialogId); |
647 iNotifier = CFotaDownloadNotifHandler::NewL(this); |
669 |
648 |
670 |
649 iNotifier->LaunchNotifierL(iNotifParams, aDialogid); |
671 iNotifier->LaunchNotifierL(iNotifParams, aDialogid); |
650 |
672 |
651 CleanupStack::PopAndDestroy(); |
673 CleanupStack::PopAndDestroy(); |
652 FLOG(_L("CFotaUpdate::ShowDialogL <<")); |
674 FLOG(_L("CFotaUpdate::ShowDialogL <<")); |