photosgallery/common/src/glxcommandparser.cpp
branchRCL_3
changeset 25 191387a8b767
parent 18 bcb43dc84c44
child 57 ea65f74e6de4
equal deleted inserted replaced
22:2dac0fdba72b 25:191387a8b767
   204 /// @todo minor: Rowland Cook 12/06/2007 Add method decription.
   204 /// @todo minor: Rowland Cook 12/06/2007 Add method decription.
   205 // -----------------------------------------------------------------------------
   205 // -----------------------------------------------------------------------------
   206 // TTGlxCommandParser::ArrayValueL
   206 // TTGlxCommandParser::ArrayValueL
   207 // -----------------------------------------------------------------------------
   207 // -----------------------------------------------------------------------------
   208 //	
   208 //	
   209 void TGlxCommandParser::ArrayValueL(const TMPXAttribute & aAttribute, RArray<TGlxMediaId>& aArray, const CMPXCommand& aCommand)
   209 void TGlxCommandParser::ArrayValueL(const TMPXAttribute & aAttribute, 
   210     {
   210         RArray<TGlxMediaId>& aArray, const CMPXCommand& aCommand)
       
   211     {
       
   212     CleanupClosePushL(aArray);
   211     if (!aCommand.IsSupported(aAttribute) || aCommand.Type(aAttribute) != EMPXTypeCObject)
   213     if (!aCommand.IsSupported(aAttribute) || aCommand.Type(aAttribute) != EMPXTypeCObject)
   212         {
   214         {
   213         User::Leave(KErrArgument);
   215         User::Leave(KErrArgument);
   214         }
   216         }
   215   
   217   
   226     	for( TInt i = 0 ; i < list.Count() ; i++ )
   228     	for( TInt i = 0 ; i < list.Count() ; i++ )
   227     		{
   229     		{
   228     		aArray.AppendL(TGlxMediaId(list[i]));
   230     		aArray.AppendL(TGlxMediaId(list[i]));
   229     		}
   231     		}
   230     	}
   232     	}
       
   233     CleanupStack::Pop(&aArray);
   231     }
   234     }
   232 
   235 
   233 /// @todo minor: Rowland Cook 12/06/2007 Add method decription.
   236 /// @todo minor: Rowland Cook 12/06/2007 Add method decription.
   234 // -----------------------------------------------------------------------------
   237 // -----------------------------------------------------------------------------
   235 // TGlxCommandParser::ValueL
   238 // TGlxCommandParser::ValueL