idlehomescreen/xmluicontroller/src/aixmluiutils.cpp
changeset 2 08c6ee43b396
parent 0 f72a12da539e
equal deleted inserted replaced
1:5315654608de 2:08c6ee43b396
   437                           const TDesC8& aPropertyName,
   437                           const TDesC8& aPropertyName,
   438                           const TDesC8& aPropertyValue )
   438                           const TDesC8& aPropertyValue )
   439         {
   439         {
   440         // Create new property value and property
   440         // Create new property value and property
   441         CXnDomPropertyValue* value = CXnDomPropertyValue::NewL(
   441         CXnDomPropertyValue* value = CXnDomPropertyValue::NewL(
   442                                                 aUiElement.UiEngineL()->StringPool() );
   442                                                 &aUiElement.UiEngineL()->StringPool() );
   443         CleanupStack::PushL( value );
   443         CleanupStack::PushL( value );
   444         
   444         
   445         CXnProperty* property = CXnProperty::NewL(
   445         CXnProperty* property = CXnProperty::NewL(
   446                                                 aPropertyName,
   446                                                 aPropertyName,
   447                                                 value,
   447                                                 value,
  1064     CXnNodeAppIf& aNode, 
  1064     CXnNodeAppIf& aNode, 
  1065     const TDesC8& aPropertyName, 
  1065     const TDesC8& aPropertyName, 
  1066     const TDesC8& aNewValueString )
  1066     const TDesC8& aNewValueString )
  1067 	{
  1067 	{
  1068 	// Set defined property to defined node.
  1068 	// Set defined property to defined node.
  1069     CXnDomPropertyValue* newValue = CXnDomPropertyValue::NewL(aNode.UiEngineL()->StringPool());
  1069     CXnDomPropertyValue* newValue = CXnDomPropertyValue::NewL( &aNode.UiEngineL()->StringPool() );
  1070     CleanupStack::PushL(newValue);
  1070     CleanupStack::PushL(newValue);
  1071     newValue->SetStringValueL(CXnDomPropertyValue::EString, aNewValueString);
  1071     newValue->SetStringValueL(CXnDomPropertyValue::EString, aNewValueString);
  1072     CXnProperty* prop = CXnProperty::NewL(aPropertyName, newValue, aNode.UiEngineL()->StringPool());
  1072     CXnProperty* prop = CXnProperty::NewL(aPropertyName, newValue, aNode.UiEngineL()->StringPool());
  1073     CleanupStack::PushL(prop);
  1073     CleanupStack::PushL(prop);
  1074 	aNode.SetPropertyL(prop);
  1074 	aNode.SetPropertyL(prop);