imagehandlingutilities/thumbnailmanager/thumbnailserver/inc/thumbnailserver.h
branchRCL_3
changeset 9 2eb74cf6572e
parent 5 82749d516180
child 11 dea39715fc05
equal deleted inserted replaced
5:82749d516180 9:2eb74cf6572e
   165      * @param aThumbFromPath Thumbnail created from associated path.
   165      * @param aThumbFromPath Thumbnail created from associated path.
   166      * @param aThumbFromPath Check first if source uri exists.
   166      * @param aThumbFromPath Check first if source uri exists.
   167      */
   167      */
   168     void StoreThumbnailL( const TDesC& aPath, CFbsBitmap* aBitmap, const TSize&
   168     void StoreThumbnailL( const TDesC& aPath, CFbsBitmap* aBitmap, const TSize&
   169         aOriginalSize, const TBool aCropped, const TThumbnailSize aThumbnailSize,
   169         aOriginalSize, const TBool aCropped, const TThumbnailSize aThumbnailSize,
   170         const TThumbnailId aThumbnailId, const TBool aThumbFromPath = ETrue,
   170         const TInt64 aModified,
       
   171         const TBool aThumbFromPath = ETrue,
   171         const TBool aCheckExist = ETrue);
   172         const TBool aCheckExist = ETrue);
   172 
   173 
   173     /**
   174     /**
   174      * Fetch thumbnail image.
   175      * Fetch thumbnail image.
   175      *
   176      *
   187      */
   188      */
   188     void FetchThumbnailL( const TDesC& aPath, CFbsBitmap* & aThumbnail, 
   189     void FetchThumbnailL( const TDesC& aPath, CFbsBitmap* & aThumbnail, 
   189              TDesC8* & aData, const TThumbnailSize aThumbnailSize, TSize &aOriginalSize );
   190              TDesC8* & aData, const TThumbnailSize aThumbnailSize, TSize &aOriginalSize );
   190     
   191     
   191     /**
   192     /**
   192      * Fetch thumbnail image.
       
   193      *
       
   194      * @since S60 v5.0
       
   195      * @param aThumbnailId ID of the media object whose thumbnail is to be
       
   196      *              retrieved.
       
   197      * @param aThumbnail Pointer to get the fetched thumbnail bitmap.
       
   198      *                   Caller assumes ownership.
       
   199      */    
       
   200     void FetchThumbnailL( TThumbnailId aThumbnailId, CFbsBitmap* &
       
   201         aThumbnail, TDesC8* & aData, TThumbnailSize aThumbnailSize, TSize &aOriginalSize );
       
   202 
       
   203     /**
       
   204      * Delete thumbnails.
   193      * Delete thumbnails.
   205      *
   194      *
   206      * @since S60 v5.0
   195      * @since S60 v5.0
   207      * @param aPath           Path of the media object whose thumbnail is
   196      * @param aPath           Path of the media object whose thumbnail is
   208      *                        to be deleted.
   197      *                        to be deleted.
   323      * Get missing thumbnail sizes.
   312      * Get missing thumbnail sizes.
   324      *
   313      *
   325      * @since S60 v5.0
   314      * @since S60 v5.0
   326      * @param aPath Path associated to missing thumbnails
   315      * @param aPath Path associated to missing thumbnails
   327      * @param aMissingSizes Returns a list of thumbnail sizes not yet create related to the path
   316      * @param aMissingSizes Returns a list of thumbnail sizes not yet create related to the path
   328      */
   317 	 * @param aCheckGridSizeOnly check only is Grid size missing
   329     void GetMissingSizesAndIDsL( const TDesC& aPath, TInt aSourceType, RArray <
   318      */
   330         TThumbnailPersistentSize > & aMissingSizes, TBool& aMissingIDs);
   319     void GetMissingSizesL( const TDesC& aPath, TInt aSourceType, RArray <
       
   320         TThumbnailPersistentSize > & aMissingSizes, TBool aCheckGridSizeOnly);
   331 
   321 
   332     /**
   322     /**
   333      * Fileserver
   323      * Fileserver
   334      *
   324      *
   335      * @since S60 v5.0
   325      * @since S60 v5.0
   373 
   363 
   374     /**
   364     /**
   375      * Update thumbnails in database
   365      * Update thumbnails in database
   376      *
   366      *
   377      * @since S60 v5.0
   367      * @since S60 v5.0
   378      * @param aItemId       TThumbnailId
       
   379      * @param aPath         (New) path for the Thumbnail
   368      * @param aPath         (New) path for the Thumbnail
   380      * @param aOrientation  Thumbnail orientation
   369      * @param aOrientation  Thumbnail orientation
   381      * @param aModified     Last modified
   370      * @param aModified     Last modified
   382      * @param TBool         EFalse, if new thumbs need to be created
   371      * @param TBool         EFalse, if new thumbs need to be created
   383      */  
   372      */  
   384     TBool UpdateThumbnailsL( const TThumbnailId aItemId, const TDesC& aPath,
   373     TBool UpdateThumbnailsL( const TDesC& aPath,
   385                              const TInt aOrientation, const TInt64 aModified );
   374                              const TInt aOrientation, const TInt64 aModified );
   386     
   375     
   387     /** 
   376     /** 
   388      * Resolve mime type from file extension
   377      * Resolve mime type from file extension
   389      *
   378      *
   435      * @since S60 v5.0
   424      * @since S60 v5.0
   436      * @param aPath Path to a file
   425      * @param aPath Path to a file
   437      * @return CThumbnailStore object
   426      * @return CThumbnailStore object
   438      */
   427      */
   439     CThumbnailStore* StoreForPathL( const TDesC& aPath );  
   428     CThumbnailStore* StoreForPathL( const TDesC& aPath );  
   440     
       
   441     /**
       
   442      * Update ID in database
       
   443      *
       
   444      * @since S60 v5.0
       
   445      * @param aItemId Id of item whose thumbnails are to be updated.
       
   446      * @param aNewPath Path property of the object to be updated.
       
   447      */  
       
   448     void UpdateIDL( const TDesC& aPath, const TThumbnailId aNewId );
       
   449     
   429     
   450     /**
   430     /**
   451      * Close Removable Stores
   431      * Close Removable Stores
   452      *
   432      *
   453      * @since S60 v5.0
   433      * @since S60 v5.0
   529      *
   509      *
   530      * @since S60 v5.0     
   510      * @since S60 v5.0     
   531      */
   511      */
   532     void OpenStoresL();
   512     void OpenStoresL();
   533     
   513     
   534  
   514     /**
       
   515      * Callback for reconnect timer
       
   516      *
       
   517      * @since S60 v5.0
       
   518      */
       
   519     static TInt ReconnectCallBack(TAny* aAny);
   535 
   520 
   536 private:
   521 private:
   537 
   522 
   538     /**
   523     /**
   539      * C++ default constructor
   524      * C++ default constructor
   681      */
   666      */
   682     RArray < TThumbnailPersistentSize > iPersistentSizes;
   667     RArray < TThumbnailPersistentSize > iPersistentSizes;
   683     
   668     
   684     TBool iFormatting;
   669     TBool iFormatting;
   685     
   670     
       
   671     // reconnect timer
       
   672     CPeriodic* iReconnect;
       
   673     
   686 #ifdef _DEBUG
   674 #ifdef _DEBUG
   687     TUint32 iPlaceholderCounter;
   675     TUint32 iPlaceholderCounter;
   688 #endif
   676 #endif
   689 };
   677 };
   690 
   678