equal
deleted
inserted
replaced
461 // The data type does not start with "audio" or video and it's not RNG file. |
461 // The data type does not start with "audio" or video and it's not RNG file. |
462 return KErrNotSupported; |
462 return KErrNotSupported; |
463 } |
463 } |
464 |
464 |
465 // Check whether file is supported by MMF |
465 // Check whether file is supported by MMF |
466 TBuf8<KMaxDataTypeLength> tempDataType; |
466 TBuf8<KMaxDataTypeLength> tempDataType; |
467 tempDataType.Copy( dataType ); |
467 tempDataType.Copy( dataType ); |
468 |
468 if (!ProfileMmfInfoUtility::IsMimeTypeSupportedL(tempDataType) |
469 if( !ProfileMmfInfoUtility::IsMimeTypeSupportedL( tempDataType ) ) |
469 && !ProfileMmfInfoUtility::IsHeaderDataSupportedL(aFileName)) |
470 { |
470 { |
471 // File is not supported by MMF |
471 // File is not supported by MMF |
472 return KErrNotSupported; |
472 return KErrNotSupported; |
473 } |
473 } |
474 |
474 |
475 // Operator requirement. Check if the tones of this data type are blocked: |
475 // Operator requirement. Check if the tones of this data type are blocked: |
476 if( iProfilesFeatures->IsBlockedType( dataType ) || |
476 if( iProfilesFeatures->IsBlockedType( dataType ) || |
477 iProfilesFeatures->IsExcludedType( dataType ) ) |
477 iProfilesFeatures->IsExcludedType( dataType ) ) |
478 { |
478 { |
479 User::Leave( KErrArgument ); |
479 User::Leave( KErrArgument ); |