equal
deleted
inserted
replaced
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 |