bluetoothappprofiles/avrcp/mediabrowseapi/src/remconmediabrowsetargetbase.cpp
changeset 1 6a1fe72036e3
parent 0 f63038272f30
child 19 43824b19ee35
equal deleted inserted replaced
0:f63038272f30 1:6a1fe72036e3
   658 		{
   658 		{
   659 		request.Close();
   659 		request.Close();
   660 		SendGetFolderItemsResponse(KErrAvrcpAirInvalidParameter, KNullDesC8);
   660 		SendGetFolderItemsResponse(KErrAvrcpAirInvalidParameter, KNullDesC8);
   661 		return;
   661 		return;
   662 		}
   662 		}
   663 
   663 	
   664 	if(request.iScope == AvrcpBrowsing::KSearchScope && !iSearchSupported)
   664 	if(request.iScope == AvrcpBrowsing::KSearchScope && !iSearchSupported)
   665 	    {
   665 		{
   666         request.Close();
   666 		request.Close();
   667         SendGetFolderItemsResponse(KErrAvrcpAirSearchNotSupported, KNullDesC8);
   667 		SendGetFolderItemsResponse(KErrAvrcpAirSearchNotSupported, KNullDesC8);
   668         return;
   668 		return;
   669         }
   669 		}
   670 	
   670 	
   671 	if (request.CopyAttributes(iMediaAttributeIds) != KErrNone)
   671 	if (request.CopyAttributes(iMediaAttributeIds) != KErrNone)
   672 		{
   672 		{
   673 		request.Close();
   673 		request.Close();
   674 		SendGetFolderItemsResponse(KErrAvrcpAirInternalError, KNullDesC8);
   674 		SendGetFolderItemsResponse(KErrAvrcpAirInternalError, KNullDesC8);
   683 	else if(request.iScope == AvrcpBrowsing::KNowPlayingScope)
   683 	else if(request.iScope == AvrcpBrowsing::KNowPlayingScope)
   684 		{
   684 		{
   685 		iScope = ENowPlayingFolder;
   685 		iScope = ENowPlayingFolder;
   686 		}
   686 		}
   687 	else if(request.iScope == AvrcpBrowsing::KSearchScope)
   687 	else if(request.iScope == AvrcpBrowsing::KSearchScope)
   688         {
   688 		{
   689         iScope = ESearchResultFolder;
   689 		iScope = ESearchResultFolder;
   690         }
   690 		}
   691 	else
   691 	else
   692 		{
   692 		{
   693 		request.Close();
   693 		request.Close();
   694 		SendGetFolderItemsResponse(KErrAvrcpAirInvalidScope, KNullDesC8);
   694 		SendGetFolderItemsResponse(KErrAvrcpAirInvalidScope, KNullDesC8);
   695 		return;
   695 		return;