photosgallery/viewframework/medialists/inc/glxcachemanager.h
changeset 4 57d388cc48c1
parent 2 7d9067c6fcb1
child 14 ce1c7ad1f18b
equal deleted inserted replaced
3:9a9c174934f5 4:57d388cc48c1
    51  *
    51  *
    52  *  Manager of item caches
    52  *  Manager of item caches
    53  *
    53  *
    54  *  @lib glxmedialists.lib
    54  *  @lib glxmedialists.lib
    55  */
    55  */
    56 class CGlxCacheManager : public CBase, public MGlxCache, public MGlxMediaPool
    56 class CGlxCacheManager : public CBase, 
       
    57                          public MGlxCache, 
       
    58                          public MGlxMediaPool,
       
    59                          public MImageReadyCallBack
    57 #ifdef USE_S60_TNM
    60 #ifdef USE_S60_TNM
    58 , public MThumbnailManagerObserver,public MImageReadyCallBack
    61 , public MThumbnailManagerObserver
    59 #endif
    62 #endif
    60 	{
    63 	{
    61 public:
    64 public:
    62     /**
    65     /**
    63      * Return a reference-counted instance of CGlxCacheManager. User MUST Close() this when finished with it.
    66      * Return a reference-counted instance of CGlxCacheManager. User MUST Close() this when finished with it.
   180     void StopRAMReleaseL();
   183     void StopRAMReleaseL();
   181 	//OOM
   184 	//OOM
   182     void ForceCleanupMedia(TGlxIdSpaceId aSpaceId,TGlxMediaId aId); 
   185     void ForceCleanupMedia(TGlxIdSpaceId aSpaceId,TGlxMediaId aId); 
   183 
   186 
   184 public:
   187 public:
   185     void ImageReadyL(const TInt& aError, const TSize aSz);
   188     void ImageSizeReady(TInt aError, const TSize aSz);
       
   189 
   186 private:
   190 private:
   187     /**
   191     /**
   188      * Constructor
   192      * Constructor
   189      */
   193      */
   190 	CGlxCacheManager();
   194 	CGlxCacheManager();
   285      *
   289      *
   286      * @param aList list to obtain the path
   290      * @param aList list to obtain the path
   287      */
   291      */
   288     CMPXCollectionPath* RequestAsPathLC(const CGlxMediaList& aList);
   292     CMPXCollectionPath* RequestAsPathLC(const CGlxMediaList& aList);
   289     
   293     
       
   294     /**
       
   295      * Gets the mime type of a given file.
       
   296      * @param aFileName The file name for which a MIME type to be determined
       
   297      * @aMimeType The MIME type associated with the given file will be returned
       
   298      */
   290     void GetMimeTypeL(TFileName& aFileName, TDataType& aMimeType );
   299     void GetMimeTypeL(TFileName& aFileName, TDataType& aMimeType );
       
   300 
       
   301     /**
       
   302      * Creates the image viewer instance, if not created already.
       
   303      */    
       
   304     void CreateImageViewerInstanceL();
       
   305     
       
   306     /**
       
   307      * Deletes the image viewer instance, if created already.
       
   308      */    
       
   309     void DeleteImageViewerInstance();
   291     
   310     
   292 #ifdef USE_S60_TNM
   311 #ifdef USE_S60_TNM
   293     /*
   312     /*
   294      * This function doesnt add up any value, added to reduce compiler warnings
   313      * This function doesnt add up any value, added to reduce compiler warnings
   295      */
   314      */