equal
deleted
inserted
replaced
107 } |
107 } |
108 iParser = FindParserFileL(aFileName); |
108 iParser = FindParserFileL(aFileName); |
109 if ( iParser ) |
109 if ( iParser ) |
110 { |
110 { |
111 iParser->CommonParseL((CMetaDataSourceFile*)iSource, aWantedFields, *iContainer); |
111 iParser->CommonParseL((CMetaDataSourceFile*)iSource, aWantedFields, *iContainer); |
|
112 if( iParser->ID32Offset() ) |
|
113 { |
|
114 CMetaDataParser* id32parser = |
|
115 CMetaDataParserFactory::CreateID3ParserL(*iSource, iParser->ID32Offset() ); |
|
116 if( id32parser ) |
|
117 { |
|
118 CleanupStack::PushL( id32parser ); |
|
119 id32parser->ParseL(aWantedFields, *iContainer); |
|
120 CleanupStack::PopAndDestroy( id32parser ); |
|
121 } |
|
122 } |
112 } |
123 } |
113 } |
124 } |
114 |
125 |
115 // ----------------------------------------------------------------------------- |
126 // ----------------------------------------------------------------------------- |
116 // CMetaDataUtilityBody::OpenFileL |
127 // CMetaDataUtilityBody::OpenFileL |
129 } |
140 } |
130 iParser = FindParserFileL(aFile); |
141 iParser = FindParserFileL(aFile); |
131 if ( iParser ) |
142 if ( iParser ) |
132 { |
143 { |
133 iParser->CommonParseL((CMetaDataSourceFile*)iSource, aWantedFields, *iContainer); |
144 iParser->CommonParseL((CMetaDataSourceFile*)iSource, aWantedFields, *iContainer); |
|
145 if( iParser->ID32Offset() ) |
|
146 { |
|
147 CMetaDataParser* id32parser = |
|
148 CMetaDataParserFactory::CreateID3ParserL(*iSource, iParser->ID32Offset() ); |
|
149 if( id32parser ) |
|
150 { |
|
151 CleanupStack::PushL( id32parser ); |
|
152 id32parser->ParseL(aWantedFields, *iContainer); |
|
153 CleanupStack::PopAndDestroy( id32parser ); |
|
154 } |
|
155 } |
134 } |
156 } |
135 } |
157 } |
136 |
158 |
137 // ----------------------------------------------------------------------------- |
159 // ----------------------------------------------------------------------------- |
138 // CMetaDataUtilityBody::OpenDesL |
160 // CMetaDataUtilityBody::OpenDesL |
151 } |
173 } |
152 iParser = FindParserDesL(aDes); |
174 iParser = FindParserDesL(aDes); |
153 if ( iParser ) |
175 if ( iParser ) |
154 { |
176 { |
155 iParser->CommonParseDesL(aWantedFields, *iContainer); |
177 iParser->CommonParseDesL(aWantedFields, *iContainer); |
|
178 if( iParser->ID32Offset() ) |
|
179 { |
|
180 CMetaDataParser* id32parser = |
|
181 CMetaDataParserFactory::CreateID3ParserL(*iSource, iParser->ID32Offset() ); |
|
182 if( id32parser ) |
|
183 { |
|
184 CleanupStack::PushL( id32parser ); |
|
185 id32parser->ParseL(aWantedFields, *iContainer); |
|
186 CleanupStack::PopAndDestroy( id32parser ); |
|
187 } |
|
188 } |
156 } |
189 } |
157 } |
190 } |
158 |
191 |
159 // ----------------------------------------------------------------------------- |
192 // ----------------------------------------------------------------------------- |
160 // CMetaDataUtilityBody::MetaDataCount |
193 // CMetaDataUtilityBody::MetaDataCount |
477 } |
510 } |
478 |
511 |
479 if ( iParser ) |
512 if ( iParser ) |
480 { |
513 { |
481 iParser->CommonParseL((CMetaDataSourceFile*)iSource, aWantedFields, *iContainer); |
514 iParser->CommonParseL((CMetaDataSourceFile*)iSource, aWantedFields, *iContainer); |
|
515 if( iParser->ID32Offset() ) |
|
516 { |
|
517 CMetaDataParser* id32parser = |
|
518 CMetaDataParserFactory::CreateID3ParserL(*iSource, iParser->ID32Offset() ); |
|
519 if( id32parser ) |
|
520 { |
|
521 CleanupStack::PushL( id32parser ); |
|
522 id32parser->ParseL(aWantedFields, *iContainer); |
|
523 CleanupStack::PopAndDestroy( id32parser ); |
|
524 } |
|
525 } |
482 } |
526 } |
483 } |
527 } |
484 // ----------------------------------------------------------------------------- |
528 // ----------------------------------------------------------------------------- |
485 // CMetaDataUtilityBody::OpenFileL with MIME Type info |
529 // CMetaDataUtilityBody::OpenFileL with MIME Type info |
486 // ----------------------------------------------------------------------------- |
530 // ----------------------------------------------------------------------------- |
508 } |
552 } |
509 |
553 |
510 if ( iParser ) |
554 if ( iParser ) |
511 { |
555 { |
512 iParser->CommonParseL((CMetaDataSourceFile*)iSource, aWantedFields, *iContainer); |
556 iParser->CommonParseL((CMetaDataSourceFile*)iSource, aWantedFields, *iContainer); |
|
557 if( iParser->ID32Offset() ) |
|
558 { |
|
559 CMetaDataParser* id32parser = |
|
560 CMetaDataParserFactory::CreateID3ParserL(*iSource, iParser->ID32Offset() ); |
|
561 if( id32parser ) |
|
562 { |
|
563 CleanupStack::PushL( id32parser ); |
|
564 id32parser->ParseL(aWantedFields, *iContainer); |
|
565 CleanupStack::PopAndDestroy( id32parser ); |
|
566 } |
|
567 } |
513 } |
568 } |
514 } |
569 } |
515 |
570 |
516 // ----------------------------------------------------------------------------- |
571 // ----------------------------------------------------------------------------- |
517 // CMetaDataUtilityBody::DoFindParserFileL with MIME Type info |
572 // CMetaDataUtilityBody::DoFindParserFileL with MIME Type info |
696 User::Leave(KErrNotSupported); |
751 User::Leave(KErrNotSupported); |
697 } |
752 } |
698 if ( iParser ) |
753 if ( iParser ) |
699 { |
754 { |
700 iParser->CommonParseDesL(aWantedFields, *iContainer); |
755 iParser->CommonParseDesL(aWantedFields, *iContainer); |
|
756 if( iParser->ID32Offset() ) |
|
757 { |
|
758 CMetaDataParser* id32parser = |
|
759 CMetaDataParserFactory::CreateID3ParserL(*iSource, iParser->ID32Offset() ); |
|
760 if( id32parser ) |
|
761 { |
|
762 CleanupStack::PushL( id32parser ); |
|
763 id32parser->ParseL(aWantedFields, *iContainer); |
|
764 CleanupStack::PopAndDestroy( id32parser ); |
|
765 } |
|
766 } |
701 } |
767 } |
702 } |
768 } |
703 |
769 |
704 // ----------------------------------------------------------------------------- |
770 // ----------------------------------------------------------------------------- |
705 // TInt CMetaDataUtilityBody::IsSupportedMimeType |
771 // TInt CMetaDataUtilityBody::IsSupportedMimeType |