photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlernewmedia.cpp
branchRCL_3
changeset 9 6b87b143d312
parent 2 7d9067c6fcb1
child 25 191387a8b767
equal deleted inserted replaced
5:f7f0874bfe7d 9:6b87b143d312
   300     
   300     
   301     TGlxFetchContextRemover contextRemover(attributeContext, *rootList);
   301     TGlxFetchContextRemover contextRemover(attributeContext, *rootList);
   302     // put to cleanupstack as cleanupstack is emptied before stack objects
   302     // put to cleanupstack as cleanupstack is emptied before stack objects
   303     // are deleted
   303     // are deleted
   304     CleanupClosePushL( contextRemover );
   304     CleanupClosePushL( contextRemover );
   305     	User::LeaveIfError(GlxAttributeRetriever::RetrieveL(*attributeContext, *rootList, ETrue));
   305     User::LeaveIfError(GlxAttributeRetriever::RetrieveL(*attributeContext, *rootList, ETrue));
   306     // context off the list
   306     // context off the list
   307     CleanupStack::PopAndDestroy( &contextRemover );
   307     CleanupStack::PopAndDestroy( &contextRemover );
   308     	
   308     	
   309         TInt index =  rootList->Index(KGlxIdSpaceIdRoot, aCollectionId);
   309         TInt index =  rootList->Index(KGlxIdSpaceIdRoot, aCollectionId);
   310         
   310         
   339     aList.AddContextL(attributeContext, KGlxFetchContextPriorityBlocking);
   339     aList.AddContextL(attributeContext, KGlxFetchContextPriorityBlocking);
   340     TGlxFetchContextRemover contextRemover(attributeContext, aList);
   340     TGlxFetchContextRemover contextRemover(attributeContext, aList);
   341     // put to cleanupstack as cleanupstack is emptied before stack objects
   341     // put to cleanupstack as cleanupstack is emptied before stack objects
   342     // are deleted
   342     // are deleted
   343     CleanupClosePushL( contextRemover );
   343     CleanupClosePushL( contextRemover );
   344     User::LeaveIfError(GlxAttributeRetriever::RetrieveL(*attributeContext, aList, ETrue));
   344     User::LeaveIfError(GlxAttributeRetriever::RetrieveL(*attributeContext, aList, EFalse));
   345     // context off the list
   345     // context off the list
   346     CleanupStack::PopAndDestroy( &contextRemover );
   346     CleanupStack::PopAndDestroy( &contextRemover );
   347     CleanupStack::PopAndDestroy(attributeContext);
   347     CleanupStack::PopAndDestroy(attributeContext);
   348     
   348     
   349     RArray<TInt> numbers;
   349     RArray<TInt> numbers;