Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
GenerateThumbnailForURL.m
Go to the documentation of this file.
1#include <CoreFoundation/CoreFoundation.h>
2#include <CoreServices/CoreServices.h>
3#include <QuickLook/QuickLook.h>
4
5/* -----------------------------------------------------------------------------
6 Generate a thumbnail for file
7
8 This function's job is to create thumbnail for designated file as fast as possible
9 ----------------------------------------------------------------------------- */
10
11OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize)
12{
13 //#warning To complete your generator please implement the function GenerateThumbnailForURL in GenerateThumbnailForURL.c
14 return noErr;
15}
16
17void CancelThumbnailGeneration(void* thisInterface, QLThumbnailRequestRef thumbnail)
18{
19 // implement only if supported
20}
void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbnail)
OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize)