15#include <CoreFoundation/CoreFoundation.h>
16#include <CoreFoundation/CFPlugInCOM.h>
17#include <CoreServices/CoreServices.h>
18#include <QuickLook/QuickLook.h>
25#define PLUGIN_ID "9E28C44E-DE9B-4941-8963-405BD216DD9D"
40OSStatus
GenerateThumbnailForURL(
void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize);
44OSStatus
GeneratePreviewForURL(
void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options);
104 theNewInstance->
factoryID = CFRetain(inFactoryID);
105 CFPlugInAddInstanceForFactory(inFactoryID);
109 return theNewInstance;
122 CFUUIDRef theFactoryID;
131 CFPlugInRemoveInstanceForFactory(theFactoryID);
132 CFRelease(theFactoryID);
143 CFUUIDRef interfaceID;
145 interfaceID = CFUUIDCreateFromUUIDBytes(kCFAllocatorDefault,iid);
147 if (CFEqual(interfaceID,kQLGeneratorCallbacksInterfaceID)){
158 CFRelease(interfaceID);
163 CFRelease(interfaceID);
164 return E_NOINTERFACE;
209 if (CFEqual(typeID,kQLGeneratorTypeID)){
210 uuid = CFUUIDCreateFromString(kCFAllocatorDefault,CFSTR(
PLUGIN_ID));
void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview)
OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options)
void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbnail)
OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize)
Double_t result(Double_t *x, Double_t *par)
static QLGeneratorInterfaceStruct myInterfaceFtbl
void * QuickLookGeneratorPluginFactory(CFAllocatorRef allocator, CFUUIDRef typeID)
struct __QuickLookGeneratorPluginType QuickLookGeneratorPluginType
ULONG QuickLookGeneratorPluginRelease(void *thisInstance)
void CancelPreviewGeneration(void *thisInterface, QLPreviewRequestRef preview)
HRESULT QuickLookGeneratorQueryInterface(void *thisInstance, REFIID iid, LPVOID *ppv)
ULONG QuickLookGeneratorPluginAddRef(void *thisInstance)
void DeallocQuickLookGeneratorPluginType(QuickLookGeneratorPluginType *thisInstance)
void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbnail)
OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options)
OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize)
QuickLookGeneratorPluginType * AllocQuickLookGeneratorPluginType(CFUUIDRef inFactoryID)