674 void CCSCServiceView::DynInitMenuPaneL( TInt aResourceId, |
674 void CCSCServiceView::DynInitMenuPaneL( TInt aResourceId, |
675 CEikMenuPane* aMenuPane ) |
675 CEikMenuPane* aMenuPane ) |
676 { |
676 { |
677 CSCDEBUG( "CCSCServiceView::DynInitMenuPaneL - begin" ); |
677 CSCDEBUG( "CCSCServiceView::DynInitMenuPaneL - begin" ); |
678 |
678 |
679 if ( R_CSC_SERVICEVIEW_MENU == aResourceId && aMenuPane ) |
679 if ( R_CSC_SERVICEVIEW_MENU == aResourceId && aMenuPane && iContainer ) |
680 { |
680 { |
681 TBool itemSpecificCommandsEnabled = |
681 TBool itemSpecificCommandsEnabled = |
682 MenuBar()->ItemSpecificCommandsEnabled(); |
682 MenuBar()->ItemSpecificCommandsEnabled(); |
683 |
683 |
684 if( ( iContainer->CurrentItemIndex() >= 0 ) && |
684 if( ( iContainer->CurrentItemIndex() >= 0 ) && |
811 // --------------------------------------------------------------------------- |
811 // --------------------------------------------------------------------------- |
812 // |
812 // |
813 void CCSCServiceView::TimerExpired() |
813 void CCSCServiceView::TimerExpired() |
814 { |
814 { |
815 CSCDEBUG( "CCSCServiceView::TimerExpired - begin" ); |
815 CSCDEBUG( "CCSCServiceView::TimerExpired - begin" ); |
816 |
816 |
817 iStartupHandler.ResetUid( CCSCEngStartupHandler::EPluginUid ); |
817 iStartupHandler.ResetUid( CCSCEngStartupHandler::EPluginUid ); |
818 iOfferedPluginUids.Append( iPluginInfo.iPluginsUid ); |
818 iOfferedPluginUids.Append( iPluginInfo.iPluginsUid ); |
819 |
819 |
820 CCSCNoteUtilities::TCSCNoteType |
820 CCSCNoteUtilities::TCSCNoteType |
821 type = CCSCNoteUtilities::ECSCConfigureServiceQuery; |
821 type = CCSCNoteUtilities::ECSCConfigureServiceQuery; |
822 |
822 TBool configure( EFalse ); |
823 TRAP_IGNORE |
823 TRAP_IGNORE |
824 ( |
824 ( |
825 if ( CCSCNoteUtilities::ShowCommonQueryL( |
825 if ( CCSCNoteUtilities::ShowCommonQueryL( |
826 type, iPluginInfo.iProviderName ) ) |
826 type, iPluginInfo.iProviderName ) ) |
827 { |
827 { |
828 iServicePluginHandler.DoProvisioningL( |
828 iServicePluginHandler.DoProvisioningL( |
829 iPluginInfo.iPluginsUid, KCSCServiceViewId ); |
829 iPluginInfo.iPluginsUid, KCSCServiceViewId ); |
|
830 // User has accepted plugin configuration query. |
|
831 // Return to avoid launching a new query on top of |
|
832 // current configuration process. |
|
833 configure = ETrue; |
830 } |
834 } |
831 ); |
835 ); |
|
836 if ( configure ) |
|
837 { |
|
838 return; |
|
839 } |
832 |
840 |
833 iNextPluginIndex++; |
841 iNextPluginIndex++; |
834 TInt pluginCount = iServicePluginHandler.PluginCount( |
842 TInt pluginCount = iServicePluginHandler.PluginCount( |
835 CCSCEngServicePluginHandler::EInitialized ); |
843 CCSCEngServicePluginHandler::EInitialized ); |
836 |
844 |
837 for ( ; iNextPluginIndex < pluginCount; iNextPluginIndex++ ) |
845 for ( ; iNextPluginIndex < pluginCount; iNextPluginIndex++ ) |
838 { |
846 { |
839 CSCDEBUG2( "CCSCServiceView::TimerExpired -iNextPluginIndex = %d", |
847 CSCDEBUG2( "CCSCServiceView::TimerExpired -iNextPluginIndex = %d", |
840 iNextPluginIndex ); |
848 iNextPluginIndex ); |
841 |
849 |
842 iPluginInfo = |
850 iPluginInfo = |
843 iServicePluginHandler.ItemFromPluginInfoArray( iNextPluginIndex ); |
851 iServicePluginHandler.ItemFromPluginInfoArray( iNextPluginIndex ); |
844 |
852 |
845 if ( KNullUid != iUid ) |
853 if ( KNullUid != iPluginInfo.iPluginsUid && !iPluginInfo.iProvisioned ) |
846 { |
854 { |
847 if ( iUid == iPluginInfo.iPluginsUid && !iPluginInfo.iProvisioned ) |
855 iEngTimer->StartTimer( CCSCEngTimer::ENoteDelayTimer ); |
848 { |
856 break; |
849 iEngTimer->StartTimer( CCSCEngTimer::ENoteDelayTimer ); |
857 } |
850 break; |
858 |
851 } |
|
852 } |
|
853 else |
|
854 { |
|
855 if ( !iPluginInfo.iProvisioned ) |
|
856 { |
|
857 iEngTimer->StartTimer( CCSCEngTimer::ENoteDelayTimer ); |
|
858 break; |
|
859 } |
|
860 } |
|
861 } |
859 } |
862 CSCDEBUG( "CCSCServiceView::TimerExpired - end" ); |
860 CSCDEBUG( "CCSCServiceView::TimerExpired - end" ); |
863 } |
861 } |
864 |
862 |