mmappcomponents/mmmtpdataprovider/src/cmmmtpdpmetadatampxaccess.cpp
branchRCL_3
changeset 23 e42293e811d8
parent 18 e257e2b6459d
child 24 6c1dfe4da5dd
equal deleted inserted replaced
22:b034b1c214c2 23:e42293e811d8
  1520 
  1520 
  1521      // Modified content
  1521      // Modified content
  1522     PRINT( _L( "MM MTP <> Modified contents are:" ) );
  1522     PRINT( _L( "MM MTP <> Modified contents are:" ) );
  1523 
  1523 
  1524     foundMedia = FindWMPMediaLC( KMPXMediaGeneralModified, ETrue ); // + foundMedia
  1524     foundMedia = FindWMPMediaLC( KMPXMediaGeneralModified, ETrue ); // + foundMedia
  1525 
       
  1526     if ( !foundMedia->IsSupported( KMPXMediaArrayCount ) )
       
  1527         {
       
  1528         User::Leave( KErrNotSupported );
       
  1529         }
       
  1530 
       
  1531     foundItemCount = *foundMedia->Value<TInt>( KMPXMediaArrayCount );
  1525     foundItemCount = *foundMedia->Value<TInt>( KMPXMediaArrayCount );
  1532 
  1526 
  1533     PRINT1( _L( "MM MTP <> CMmMtpDpMetadataMpxAccess::GetModifiedContentL() found %d Media Objects" ), foundItemCount );
  1527     PRINT1( _L( "MM MTP <> CMmMtpDpMetadataMpxAccess::GetModifiedContentL() found %d Media Objects" ), foundItemCount );
  1534 
  1528 
  1535     if ( foundItemCount )
  1529     if ( foundItemCount )
  1598     CMPXMedia* foundMedia = CollectionHelperL()->FindAllL( *searchMedia,
  1592     CMPXMedia* foundMedia = CollectionHelperL()->FindAllL( *searchMedia,
  1599         playlistAttributes.Array() );
  1593         playlistAttributes.Array() );
  1600 
  1594 
  1601     CleanupStack::PopAndDestroy( &playlistAttributes ); // - playlistAttributes
  1595     CleanupStack::PopAndDestroy( &playlistAttributes ); // - playlistAttributes
  1602     CleanupStack::PopAndDestroy( searchMedia ); // - searchMedia
  1596     CleanupStack::PopAndDestroy( searchMedia ); // - searchMedia
       
  1597     CleanupStack::PushL( foundMedia ); // + foundMedia
  1603 
  1598 
  1604     if ( !foundMedia->IsSupported( KMPXMediaArrayCount ) )
  1599     if ( !foundMedia->IsSupported( KMPXMediaArrayCount ) )
  1605         User::Leave( KErrNotSupported );
  1600         User::Leave( KErrNotSupported );
  1606 
  1601 
  1607     TInt foundItemCount = *foundMedia->Value<TInt>( KMPXMediaArrayCount );
  1602     TInt foundItemCount = *foundMedia->Value<TInt>( KMPXMediaArrayCount );
  1608 
  1603 
  1609     delete foundMedia;
  1604     CleanupStack::PopAndDestroy( foundMedia ); // - foundMedia
  1610     foundMedia = NULL;
       
  1611 
  1605 
  1612     PRINT1( _L( "MM MTP <= CMmMtpDpMetadataMpxAccess::IsExist foundItemCount(%d)" ), foundItemCount );
  1606     PRINT1( _L( "MM MTP <= CMmMtpDpMetadataMpxAccess::IsExist foundItemCount(%d)" ), foundItemCount );
  1613     return ( foundItemCount > 0 ? ETrue : EFalse );
  1607     return ( foundItemCount > 0 ? ETrue : EFalse );
  1614     }
  1608     }
  1615 
  1609