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