1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
17 |
17 |
18 |
18 |
19 |
19 |
20 |
20 |
21 // INCLUDES |
21 // INCLUDES |
22 #include <aknnotewrappers.h> |
|
23 #include <AknWaitDialog.h> |
|
24 #include <StringLoader.h> |
22 #include <StringLoader.h> |
25 #include <e32property.h> |
23 #include <e32property.h> |
26 #include <data_caging_path_literals.hrh> // for resource and bitmap directories |
24 #include <data_caging_path_literals.hrh> // for resource and bitmap directories |
27 #include <SyncMLErr.h> // sync error codes |
25 #include <SyncMLErr.h> // sync error codes |
28 #include <iaupdate.rsg> |
|
29 #include <AknsUtils.h> |
|
30 #include <DevManInternalCRKeys.h> |
26 #include <DevManInternalCRKeys.h> |
31 #include <centralrepository.h> |
27 #include <centralrepository.h> |
32 #include <rconnmon.h> |
28 #include <rconnmon.h> |
33 #include <es_enum.h> |
29 #include <es_enum.h> |
34 |
30 |
332 KNSmlDMNoUserInitiatedJob ); |
328 KNSmlDMNoUserInitiatedJob ); |
333 |
329 |
334 iSyncRunning = EFalse; |
330 iSyncRunning = EFalse; |
335 iSyncError = aError; |
331 iSyncError = aError; |
336 |
332 |
337 if ( iWaitDialog ) |
333 /*if ( iWaitDialog ) |
338 { |
334 { |
339 |
335 |
340 iWaitDialog->ProcessFinishedL(); |
336 iWaitDialog->ProcessFinishedL(); |
341 iWaitDialog = NULL; |
337 iWaitDialog = NULL; |
342 } |
338 }*/ |
343 |
339 |
344 iUseFotaProgressNote = EFalse; |
340 iUseFotaProgressNote = EFalse; |
345 iSyncJob.Close(); |
341 iSyncJob.Close(); |
346 FLOG("[IAUPDATE] CIAUpdateFWSyncHandler::SynchronizeCompletedL 13"); |
342 FLOG("[IAUPDATE] CIAUpdateFWSyncHandler::SynchronizeCompletedL 13"); |
347 // handle error in HandleActiveCallL (when active caller completes) |
343 // handle error in HandleActiveCallL (when active caller completes) |
714 // CIAUpdateFWSyncHandler::ShowProgressDialogL |
710 // CIAUpdateFWSyncHandler::ShowProgressDialogL |
715 // ----------------------------------------------------------------------------- |
711 // ----------------------------------------------------------------------------- |
716 // |
712 // |
717 void CIAUpdateFWSyncHandler::ShowProgressDialogL( ) |
713 void CIAUpdateFWSyncHandler::ShowProgressDialogL( ) |
718 { |
714 { |
719 iWaitDialog = new ( ELeave ) CAknWaitDialog( |
715 //iWaitDialog = new ( ELeave ) CAknWaitDialog( |
720 ( REINTERPRET_CAST( CEikDialog**, &iWaitDialog ) ) ); |
716 // ( REINTERPRET_CAST( CEikDialog**, &iWaitDialog ) ) ); |
721 iWaitDialog->ExecuteLD( R_FOTA_CHECK_WAIT_NOTE ); |
717 //iWaitDialog->ExecuteLD( R_FOTA_CHECK_WAIT_NOTE ); |
722 iWaitDialog->SetCallback( this ); |
718 //iWaitDialog->SetCallback( this ); |
723 } |
719 } |
724 |
720 |
725 // ----------------------------------------------------------------------------- |
721 // ----------------------------------------------------------------------------- |
726 // CIAUpdateFWSyncHandler::HideProgressDialogL |
722 // CIAUpdateFWSyncHandler::HideProgressDialogL |
727 // ----------------------------------------------------------------------------- |
723 // ----------------------------------------------------------------------------- |
728 // |
724 // |
729 void CIAUpdateFWSyncHandler::HideProgressDialogL() |
725 void CIAUpdateFWSyncHandler::HideProgressDialogL() |
730 { |
726 { |
731 if ( iWaitDialog ) |
727 /*if ( iWaitDialog ) |
732 { |
728 { |
733 iWaitDialog->ProcessFinishedL(); |
729 iWaitDialog->ProcessFinishedL(); |
734 iWaitDialog = NULL; |
730 iWaitDialog = NULL; |
735 } |
731 }*/ |
736 } |
732 } |
737 |
733 |
738 // ----------------------------------------------------------------------------- |
734 // ----------------------------------------------------------------------------- |
739 // CIAUpdateFWSyncHandler::Session |
735 // CIAUpdateFWSyncHandler::Session |
740 // ----------------------------------------------------------------------------- |
736 // ----------------------------------------------------------------------------- |