imagehandlingutilities/thumbnailmanager/plugins/audio/src/thumbnailaudioprovider.cpp
branchRCL_3
changeset 9 2eb74cf6572e
parent 5 82749d516180
child 24 f0aa341a25bf
equal deleted inserted replaced
5:82749d516180 9:2eb74cf6572e
    21 
    21 
    22 #include "thumbnailaudioprovider.h"
    22 #include "thumbnailaudioprovider.h"
    23 #include "thumbnailimagedecoderv3.h"
    23 #include "thumbnailimagedecoderv3.h"
    24 #include "thumbnailmanageruids.hrh"
    24 #include "thumbnailmanageruids.hrh"
    25 #include "thumbnaillog.h"
    25 #include "thumbnaillog.h"
    26 #include <metadatautility.h>
    26 #include <MetaDataUtility.h>
    27 #include <metadatafieldcontainer.h>
    27 #include <MetaDataFieldContainer.h>
    28 #include "thumbnailmanagerconstants.h"
    28 #include "thumbnailmanagerconstants.h"
    29 
    29 
    30 
    30 
    31 #ifndef IMPLEMENTATION_PROXY_ENTRY
    31 #ifndef IMPLEMENTATION_PROXY_ENTRY
    32 typedef TAny* TProxyNewLPtr;
    32 typedef TAny* TProxyNewLPtr;
    80 //
    80 //
    81 void CThumbnailAudioProvider::GetThumbnailL( RFs& aFs, RFile64& aFile, const
    81 void CThumbnailAudioProvider::GetThumbnailL( RFs& aFs, RFile64& aFile, const
    82     TDataType& aMimeType  , const CThumbnailManager::TThumbnailFlags aFlags,
    82     TDataType& aMimeType  , const CThumbnailManager::TThumbnailFlags aFlags,
    83     const TDisplayMode /*aDisplayMode*/, const CThumbnailManager::TThumbnailQualityPreference /*aQualityPreference*/  )
    83     const TDisplayMode /*aDisplayMode*/, const CThumbnailManager::TThumbnailQualityPreference /*aQualityPreference*/  )
    84     {   
    84     {   
       
    85     TN_DEBUG1( "CThumbnailAudioProvider::GetThumbnailL() - rfile " );
    85     CMetaDataUtility* metaDataUtil = CMetaDataUtility::NewL();
    86     CMetaDataUtility* metaDataUtil = CMetaDataUtility::NewL();
    86     CleanupStack::PushL( metaDataUtil );
    87     CleanupStack::PushL( metaDataUtil );
    87     
    88     
    88     RArray<TMetaDataFieldId> wantedFields;
    89     RArray<TMetaDataFieldId> wantedFields;
    89     CleanupClosePushL(wantedFields);
    90     CleanupClosePushL(wantedFields);
   127 //
   128 //
   128 void CThumbnailAudioProvider::GetThumbnailL( RFs& /* aFs */, TDesC8* /* aBuffer */, const
   129 void CThumbnailAudioProvider::GetThumbnailL( RFs& /* aFs */, TDesC8* /* aBuffer */, const
   129     TDataType& /*aMimeType */, const CThumbnailManager::TThumbnailFlags /* aFlags */,
   130     TDataType& /*aMimeType */, const CThumbnailManager::TThumbnailFlags /* aFlags */,
   130     const TDisplayMode /* aDisplayMode */, const CThumbnailManager::TThumbnailQualityPreference /*aQualityPreference*/ )
   131     const TDisplayMode /* aDisplayMode */, const CThumbnailManager::TThumbnailQualityPreference /*aQualityPreference*/ )
   131     {
   132     {
   132 
   133     TN_DEBUG1( "CThumbnailAudioProvider::GetThumbnailL() - buffer" );
       
   134 	__ASSERT_DEBUG((EFalse), User::Panic(_L("CThumbnailAudioProvider::GetThumbnailL"), KErrNotSupported));
   133     }
   135     }
   134 
   136 
   135 // ---------------------------------------------------------------------------
   137 // ---------------------------------------------------------------------------
   136 // CThumbnailAudioProvider::GetThumbnailL()
   138 // CThumbnailAudioProvider::GetThumbnailL()
   137 // Provides the thumbnail image
   139 // Provides the thumbnail image
   138 // ---------------------------------------------------------------------------
   140 // ---------------------------------------------------------------------------
   139 //
   141 //
   140 void CThumbnailAudioProvider::GetThumbnailL( RFs& /* aFs */, TDesC8& /*aBuffer */)
   142 void CThumbnailAudioProvider::GetThumbnailL( RFs& /* aFs */, TDesC8& /*aBuffer */)
   141     {
   143     {
   142     User::Leave( KErrNotSupported );
   144     TN_DEBUG1( "CThumbnailAudioProvider::GetThumbnailL() - buffer no mime" );
       
   145 	__ASSERT_DEBUG((EFalse), User::Panic(_L("CThumbnailAudioProvider::GetThumbnailL"), KErrNotSupported));
   143     }
   146     }
   144 
   147 
   145 // ---------------------------------------------------------------------------
   148 // ---------------------------------------------------------------------------
   146 // Cancel thumbnail request
   149 // Cancel thumbnail request
   147 // ---------------------------------------------------------------------------
   150 // ---------------------------------------------------------------------------