harvester/server/src/harvesterqueue.cpp
changeset 54 a3cc46f37772
parent 35 f727727520eb
equal deleted inserted replaced
36:aa5a574040a4 54:a3cc46f37772
   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 )
   147     if ( iBlacklist && aItem->Origin() != MdeConstants::Object::ECamera )
   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     	
   177     	if( !iHarvesterAO->IsActive() )
   178     	if( !iHarvesterAO->IsActive() )
   178     	    {
   179     	    {
   179             iHarvesterAO->SetPriority( KHarvesterPriorityMonitorPlugin );
   180             iHarvesterAO->SetPriority( KHarvesterPriorityMonitorPlugin );
   180     	    }
   181     	    }
   181     	}
   182     	}