harvester/server/src/harvesterqueue.cpp
branchRCL_3
changeset 63 e538444823de
parent 53 29d87345eaeb
equal deleted inserted replaced
57:2872ae438bf7 63:e538444823de
   142 void CHarvesterQueue::Append( CHarvesterData* aItem )
   142 void CHarvesterQueue::Append( CHarvesterData* aItem )
   143 	{
   143 	{
   144     WRITELOG( "CHarvesterQueue::Append()" );
   144     WRITELOG( "CHarvesterQueue::Append()" );
   145     TInt err( KErrNone );
   145     TInt err( KErrNone );
   146 
   146 
   147     if ( iBlacklist && aItem->Origin() != MdeConstants::Object::ECamera )
   147     if ( iBlacklist )
   148         {
   148         {
   149         TUint32 mediaId( 0 );
   149         TUint32 mediaId( 0 );
   150 		err = iMediaIdUtil->GetMediaId( aItem->Uri(), mediaId );
   150 		err = iMediaIdUtil->GetMediaId( aItem->Uri(), mediaId );
   151         
   151         
   152         TTime time( 0 );
   152         TTime time( 0 );
   172 
   172 
   173 	// check if fast harvest file and add to start of queue
   173 	// check if fast harvest file and add to start of queue
   174     if ( aItem->ObjectType() == EFastHarvest || aItem->Origin() == MdeConstants::Object::ECamera )
   174     if ( aItem->ObjectType() == EFastHarvest || aItem->Origin() == MdeConstants::Object::ECamera )
   175     	{
   175     	{
   176     	err = iItemQueue.Insert( aItem, 0 );
   176     	err = iItemQueue.Insert( aItem, 0 );
   177     	
       
   178     	if( !iHarvesterAO->IsActive() )
   177     	if( !iHarvesterAO->IsActive() )
   179     	    {
   178     	    {
   180             iHarvesterAO->SetPriority( KHarvesterPriorityMonitorPlugin );
   179             iHarvesterAO->SetPriority( KHarvesterPriorityMonitorPlugin );
   181     	    }
   180     	    }
   182     	}
   181     	}