mmappcomponents/collectionhelper/src/mpxcollectioncachedhelper.cpp
branchRCL_3
changeset 67 16db3449d7ba
parent 59 666f9a5a90a9
equal deleted inserted replaced
63:91d5ad76f5c6 67:16db3449d7ba
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  Extended collection helper with an internal caching array
    14 * Description:  Extended collection helper with an internal caching array
    15 *  Version     : %version: da1mmcf#27.1.12.1.4 % 
    15 *  Version     : %version: da1mmcf#27.1.12.1.2.1.3 % 
    16 *
    16 *
    17 */
    17 */
    18 
    18 
    19 
    19 
    20 #include <e32base.h>
    20 #include <e32base.h>
    51 
    51 
    52 _LIT( K3GPFileExt, ".3gp" );
    52 _LIT( K3GPFileExt, ".3gp" );
    53 _LIT( K3G2FileExt, ".3g2" );
    53 _LIT( K3G2FileExt, ".3g2" );
    54 _LIT( KODFFileExt, ".odf" );
    54 _LIT( KODFFileExt, ".odf" );
    55 _LIT( KO4AFileExt, ".o4a" );
    55 _LIT( KO4AFileExt, ".o4a" );
       
    56 _LIT( KAACFileExt, ".aac" );
    56 
    57 
    57 // ======== MEMBER FUNCTIONS ========
    58 // ======== MEMBER FUNCTIONS ========
    58 
    59 
    59 // ---------------------------------------------------------------------------
    60 // ---------------------------------------------------------------------------
    60 // Constructor
    61 // Constructor
   177         cacheCount = 1;            
   178         cacheCount = 1;            
   178     
   179     
   179     if( iCache->Count() >= cacheCount)
   180     if( iCache->Count() >= cacheCount)
   180         Commit();
   181         Commit();
   181 
   182 
   182     #ifdef ABSTRACTAUDIOALBUM_INCLUDED
   183 #ifdef ABSTRACTAUDIOALBUM_INCLUDED
   183     TBool extract = ETrue;
   184     TBool extract = ETrue;
   184     if( aMedia->IsSupported( KMPXMediaMTPSampleDataFlag ) )
   185     if( aMedia->IsSupported( KMPXMediaMTPSampleDataFlag ) )
   185         {
   186         {
   186         
   187         
   187         extract = aMedia->ValueTObjectL<TBool>( KMPXMediaMTPSampleDataFlag );
   188         extract = aMedia->ValueTObjectL<TBool>( KMPXMediaMTPSampleDataFlag );
  1212     TParsePtrC parse( path );
  1213     TParsePtrC parse( path );
  1213 
  1214 
  1214     // only do this for file that might not be natively supported by PC
  1215     // only do this for file that might not be natively supported by PC
  1215     if ( ( parse.Ext().CompareF(K3GPFileExt) == 0 )
  1216     if ( ( parse.Ext().CompareF(K3GPFileExt) == 0 )
  1216         || ( parse.Ext().CompareF(K3G2FileExt) == 0 )
  1217         || ( parse.Ext().CompareF(K3G2FileExt) == 0 )
       
  1218         || ( parse.Ext().CompareF(KAACFileExt) == 0 )
  1217         || ( parse.Ext().CompareF(KODFFileExt) == 0 )
  1219         || ( parse.Ext().CompareF(KODFFileExt) == 0 )
  1218         || ( parse.Ext().CompareF(KO4AFileExt) == 0 ) )
  1220         || ( parse.Ext().CompareF(KO4AFileExt) == 0 ) )
  1219         {
  1221         {
  1220         TBool isTitleMissing = EFalse;
  1222         TBool isTitleMissing = EFalse;
  1221         TBool isArtistMissing = EFalse;
  1223         TBool isArtistMissing = EFalse;