229 */ |
229 */ |
230 IMPORT_C int setThumbnail( const QPixmap& source, const QString& fileName, |
230 IMPORT_C int setThumbnail( const QPixmap& source, const QString& fileName, |
231 void * clientData = NULL, int priority = tnmWrapperPriorityIdle ); |
231 void * clientData = NULL, int priority = tnmWrapperPriorityIdle ); |
232 |
232 |
233 /** |
233 /** |
|
234 * Set a thumbnail for an object file generated from pixmap delivered. |
|
235 * thumbnailReady() signal will be emited when the operation is complete. |
|
236 * |
|
237 * @param source QImage from which the thumbnail will be created |
|
238 * @param fileName file name |
|
239 * @param clientData Pointer to arbitrary client data. |
|
240 * This pointer is not used by the API for |
|
241 * anything other than returning it in the |
|
242 * ThumbnailReady callback. |
|
243 * @param priority Priority for this operation |
|
244 * @return Thumbnail request ID or -1 if request failed. This can be used to |
|
245 * cancel the request or change priority. |
|
246 * |
|
247 */ |
|
248 IMPORT_C int setThumbnail( const QImage& source, const QString& fileName, |
|
249 void * clientData = NULL, int priority = tnmWrapperPriorityIdle ); |
|
250 |
|
251 /** |
234 * Delete all thumbnails for a given object. This is an asynchronous |
252 * Delete all thumbnails for a given object. This is an asynchronous |
235 * operation, which always returns immediately. |
253 * operation, which always returns immediately. |
236 * |
254 * |
237 * @param fileName Source file |
255 * @param fileName Source file |
238 */ |
256 */ |