equal
deleted
inserted
replaced
14 * Description: Native UI controller. |
14 * Description: Native UI controller. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // System includes |
18 // System includes |
|
19 #include <startupdomainpskeys.h> |
19 #include <bautils.h> |
20 #include <bautils.h> |
20 #include <e32property.h> |
21 #include <e32property.h> |
21 #include <ecom/ecom.h> |
22 #include <ecom/ecom.h> |
22 #include <ecom/implementationproxy.h> |
23 #include <ecom/implementationproxy.h> |
23 #include <centralrepository.h> |
24 #include <centralrepository.h> |
453 THsPublisherInfo profile( KProfilePluginUid, |
454 THsPublisherInfo profile( KProfilePluginUid, |
454 KProfilePluginName, KNativeUiNamespace ); |
455 KProfilePluginName, KNativeUiNamespace ); |
455 |
456 |
456 iPlugins.Append( profile ); |
457 iPlugins.Append( profile ); |
457 |
458 |
458 iFwStateHandler->LoadPlugin( profile, EAiFwSystemStartup ); |
459 iFwStateHandler->LoadPlugin( profile, EAiFwSystemStartup ); |
459 |
|
460 TRAP_IGNORE( iAppUi->StartL() ); |
|
461 } |
460 } |
462 |
461 |
463 // We need to load the resource file here if we are not main controller. |
462 // We need to load the resource file here if we are not main controller. |
464 // If we are the main controller the loading is done in appui |
463 // If we are the main controller the loading is done in appui |
465 // Also the toolbar renderer is loaded here. |
464 // Also the toolbar renderer is loaded here. |
622 TPtr settingKeyPtr = settingKey->Des(); |
621 TPtr settingKeyPtr = settingKey->Des(); |
623 |
622 |
624 TInt32 settingId = 0; |
623 TInt32 settingId = 0; |
625 |
624 |
626 TInt err = KErrNone; |
625 TInt err = KErrNone; |
627 TBool settingFound = EFalse; |
626 //TBool settingFound = EFalse; |
628 |
627 |
629 CRepository *settingsRepository = CRepository::NewLC( TUid::Uid( KCRUidActiveIdleLV ) ); |
628 CRepository *settingsRepository = CRepository::NewLC( TUid::Uid( KCRUidActiveIdleLV ) ); |
630 |
629 |
631 while ( moreSettings ) |
630 while ( moreSettings ) |
632 { |
631 { |
633 settingFound = EFalse; |
632 //settingFound = EFalse; |
634 |
633 |
635 pluginIdPtr.Zero(); |
634 pluginIdPtr.Zero(); |
636 settingValuePtr.Zero(); |
635 settingValuePtr.Zero(); |
637 settingKeyPtr.Zero(); |
636 settingKeyPtr.Zero(); |
638 //Get the name of plugin with the Settings/ prefix |
637 //Get the name of plugin with the Settings/ prefix |
672 |
671 |
673 // Existing setting found => replace it |
672 // Existing setting found => replace it |
674 if ( item.Key() == settingId && item.PublisherId() == aPublisherInfo.Uid() ) |
673 if ( item.Key() == settingId && item.PublisherId() == aPublisherInfo.Uid() ) |
675 { |
674 { |
676 item.SetValueL( settingValuePtr, EFalse ); |
675 item.SetValueL( settingValuePtr, EFalse ); |
677 settingFound = ETrue; |
676 //settingFound = ETrue; |
678 break; |
677 break; |
679 } |
678 } |
680 } |
679 } |
681 // Existing setting not found => append new one ONLY if we |
680 // Existing setting not found => append new one ONLY if we |
682 // are dealing with the icon overrides |
681 // are dealing with the icon overrides |
722 // |
721 // |
723 // ---------------------------------------------------------------------------- |
722 // ---------------------------------------------------------------------------- |
724 // |
723 // |
725 void CNativeUiController::ActivateUI() |
724 void CNativeUiController::ActivateUI() |
726 { |
725 { |
727 if( iAppUi ) |
726 if( iAppUi && iRunningAsMain ) |
728 { |
727 { |
729 TRAP_IGNORE( iAppUi->StartL() ); |
728 TRAP_IGNORE( iAppUi->StartL() ); |
|
729 |
|
730 TInt value( EIdlePhase1Ok ); |
|
731 |
|
732 RProperty::Get( KPSUidStartup, KPSIdlePhase1Ok, value ); |
|
733 |
|
734 if ( value == EIdlePhase1NOK ) |
|
735 { |
|
736 RProperty::Set( KPSUidStartup, KPSIdlePhase1Ok, EIdlePhase1Ok ); |
|
737 } |
730 } |
738 } |
731 } |
739 } |
732 |
740 |
733 // ---------------------------------------------------------------------------- |
741 // ---------------------------------------------------------------------------- |
734 // CNativeUiController::GetContentObserver() |
742 // CNativeUiController::GetContentObserver() |