imagehandlingutilities/thumbnailmanager/thumbnailclient/inc/thumbnailmanagerimpl.h
branchRCL_3
changeset 9 dea39715fc05
parent 0 2014ca87e772
child 10 ee674526fac5
equal deleted inserted replaced
8:7403edfcf0fb 9:dea39715fc05
    74      *                           ThumbnailReady callback.
    74      *                           ThumbnailReady callback.
    75      * @param aPriority          Priority for this operation
    75      * @param aPriority          Priority for this operation
    76      * @return                   Thumbnail request ID
    76      * @return                   Thumbnail request ID
    77      */
    77      */
    78     TThumbnailRequestId GetThumbnailL( CThumbnailObjectSource& aObjectSource,
    78     TThumbnailRequestId GetThumbnailL( CThumbnailObjectSource& aObjectSource,
    79         TAny* aClientData = NULL, const TInt aPriority = CActive::EPriorityIdle
    79         TAny* aClientData = NULL, const TInt aPriority = CActive::EPriorityIdle );
    80         );
       
    81     
    80     
    82     /**
    81     /**
    83      * Get a thumbnail for an object file. If a thumbnail already exists, it
    82      * Get a thumbnail for an object file. If a thumbnail already exists, it
    84      * is loaded and if a thumbnail does not exist, it is created
    83      * is loaded and if a thumbnail does not exist, it is created
    85      * transparently. ThumbnailReady() callback will be called when the
    84      * transparently. ThumbnailReady() callback will be called when the
    99      * @param aPriority          Priority for this operation
    98      * @param aPriority          Priority for this operation
   100      * @param aGeneratePersistentSizesOnly  Only persitent sizes generated
    99      * @param aGeneratePersistentSizesOnly  Only persitent sizes generated
   101      * @return                   Thumbnail request ID
   100      * @return                   Thumbnail request ID
   102      */    
   101      */    
   103     TThumbnailRequestId GetThumbnailL( CThumbnailObjectSource& aObjectSource,
   102     TThumbnailRequestId GetThumbnailL( CThumbnailObjectSource& aObjectSource,
   104     	TAny* aClientData, const TInt aPriority, TBool aGeneratePersistentSizesOnly);    
   103     	TAny* aClientData, const TInt aPriority, TBool aGeneratePersistentSizesOnly );    
   105    
   104    
   106     /**
   105     /**
   107      * Get a persistent thumbnail for an object file. If a thumbnail already
   106      * Get a persistent thumbnail for an object file. If a thumbnail already
   108      *  exists, it is loaded and if a thumbnail does not exist, it is created
   107      *  exists, it is loaded and if a thumbnail does not exist, it is created
   109      * transparently. ThumbnailReady() callback will be called when the
   108      * transparently. ThumbnailReady() callback will be called when the
   177       *                           instance and may not be shared with other
   176       *                           instance and may not be shared with other
   178       *                           instances.
   177       *                           instances.
   179       */     
   178       */     
   180     TThumbnailRequestId SetThumbnailL( CThumbnailObjectSource& source,
   179     TThumbnailRequestId SetThumbnailL( CThumbnailObjectSource& source,
   181         TAny* aClientData = NULL, 
   180         TAny* aClientData = NULL, 
   182         TInt aPriority = CActive::EPriorityIdle);    
   181         TInt aPriority = CActive::EPriorityIdle );    
   183     
   182     
   184     /**
   183     /**
   185      * Get the current display mode for thumbnail bitmaps.
   184      * Get the current display mode for thumbnail bitmaps.
   186      *
   185      *
   187      * @since S60 v5.0
   186      * @since S60 v5.0
   305      *                      priority.
   304      *                      priority.
   306      * @param aNewPriority  New priority value
   305      * @param aNewPriority  New priority value
   307      * @return              Symbian OS error code or KErrNone if change was
   306      * @return              Symbian OS error code or KErrNone if change was
   308      *                      successful.
   307      *                      successful.
   309      */
   308      */
   310     TInt ChangePriority( const TThumbnailRequestId aId, const TInt aNewPriority
   309     TInt ChangePriority( const TThumbnailRequestId aId, const TInt aNewPriority );
   311         );
       
   312 
   310 
   313     /**
   311     /**
   314      * Get a list of supported file formats for object files.
   312      * Get a list of supported file formats for object files.
   315      * 
   313      * 
   316      * The return value is a reference to a list that contains each
   314      * The return value is a reference to a list that contains each
   355      * Symbian 2nd phase constructor can leave.
   353      * Symbian 2nd phase constructor can leave.
   356      *
   354      *
   357      * @since S60 v5.0
   355      * @since S60 v5.0
   358      */
   356      */
   359     void ConstructL();
   357     void ConstructL();
       
   358     
       
   359     /**
       
   360      * Check that given priority is in range of CActive::TPriority
       
   361      *
       
   362      * @since S60 v5.0
       
   363      * @param aPriority Priority
       
   364      * @return Valid priority.
       
   365      */
       
   366     TInt ValidatePriority( const TInt aPriority );
   360 
   367 
   361 
   368 
   362 private:
   369 private:
   363     // data
   370     // data
   364 
   371