imagehandling_plat/thumbnailmanager_api/inc/thumbnailmanager_qt.h
changeset 30 b67379558a75
parent 25 cb86b71cae0a
equal deleted inserted replaced
29:4bdfb6b5c9b4 30:b67379558a75
    44     {
    44     {
    45     Q_OBJECT
    45     Q_OBJECT
    46 
    46 
    47 public:
    47 public:
    48 
    48 
    49 
       
    50     /** Thumbnail size. */
    49     /** Thumbnail size. */
    51     enum ThumbnailSize
    50     enum ThumbnailSize
    52     {
    51     {
    53         /**
    52         /**
    54          * Small thumbnail
    53          * Small thumbnail
   257      *                           cancel the request or change priority. 
   256      *                           cancel the request or change priority. 
   258      *                           
   257      *                           
   259      */    
   258      */    
   260     TNM_EXPORT int setThumbnail( const QImage& source, const QString& fileName,
   259     TNM_EXPORT int setThumbnail( const QImage& source, const QString& fileName,
   261             void * clientData = NULL, int priority = tnmWrapperPriorityIdle );
   260             void * clientData = NULL, int priority = tnmWrapperPriorityIdle );
       
   261     
       
   262     /**
       
   263      * Set a thumbnail for an object file generated from source file.
       
   264      * thumbnailReady() signal will be emited when the operation is complete. 
       
   265      * 
       
   266      * @param sourceFileName     Source file name from which the thumbnail will be created
       
   267      * @param targetFileName     Target file name
       
   268      * @param clientData         Pointer to arbitrary client data.
       
   269      *                           This pointer is not used by the API for
       
   270      *                           anything other than returning it in the
       
   271      *                           ThumbnailReady callback.
       
   272      * @param priority           Priority for this operation
       
   273      * @return                   Thumbnail request ID or -1 if request failed. This can be used to
       
   274      *                           cancel the request or change priority. 
       
   275      *                           
       
   276      */    
       
   277     TNM_EXPORT int setThumbnail( const QString& sourceFileName, const QString& targetFileName,
       
   278             const QString& mimeType = QString(""), void * clientData = NULL, 
       
   279             int priority = tnmWrapperPriorityIdle );
   262 
   280 
   263     /**
   281     /**
   264      * Delete all thumbnails for a given object. This is an asynchronous
   282      * Delete all thumbnails for a given object. This is an asynchronous
   265      * operation, which always returns immediately.
   283      * operation, which always returns immediately.
   266      *
   284      *