48 #include "xnmenu.h" |
48 #include "xnmenu.h" |
49 #include "xnmenuadapter.h" |
49 #include "xnmenuadapter.h" |
50 #include "xncomponentnodeimpl.h" |
50 #include "xncomponentnodeimpl.h" |
51 #include "xnnodepluginif.h" |
51 #include "xnnodepluginif.h" |
52 #include "xnoomsyshandler.h" |
52 #include "xnoomsyshandler.h" |
|
53 #include "xnbackgroundmanager.h" |
53 |
54 |
54 // Constants |
55 // Constants |
55 _LIT8( KEmptyWidgetUid, "0x2001f47f" ); |
56 _LIT8( KEmptyWidgetUid, "0x2001f47f" ); |
56 _LIT8( KStateError, "Error" ); |
57 _LIT8( KStateError, "Error" ); |
57 |
58 |
113 CleanupStack::Pop( type ); |
114 CleanupStack::Pop( type ); |
114 |
115 |
115 node->SetImpl( impl ); |
116 node->SetImpl( impl ); |
116 node->SetUiEngine( aUiEngine ); |
117 node->SetUiEngine( aUiEngine ); |
117 |
118 |
118 CXnDomStringPool& sp( aUiEngine.ODT()->DomDocument().StringPool() ); |
119 CXnDomStringPool* sp( aUiEngine.ODT()->DomDocument().StringPool() ); |
119 |
120 |
120 CXnProperty* name = CXnProperty::NewL( |
121 CXnProperty* name = CXnProperty::NewL( |
121 XnPropertyNames::action::trigger::KName, aStringValue, |
122 XnPropertyNames::action::trigger::KName, aStringValue, |
122 CXnDomPropertyValue::EString, sp ); |
123 CXnDomPropertyValue::EString, *sp ); |
123 |
124 |
124 CleanupStack::PushL( name ); |
125 CleanupStack::PushL( name ); |
125 node->SetPropertyL( name ); |
126 node->SetPropertyL( name ); |
126 CleanupStack::Pop( name ); |
127 CleanupStack::Pop( name ); |
127 |
128 |
128 CXnProperty* value = CXnProperty::NewL( |
129 CXnProperty* value = CXnProperty::NewL( |
129 XnPropertyNames::action::KValue, |
130 XnPropertyNames::action::KValue, |
130 KNullDesC8, CXnDomPropertyValue::EString, sp ); |
131 KNullDesC8, CXnDomPropertyValue::EString, *sp ); |
131 |
132 |
132 CleanupStack::PushL( value ); |
133 CleanupStack::PushL( value ); |
133 node->SetPropertyL( value ); |
134 node->SetPropertyL( value ); |
134 CleanupStack::Pop( value ); |
135 CleanupStack::Pop( value ); |
135 |
136 |
869 |
870 |
870 // Activate view |
871 // Activate view |
871 if ( next.Occupied() ) |
872 if ( next.Occupied() ) |
872 { |
873 { |
873 iAppUiAdapter.ViewAdapter().ActivateContainerL( next ); |
874 iAppUiAdapter.ViewAdapter().ActivateContainerL( next ); |
|
875 UpdateWallpaperL( current, next ); |
874 } |
876 } |
875 } |
877 } |
876 |
878 |
877 // ----------------------------------------------------------------------------- |
879 // ----------------------------------------------------------------------------- |
878 // CXnViewManager::ActivatePreviousViewL() |
880 // CXnViewManager::ActivatePreviousViewL() |
891 |
893 |
892 // Activate view |
894 // Activate view |
893 if ( prev.Occupied() ) |
895 if ( prev.Occupied() ) |
894 { |
896 { |
895 iAppUiAdapter.ViewAdapter().ActivateContainerL( prev ); |
897 iAppUiAdapter.ViewAdapter().ActivateContainerL( prev ); |
|
898 UpdateWallpaperL( current, prev ); |
896 } |
899 } |
897 } |
900 } |
898 |
901 |
899 // ----------------------------------------------------------------------------- |
902 // ----------------------------------------------------------------------------- |
900 // CXnViewManager::AddViewL() |
903 // CXnViewManager::AddViewL() |
1628 ->SetStringValueL( CXnDomPropertyValue::EString, value ); |
1631 ->SetStringValueL( CXnDomPropertyValue::EString, value ); |
1629 } |
1632 } |
1630 } |
1633 } |
1631 |
1634 |
1632 node->ReportXuikonEventL( *iWidgetAmountTrigger ); |
1635 node->ReportXuikonEventL( *iWidgetAmountTrigger ); |
|
1636 } |
|
1637 |
|
1638 // ----------------------------------------------------------------------------- |
|
1639 // CXnViewManager::UpdateWallpaperL |
|
1640 // ----------------------------------------------------------------------------- |
|
1641 // |
|
1642 void CXnViewManager::UpdateWallpaperL( CXnViewData& aCurrent, CXnViewData& aNew ) |
|
1643 { |
|
1644 iEditor->BgManager().WallpaperChanged( aCurrent, aNew ); |
1633 } |
1645 } |
1634 |
1646 |
1635 // ----------------------------------------------------------------------------- |
1647 // ----------------------------------------------------------------------------- |
1636 // CXnViewManager::ShowOperationFailedMessageL |
1648 // CXnViewManager::ShowOperationFailedMessageL |
1637 // ----------------------------------------------------------------------------- |
1649 // ----------------------------------------------------------------------------- |