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 * |