83 CEikStatusPane* statusPane = StatusPane(); |
83 CEikStatusPane* statusPane = StatusPane(); |
84 iTitlePane = static_cast<CAknTitlePane*> |
84 iTitlePane = static_cast<CAknTitlePane*> |
85 ( statusPane->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ); |
85 ( statusPane->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) ); |
86 |
86 |
87 iImToneSelectionListOpen = EFalse; |
87 iImToneSelectionListOpen = EFalse; |
|
88 iSnapListOpen = EFalse; |
88 CSCSETUIDEBUG( "CCSCSettingsUiMainView::ConstructL - end" ); |
89 CSCSETUIDEBUG( "CCSCSettingsUiMainView::ConstructL - end" ); |
89 } |
90 } |
90 |
91 |
91 |
92 |
92 // --------------------------------------------------------------------------- |
93 // --------------------------------------------------------------------------- |
845 // --------------------------------------------------------------------------- |
846 // --------------------------------------------------------------------------- |
846 // |
847 // |
847 void CCSCSettingsUiMainView::LaunchCMSettingsUiL() |
848 void CCSCSettingsUiMainView::LaunchCMSettingsUiL() |
848 { |
849 { |
849 CSCSETUIDEBUG( "CCSCSettingsUiMainView::LaunchCMSettingsUiL" ); |
850 CSCSETUIDEBUG( "CCSCSettingsUiMainView::LaunchCMSettingsUiL" ); |
|
851 if ( iSnapListOpen ) |
|
852 { |
|
853 CSCSETUIDEBUG( "CCSCSettingsUiMainView::LaunchCMSettingsUiL end" ); |
|
854 return; |
|
855 } |
850 |
856 |
851 // Launch Connection Method Settings Ui. |
857 // Launch Connection Method Settings Ui. |
852 CCmSettingsUi* cmSettingsUi = CCmSettingsUi::NewL(); |
858 CCmSettingsUi* cmSettingsUi = CCmSettingsUi::NewL(); |
853 CleanupStack::PushL( cmSettingsUi ); |
859 CleanupStack::PushL( cmSettingsUi ); |
|
860 iSnapListOpen = ETrue; |
854 if ( CCmSettingsUi::EExit == cmSettingsUi->RunSettingsL() ) |
861 if ( CCmSettingsUi::EExit == cmSettingsUi->RunSettingsL() ) |
855 { |
862 { |
856 HandleCommandL( EEikCmdExit ); |
863 HandleCommandL( EEikCmdExit ); |
857 } |
864 } |
858 CleanupStack::PopAndDestroy( cmSettingsUi ); |
865 CleanupStack::PopAndDestroy( cmSettingsUi ); |
859 iContainer->UpdateContainerL(); |
866 iSnapListOpen = EFalse; |
|
867 ResetViewL(); |
|
868 CSCSETUIDEBUG( "CCSCSettingsUiMainView::LaunchCMSettingsUiL end" ); |
860 } |
869 } |
861 |
870 |
862 // --------------------------------------------------------------------------- |
871 // --------------------------------------------------------------------------- |
863 // CCSCSettingsUiMainView::HandleReturnToPreviousViewL |
872 // CCSCSettingsUiMainView::HandleReturnToPreviousViewL |
864 // Handles returning to previous view where settingsui was launced. |
873 // Handles returning to previous view where settingsui was launced. |
950 // |
959 // |
951 void CCSCSettingsUiMainView::ResetViewL() |
960 void CCSCSettingsUiMainView::ResetViewL() |
952 { |
961 { |
953 CSCSETUIDEBUG( "CCSCSettingsUiMainView::ResetViewL - IN" ); |
962 CSCSETUIDEBUG( "CCSCSettingsUiMainView::ResetViewL - IN" ); |
954 |
963 |
|
964 // Do not update view if SNAP list is open because in some cases |
|
965 // there will be problems with title and status bar. |
|
966 if ( iSnapListOpen ) |
|
967 { |
|
968 CSCSETUIDEBUG( "CCSCSettingsUiMainView::ResetViewL - OUT" ); |
|
969 return; |
|
970 } |
955 // Create container when view is activated. |
971 // Create container when view is activated. |
956 if ( !iContainer ) |
972 if ( !iContainer ) |
957 { |
973 { |
958 iContainer = new (ELeave) CCSCSettingsUiMainContainer( iModel ); |
974 iContainer = new (ELeave) CCSCSettingsUiMainContainer( iModel ); |
959 iContainer->SetMopParent( this ); |
975 iContainer->SetMopParent( this ); |