mtpfws/mtpfw/dataproviders/dputility/src/cmtpgetobjectpropvalue.cpp
branchRCL_3
changeset 48 debf68073f2f
parent 11 4843bb5893b6
child 58 142dacf7b30e
equal deleted inserted replaced
45:74aa6861c87d 48:debf68073f2f
   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;
   168 		default:
   171 		default:
   169 		    User::Leave( KErrNotSupported );
   172 		    User::Leave( KErrNotSupported );
   170 			break;
   173 			break;
   171 		}	
   174 		}	
   172 	}
   175 	}
   263 	{
   266 	{
   264 	iMTPTypeUint8.Set((iObjMeta->Uint(CMTPObjectMetaData::ENonConsumable)));
   267 	iMTPTypeUint8.Set((iObjMeta->Uint(CMTPObjectMetaData::ENonConsumable)));
   265 	SendDataL(iMTPTypeUint8);
   268 	SendDataL(iMTPTypeUint8);
   266 	}
   269 	}
   267 
   270 
       
   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     }
   268 
   284 
   269 
   285 
   270 	
   286 	
   271 
   287 
   272 
   288