equal
deleted
inserted
replaced
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include <akntitle.h> // CAknTitlePane |
21 #include <akntitle.h> // CAknTitlePane |
22 #include <aknnavi.h> // CAknNavigationControlContainer |
22 #include <aknnavi.h> // CAknNavigationControlContainer |
23 #include <aknnavide.h> // CAknNavigationDecorator |
23 #include <aknnavide.h> // CAknNavigationDecorator |
24 #include <sendui.h> // CSendAppUi |
24 #include <sendui.h> // CSendAppUi |
25 #include <Sendnorm.rsg> |
25 #include <sendnorm.rsg> |
26 #include <avkon.rsg> |
26 #include <avkon.rsg> |
27 #include <barsread.h> |
27 #include <barsread.h> |
28 #include <hlplch.h> // HlpLauncher |
28 #include <hlplch.h> // HlpLauncher |
29 #include <eikapp.h> |
29 #include <eikapp.h> |
30 #include <AknDef.h> // For layout change event definitions |
30 #include <AknDef.h> // For layout change event definitions |
34 #include <centralrepository.h> |
34 #include <centralrepository.h> |
35 #include <AiwCommon.h> |
35 #include <AiwCommon.h> |
36 #include <bautils.h> |
36 #include <bautils.h> |
37 #include <pathinfo.h> |
37 #include <pathinfo.h> |
38 #include <driveinfo.h> |
38 #include <driveinfo.h> |
|
39 #include <ssm/ssmstate.h> |
|
40 #include <ssm/ssmdomaindefs.h> |
|
41 |
39 #include <CFileManagerEngine.h> |
42 #include <CFileManagerEngine.h> |
40 #include <CFileManagerIRReceiver.h> |
43 #include <CFileManagerIRReceiver.h> |
41 #include <FileManager.rsg> |
44 #include <filemanager.rsg> |
42 #include <FileManagerView.rsg> |
45 #include <filemanagerview.rsg> |
43 #include <FileManagerDebug.h> |
46 #include <FileManagerDebug.h> |
44 #include <FileManagerUID.h> |
47 #include <FileManagerUID.h> |
45 #include <CFileManagerFeatureManager.h> |
48 #include <CFileManagerFeatureManager.h> |
46 #include <CFileManagerUtils.h> |
49 #include <CFileManagerUtils.h> |
47 #include "CFileManagerAppUi.h" |
50 #include "CFileManagerAppUi.h" |
139 delete iSchBackupHandler; |
142 delete iSchBackupHandler; |
140 #endif // RD_FILE_MANAGER_BACKUP |
143 #endif // RD_FILE_MANAGER_BACKUP |
141 CFileManagerEngine& engine = |
144 CFileManagerEngine& engine = |
142 static_cast< CFileManagerDocument* >( Document() )->Engine(); |
145 static_cast< CFileManagerDocument* >( Document() )->Engine(); |
143 engine.SetObserver( NULL ); |
146 engine.SetObserver( NULL ); |
|
147 iSAS.Close(); |
144 } |
148 } |
145 |
149 |
146 // ----------------------------------------------------------------------------- |
150 // ----------------------------------------------------------------------------- |
147 // CFileManagerAppUi::ConstructL |
151 // CFileManagerAppUi::ConstructL |
148 // |
152 // |
166 CAknView* view = CFileManagerMainView::NewLC(); |
170 CAknView* view = CFileManagerMainView::NewLC(); |
167 AddViewL( view ); // Takes ownership |
171 AddViewL( view ); // Takes ownership |
168 CleanupStack::Pop( view ); |
172 CleanupStack::Pop( view ); |
169 SetDefaultViewL( *view ); |
173 SetDefaultViewL( *view ); |
170 iActiveView = view->Id(); |
174 iActiveView = view->Id(); |
|
175 |
|
176 User::LeaveIfError( iSAS.Connect( KSM2GenMiddlewareDomain3 ) ); |
171 |
177 |
172 #ifdef RD_FILE_MANAGER_BACKUP |
178 #ifdef RD_FILE_MANAGER_BACKUP |
173 CFileManagerDocument* doc = |
179 CFileManagerDocument* doc = |
174 static_cast< CFileManagerDocument* >( Document() ); |
180 static_cast< CFileManagerDocument* >( Document() ); |
175 iSchBackupStandalone = doc->IsScheduledBackup(); |
181 iSchBackupStandalone = doc->IsScheduledBackup(); |
577 } |
583 } |
578 else |
584 else |
579 { |
585 { |
580 ExitEmbeddedAppIfNeededL(); |
586 ExitEmbeddedAppIfNeededL(); |
581 CreateAndActivateLocalViewL( KFileManagerMainViewId ); |
587 CreateAndActivateLocalViewL( KFileManagerMainViewId ); |
582 |
|
583 //Fix for EDMO-7JMH7V |
|
584 //File manager:The phone displays "no data" in File manager |
|
585 //when cancel installing ".sis" file |
|
586 iActiveView = KFileManagerMainViewId; |
588 iActiveView = KFileManagerMainViewId; |
587 } |
589 } |
588 } |
590 } |
589 |
591 |
590 // ----------------------------------------------------------------------------- |
592 // ----------------------------------------------------------------------------- |
715 // ----------------------------------------------------------------------------- |
717 // ----------------------------------------------------------------------------- |
716 // |
718 // |
717 void CFileManagerAppUi::CloseRestoreViewL() |
719 void CFileManagerAppUi::CloseRestoreViewL() |
718 { |
720 { |
719 CreateAndActivateLocalViewL( KFileManagerBackupViewId ); |
721 CreateAndActivateLocalViewL( KFileManagerBackupViewId ); |
|
722 iActiveView = KFileManagerBackupViewId; |
720 } |
723 } |
721 |
724 |
722 // ----------------------------------------------------------------------------- |
725 // ----------------------------------------------------------------------------- |
723 // CFileManagerAppUi::ProcessCommandParametersL |
726 // CFileManagerAppUi::ProcessCommandParametersL |
724 // |
727 // |
1295 { |
1298 { |
1296 iManualBackupOrRestoreStarted = 0; |
1299 iManualBackupOrRestoreStarted = 0; |
1297 iManualBackupOrRestoreEnded = 0; |
1300 iManualBackupOrRestoreEnded = 0; |
1298 } |
1301 } |
1299 |
1302 |
|
1303 |
|
1304 // ------------------------------------------------------------------------------ |
|
1305 // CFileManagerAppUi::IsSystemStateNormal |
|
1306 // |
|
1307 // ------------------------------------------------------------------------------ |
|
1308 // |
|
1309 TBool CFileManagerAppUi::IsSystemStateNormal() const |
|
1310 { |
|
1311 TSsmState state = iSAS.State(); |
|
1312 return ( state.MainState() == ESsmNormal ); |
|
1313 } |
|
1314 |
1300 // End of File |
1315 // End of File |
1301 |
1316 |