mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cpropertysettingutility.cpp
branchRCL_3
changeset 14 05b0d2323768
parent 9 bee149131e4b
child 17 780c925249c1
equal deleted inserted replaced
9:bee149131e4b 14:05b0d2323768
    38     {
    38     {
    39     // Do nothing
    39     // Do nothing
    40     }
    40     }
    41 
    41 
    42 // -----------------------------------------------------------------------------
    42 // -----------------------------------------------------------------------------
    43 // CPropertySettingUtility::SetMetaDataToWrapperL
    43 // CPropertySettingUtility::SetMetaDataToWrapper
    44 //
    44 //
    45 // -----------------------------------------------------------------------------
    45 // -----------------------------------------------------------------------------
    46 //
    46 //
    47 EXPORT_C TMTPResponseCode CPropertySettingUtility::SetMetaDataToWrapperL( MMmMtpDpConfig& aDpConfig,
    47 EXPORT_C TMTPResponseCode CPropertySettingUtility::SetMetaDataToWrapper( MMmMtpDpConfig& aDpConfig,
    48     const TUint16 aPropCode,
    48     const TUint16 aPropCode,
    49     MMTPType& aNewData,
    49     MMTPType& aNewData,
    50     const CMTPObjectMetaData& aObjectMetaData )
    50     const CMTPObjectMetaData& aObjectMetaData )
    51     {
    51     {
    52     TMTPResponseCode responseCode = EMTPRespCodeOK;
    52     TMTPResponseCode responseCode = EMTPRespCodeOK;
    53     TRAPD( err, aDpConfig.GetWrapperL().SetObjectMetadataValueL( aPropCode,
    53     TRAPD( err, aDpConfig.GetWrapperL().SetObjectMetadataValueL( aPropCode,
    54             aNewData,
    54             aNewData,
    55             aObjectMetaData ) );
    55             aObjectMetaData ) );
    56 
    56 
    57     PRINT1( _L("MM MTP <> CPropertySettingUtility::SetMetaDataToWrapperL err = %d"), err);
    57     PRINT1( _L("MM MTP <> CPropertySettingUtility::SetMetaDataToWrapper err = %d"), err);
    58 
    58 
    59     if ( err == KErrNone )
    59     if ( err == KErrNone )
    60         responseCode = EMTPRespCodeOK;
    60         responseCode = EMTPRespCodeOK;
    61     else // Other errors are not SetMetaDataToWrapperL related, should be respond before this calling
    61     else // Other errors are not SetMetaDataToWrapper related, should be respond before this calling
    62         responseCode = EMTPRespCodeGeneralError;
    62         responseCode = EMTPRespCodeGeneralError;
    63 
    63 
    64     PRINT1( _L( "MM MTP <= CPropertySettingUtility::SetMetaDataToWrapperL resCode = 0x%x" ), responseCode );
    64     PRINT1( _L( "MM MTP <= CPropertySettingUtility::SetMetaDataToWrapper resCode = 0x%x" ), responseCode );
    65 
    65 
    66     return responseCode;
    66     return responseCode;
    67     }
    67     }
    68 
    68 
    69 // end of file
    69 // end of file