mtpfws/mtpfw/dataproviders/devdp/src/cmtpgetdevicepropdesc.cpp
changeset 52 866b4af7ffbe
parent 49 c20dd21d1eb4
child 60 841f70763fbe
equal deleted inserted replaced
51:64200268cac2 52:866b4af7ffbe
   420     delete iPropDesc;
   420     delete iPropDesc;
   421     iPropDesc = NULL;
   421     iPropDesc = NULL;
   422     iPropDesc = CMTPTypeDevicePropDesc::NewL(EMTPDevicePropCodeFunctionalID, 1, 0, NULL); 
   422     iPropDesc = CMTPTypeDevicePropDesc::NewL(EMTPDevicePropCodeFunctionalID, 1, 0, NULL); 
   423     
   423     
   424     delete iData;
   424     delete iData;
       
   425     iData = NULL;
   425 	iData = GetGUIDL( MMTPFrameworkConfig::EDeviceDefaultFuncationalID ); 
   426 	iData = GetGUIDL( MMTPFrameworkConfig::EDeviceDefaultFuncationalID ); 
   426 	iPropDesc->SetL(CMTPTypeDevicePropDesc::EFactoryDefaultValue, *iData);
   427 	iPropDesc->SetL(CMTPTypeDevicePropDesc::EFactoryDefaultValue, *iData);
   427 	delete iData;
   428 	delete iData;
       
   429 	iData = NULL;
   428 	iData = GetGUIDL(MMTPFrameworkConfig::EDeviceCurrentFuncationalID); 
   430 	iData = GetGUIDL(MMTPFrameworkConfig::EDeviceCurrentFuncationalID); 
   429 	iPropDesc->SetL(CMTPTypeDevicePropDesc::ECurrentValue, *iData);
   431 	iPropDesc->SetL(CMTPTypeDevicePropDesc::ECurrentValue, *iData);
   430 	
   432 	
   431     SendDataL(*iPropDesc); 
   433     SendDataL(*iPropDesc); 
   432     OstTraceFunctionExit0( CMTPGETDEVICEPROPDESC_SERVICEFUNCTIONALIDL_EXIT );
   434     OstTraceFunctionExit0( CMTPGETDEVICEPROPDESC_SERVICEFUNCTIONALIDL_EXIT );
   441     delete iPropDesc;
   443     delete iPropDesc;
   442     iPropDesc = NULL;
   444     iPropDesc = NULL;
   443     iPropDesc = CMTPTypeDevicePropDesc::NewL(EMTPDevicePropCodeModelID, 0, 0, NULL);   
   445     iPropDesc = CMTPTypeDevicePropDesc::NewL(EMTPDevicePropCodeModelID, 0, 0, NULL);   
   444     
   446     
   445     delete iData;
   447     delete iData;
       
   448     iData = NULL;
   446     iData = GetGUIDL(MMTPFrameworkConfig::EDeviceDefaultModelID);  
   449     iData = GetGUIDL(MMTPFrameworkConfig::EDeviceDefaultModelID);  
   447     iPropDesc->SetL(CMTPTypeDevicePropDesc::EFactoryDefaultValue, *iData);
   450     iPropDesc->SetL(CMTPTypeDevicePropDesc::EFactoryDefaultValue, *iData);
   448     
   451     
   449     delete iData;
   452     delete iData;
       
   453     iData = NULL;
   450     iData = GetGUIDL(MMTPFrameworkConfig::EDeviceCurrentModelID); 
   454     iData = GetGUIDL(MMTPFrameworkConfig::EDeviceCurrentModelID); 
   451 	iPropDesc->SetL(CMTPTypeDevicePropDesc::ECurrentValue, *iData);
   455 	iPropDesc->SetL(CMTPTypeDevicePropDesc::ECurrentValue, *iData);
   452 	
   456 	
   453     SendDataL(*iPropDesc); 
   457     SendDataL(*iPropDesc); 
   454     OstTraceFunctionExit0( CMTPGETDEVICEPROPDESC_SERVICEMODELIDL_EXIT );
   458     OstTraceFunctionExit0( CMTPGETDEVICEPROPDESC_SERVICEMODELIDL_EXIT );