harvester/composerplugins/imagecomposer/src/imagecomposerao.cpp
changeset 20 6dfc5f825351
parent 1 acef663c1218
child 21 50bf9db68373
equal deleted inserted replaced
3:b73a2e62868f 20:6dfc5f825351
   238         {
   238         {
   239         case ERequestGetObject:
   239         case ERequestGetObject:
   240             {
   240             {
   241             if( iItemQueue.Count() <= 0 )
   241             if( iItemQueue.Count() <= 0 )
   242             	{
   242             	{
       
   243                 iItemQueue.Compress();
   243             	SetNextRequest( ERequestReady );
   244             	SetNextRequest( ERequestReady );
   244             	}
   245             	}
   245             else
   246             else
   246             	{
   247             	{
   247             	TItemId mdeObjectId = KNoId;
   248             	TItemId mdeObjectId = KNoId;
   292             }
   293             }
   293             break;
   294             break;
   294             
   295             
   295         case ERequestReady:
   296         case ERequestReady:
   296             {
   297             {
       
   298             iForceObjectIds.Compress();
   297             }
   299             }
   298             break;
   300             break;
   299             
   301             
   300         default:
   302         default:
   301             {
   303             {
   356     if( iItemQueue.Count() > 0 )
   358     if( iItemQueue.Count() > 0 )
   357     	{
   359     	{
   358     	objectId = iItemQueue[0];
   360     	objectId = iItemQueue[0];
   359     	aMdEObjectId = objectId;
   361     	aMdEObjectId = objectId;
   360     	iItemQueue.Remove( 0 );
   362     	iItemQueue.Remove( 0 );
   361     	}
       
   362     else
       
   363     	{
       
   364     	iItemQueue.Compress();
       
   365     	}
   363     	}
   366     
   364     
   367     // get object from db (NULL if not found)
   365     // get object from db (NULL if not found)
   368     CMdEObject* mdeObject = iSession->GetObjectL( objectId, *iImageObjectDef );
   366     CMdEObject* mdeObject = iSession->GetObjectL( objectId, *iImageObjectDef );
   369 
   367