301 |
301 |
302 formatBuf.Append( KMtpVideoParentalRating ); |
302 formatBuf.Append( KMtpVideoParentalRating ); |
303 formatBuf.Append( KMtpVideoParentalRatingType ); |
303 formatBuf.Append( KMtpVideoParentalRatingType ); |
304 formatBuf.Append( KMtpVideoCommaSign ); |
304 formatBuf.Append( KMtpVideoCommaSign ); |
305 |
305 |
306 formatBuf.Append( KMtpVideoUseCount ); |
|
307 formatBuf.Append( KMtpVideoUseCountType ); |
|
308 formatBuf.Append( KMtpVideoCommaSign ); |
|
309 |
|
310 formatBuf.Append( KMtpVideoDRM ); |
306 formatBuf.Append( KMtpVideoDRM ); |
311 formatBuf.Append( KMtpVideoDRMType ); |
307 formatBuf.Append( KMtpVideoDRMType ); |
312 formatBuf.Append( KMtpVideoCommaSign ); |
308 formatBuf.Append( KMtpVideoCommaSign ); |
313 |
309 |
314 formatBuf.Append( KMtpVideoDeleted ); |
310 formatBuf.Append( KMtpVideoDeleted ); |
660 iRecordSet.SetColL( num, KNullDesC ); |
656 iRecordSet.SetColL( num, KNullDesC ); |
661 |
657 |
662 num = iColSet->ColNo( KMtpVideoParentalRating ); |
658 num = iColSet->ColNo( KMtpVideoParentalRating ); |
663 iRecordSet.SetColL( num, KNullDesC ); |
659 iRecordSet.SetColL( num, KNullDesC ); |
664 |
660 |
665 num = iColSet->ColNo( KMtpVideoUseCount ); |
|
666 iRecordSet.SetColL( num, 0 ); |
|
667 |
|
668 num = iColSet->ColNo( KMtpVideoDRM ); |
661 num = iColSet->ColNo( KMtpVideoDRM ); |
669 iRecordSet.SetColL( num, 0 ); |
662 iRecordSet.SetColL( num, 0 ); |
670 } |
663 } |
671 else |
664 else |
672 { |
665 { |
1001 |
994 |
1002 case EMTPObjectPropCodeParentalRating: |
995 case EMTPObjectPropCodeParentalRating: |
1003 { |
996 { |
1004 PRINT( _L( "MM MTP <> EMTPObjectPropCodeParentalRating-MD" ) ); |
997 PRINT( _L( "MM MTP <> EMTPObjectPropCodeParentalRating-MD" ) ); |
1005 data = ReadLongTextL( KMtpVideoParentalRating ); |
998 data = ReadLongTextL( KMtpVideoParentalRating ); |
1006 } |
|
1007 break; |
|
1008 |
|
1009 case EMTPObjectPropCodeUseCount: |
|
1010 { |
|
1011 PRINT( _L( "MM MTP <> EMTPObjectPropCodeUseCount-MD" ) ); |
|
1012 num = iColSet->ColNo( KMtpVideoUseCount ); |
|
1013 uInt32 = iRecordSet.ColUint32( num ); |
|
1014 if ( EMTPTypeUINT32 == aNewData.Type() ) |
|
1015 { |
|
1016 ( ( TMTPTypeUint32 & ) aNewData ).Set( uInt32 ); |
|
1017 } |
|
1018 else |
|
1019 { |
|
1020 User::Leave( KErrArgument ); |
|
1021 } |
|
1022 } |
999 } |
1023 break; |
1000 break; |
1024 |
1001 |
1025 case EMTPObjectPropCodeDRMStatus: |
1002 case EMTPObjectPropCodeDRMStatus: |
1026 { |
1003 { |
1172 case EMTPObjectPropCodeAudioBitRate: |
1149 case EMTPObjectPropCodeAudioBitRate: |
1173 case EMTPObjectPropCodeVideoFourCCCodec: |
1150 case EMTPObjectPropCodeVideoFourCCCodec: |
1174 case EMTPObjectPropCodeVideoBitRate: |
1151 case EMTPObjectPropCodeVideoBitRate: |
1175 case EMTPObjectPropCodeFramesPerThousandSeconds: |
1152 case EMTPObjectPropCodeFramesPerThousandSeconds: |
1176 case EMTPObjectPropCodeKeyFrameDistance: |
1153 case EMTPObjectPropCodeKeyFrameDistance: |
1177 case EMTPObjectPropCodeUseCount: |
|
1178 { |
1154 { |
1179 if ( EMTPTypeUINT32 != aNewData.Type() ) |
1155 if ( EMTPTypeUINT32 != aNewData.Type() ) |
1180 { |
1156 { |
1181 User::Leave( KErrArgument ); |
1157 User::Leave( KErrArgument ); |
1182 } |
1158 } |
1497 { EMTPObjectPropCodeFramesPerThousandSeconds,KMtpVideoFramesPer1000Sec }, |
1473 { EMTPObjectPropCodeFramesPerThousandSeconds,KMtpVideoFramesPer1000Sec }, |
1498 { EMTPObjectPropCodeKeyFrameDistance, KMtpVideoKeyFrameDistance }, |
1474 { EMTPObjectPropCodeKeyFrameDistance, KMtpVideoKeyFrameDistance }, |
1499 { EMTPObjectPropCodeScanType, KMtpVideoScanType }, |
1475 { EMTPObjectPropCodeScanType, KMtpVideoScanType }, |
1500 { EMTPObjectPropCodeEncodingProfile, KMtpVideoEncodingProfile }, |
1476 { EMTPObjectPropCodeEncodingProfile, KMtpVideoEncodingProfile }, |
1501 { EMTPObjectPropCodeParentalRating, KMtpVideoParentalRating }, |
1477 { EMTPObjectPropCodeParentalRating, KMtpVideoParentalRating }, |
1502 { EMTPObjectPropCodeUseCount, KMtpVideoUseCount }, |
|
1503 { EMTPObjectPropCodeAudioWAVECodec, KMtpVideoAudioCodec }, |
1478 { EMTPObjectPropCodeAudioWAVECodec, KMtpVideoAudioCodec }, |
1504 { EMTPObjectPropCodeDRMStatus, KMtpVideoDRM }, |
1479 { EMTPObjectPropCodeDRMStatus, KMtpVideoDRM }, |
1505 }; |
1480 }; |
1506 |
1481 |
1507 TInt i = 0; |
1482 TInt i = 0; |