• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/macosx/QuickLookPlugin/
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