menufw/hierarchynavigator/hnmetadatamodel/src/hnxmlmodelprovider.cpp
changeset 4 4d54b72983ae
parent 0 f72a12da539e
child 54 1b758917cafc
equal deleted inserted replaced
3:fb3763350a08 4:4d54b72983ae
    22 #include "hnglobals.h"
    22 #include "hnglobals.h"
    23 #include "hnconvutils.h"
    23 #include "hnconvutils.h"
    24 #include "menudebug.h"
    24 #include "menudebug.h"
    25 #include "hnhelper.inl"
    25 #include "hnhelper.inl"
    26 #include "hnmdmodel.h"
    26 #include "hnmdmodel.h"
       
    27 #include "hnmdmenuitem.h"
    27 
    28 
    28 // ======== MEMBER FUNCTIONS ========
    29 // ======== MEMBER FUNCTIONS ========
    29 
    30 
    30 // ---------------------------------------------------------------------------
    31 // ---------------------------------------------------------------------------
    31 // 
    32 // 
   304 	for (TInt i(0); i < amount; i++)
   305 	for (TInt i(0); i < amount; i++)
   305 		{
   306 		{
   306 		TXmlEngElement child = children.Next();
   307 		TXmlEngElement child = children.Next();
   307 		TPtrC8 childName = child.Name();
   308 		TPtrC8 childName = child.Name();
   308 
   309 
   309 		if (!childName.Compare(KEventName8) || !childName.Compare(
   310 		if (!childName.Compare(KEventName8) 
   310 				KMenuItemName8) ||!childName.Compare( KMenuItemSpecificName8 ) 
   311 				|| CHnMdMenuItem::IsMenuItemElementName( childName )
   311 				|| !child.Name().Compare(KMenuToolbar8))
   312 				|| !child.Name().Compare(KMenuToolbar8))
   312 			{
   313 			{
   313 			ChangeEventNamesToIdsL(child);
   314 			ChangeEventNamesToIdsL(child);
   314 			}
   315 			}
   315 		else if (!childName.Compare(KEditModeItem8))
   316 		else if (!childName.Compare(KEditModeItem8))
   589         aElement.GetChildElements(children);
   590         aElement.GetChildElements(children);
   590         TInt count( children.Count() );
   591         TInt count( children.Count() );
   591         for( TInt i( 0 ); i < count; i++ )
   592         for( TInt i( 0 ); i < count; i++ )
   592             {
   593             {
   593             TXmlEngElement element = children.Next();
   594             TXmlEngElement element = children.Next();
   594             if ( !element.Name().Compare( KMenuItemName8 ) ||
   595             if ( CHnMdMenuItem::IsMenuItemElementName( element.Name() ) ||
   595             		!element.Name().Compare( KMenuItemSpecificName8 ) ||
       
   596                     !element.Name().Compare( KMenuButton8 ) )
   596                     !element.Name().Compare( KMenuButton8 ) )
   597                 {
   597                 {
   598                 ChangeEventNamesToIdsL( element );
   598                 ChangeEventNamesToIdsL( element );
   599                 }
   599                 }
   600             }
   600             }