imagehandling_plat/thumbnailmanager_api/inc/thumbnailmanager.h
branchGCC_SURGE
changeset 32 a0ee3f735f8b
parent 30 b67379558a75
child 33 221be23823c5
equal deleted inserted replaced
26:ea43e3e86079 32:a0ee3f735f8b
    24 #include <badesca.h>
    24 #include <badesca.h>
    25 
    25 
    26 #include <thumbnailobjectsource.h>
    26 #include <thumbnailobjectsource.h>
    27 
    27 
    28 class MThumbnailManagerObserver;
    28 class MThumbnailManagerObserver;
       
    29 class MThumbnailManagerRequestObserver;
    29 
    30 
    30 typedef TInt TThumbnailRequestId;
    31 typedef TInt TThumbnailRequestId;
    31 
    32 
    32 typedef TUint32 TThumbnailId;
    33 typedef TUint32 TThumbnailId;
    33 typedef enum 
    34 typedef enum 
    41 EVideoListThumbnailSize,
    42 EVideoListThumbnailSize,
    42 EVideoFullScreenThumbnailSize,      
    43 EVideoFullScreenThumbnailSize,      
    43 EAudioGridThumbnailSize,
    44 EAudioGridThumbnailSize,
    44 EAudioListThumbnailSize,
    45 EAudioListThumbnailSize,
    45 EAudioFullScreenThumbnailSize,
    46 EAudioFullScreenThumbnailSize,
       
    47 EContactGridThumbnailSize,
       
    48 EContactListThumbnailSize,
       
    49 EContactFullScreenThumbnailSize,
    46 EGridThumbnailSize,
    50 EGridThumbnailSize,
    47 EListThumbnailSize,
    51 EListThumbnailSize,
    48 EFullScreenThumbnailSize
    52 EFullScreenThumbnailSize,
       
    53 EThumbnailSizeCount //last item, don't remove
    49 } TThumbnailSize;
    54 } TThumbnailSize;
    50 /**
    55 /**
    51  *  Thumbnail engine.
    56  *  Thumbnail engine.
    52  *
    57  *
    53  *  This is the main interface class to thumbnail engine. Thumbnail engine
    58  *  This is the main interface class to thumbnail engine. Thumbnail engine
   411      *                      priority.
   416      *                      priority.
   412      * @param aNewPriority  New priority value
   417      * @param aNewPriority  New priority value
   413      * @return              Symbian OS error code or KErrNone if change was
   418      * @return              Symbian OS error code or KErrNone if change was
   414      *                      successful.
   419      *                      successful.
   415      */
   420      */
   416     virtual TInt ChangePriority( TThumbnailRequestId aId, TInt aNewPriority ) =
   421     virtual TInt ChangePriority( TThumbnailRequestId aId, TInt aNewPriority ) = 0;
   417         0;
       
   418 
   422 
   419     /**
   423     /**
   420      * Get a list of supported file formats for object files.
   424      * Get a list of supported file formats for object files.
   421      * 
   425      * 
   422      * The return value is a reference to a list that contains each
   426      * The return value is a reference to a list that contains each
   564        *                         instances.
   568        *                         instances.
   565        */
   569        */
   566        virtual TThumbnailRequestId RenameThumbnailsL( const TDesC& aCurrentPath, 
   570        virtual TThumbnailRequestId RenameThumbnailsL( const TDesC& aCurrentPath, 
   567                const TDesC& aNewPath, TInt aPriority = CActive::EPriorityIdle ) = 0;
   571                const TDesC& aNewPath, TInt aPriority = CActive::EPriorityIdle ) = 0;
   568 
   572 
       
   573        /**
       
   574         * Set optional request observer for getting information about completed 
       
   575         * requests that don't include a thumbnail.
       
   576         *
       
   577         * @since Symbian^3
       
   578         * @param aObserver Observer to receive notifications.
       
   579         */
       
   580        virtual void SetRequestObserver( MThumbnailManagerRequestObserver& aObserver ) = 0;
       
   581        
       
   582        /**
       
   583         * Remove optional request observer.
       
   584         *
       
   585         * @since Symbian^3
       
   586         */
       
   587        virtual void RemoveRequestObserver() = 0;
   569 };
   588 };
   570 
   589 
   571 #endif // THUMBNAILMANAGER_H
   590 #endif // THUMBNAILMANAGER_H