mtpfws/mtpfw/dataproviders/dputility/src/cmtpgetobjectpropvalue.cpp
branchRCL_3
changeset 58 142dacf7b30e
parent 48 debf68073f2f
equal deleted inserted replaced
48:debf68073f2f 58:142dacf7b30e
   163 			ServiceNameL();
   163 			ServiceNameL();
   164 			break;
   164 			break;
   165 		case EMTPObjectPropCodeNonConsumable:
   165 		case EMTPObjectPropCodeNonConsumable:
   166 			ServiceNonConsumableL();
   166 			ServiceNonConsumableL();
   167 			break;
   167 			break;
   168 		case EMTPObjectPropCodeHidden:
       
   169 		    ServiceHiddenL();
       
   170 		    break;
       
   171 		default:
   168 		default:
   172 		    User::Leave( KErrNotSupported );
   169 		    User::Leave( KErrNotSupported );
   173 			break;
   170 			break;
   174 		}	
   171 		}	
   175 	}
   172 	}
   266 	{
   263 	{
   267 	iMTPTypeUint8.Set((iObjMeta->Uint(CMTPObjectMetaData::ENonConsumable)));
   264 	iMTPTypeUint8.Set((iObjMeta->Uint(CMTPObjectMetaData::ENonConsumable)));
   268 	SendDataL(iMTPTypeUint8);
   265 	SendDataL(iMTPTypeUint8);
   269 	}
   266 	}
   270 
   267 
   271 void CMTPGetObjectPropValue::ServiceHiddenL()
       
   272     {
       
   273     TBool isHidden = iFileEntry.IsHidden();
       
   274     if ( isHidden )
       
   275         {
       
   276         iMTPTypeUint16.Set(EMTPHidden);
       
   277         }
       
   278     else
       
   279         {
       
   280         iMTPTypeUint16.Set(EMTPVisible);
       
   281         } 
       
   282     SendDataL(iMTPTypeUint16);
       
   283     }
       
   284 
   268 
   285 
   269 
   286 	
   270 	
   287 
   271 
   288 
   272