diff options
Diffstat (limited to 'macosx/Pcsxr-QL/GenerateThumbnailForURL.m')
| -rw-r--r-- | macosx/Pcsxr-QL/GenerateThumbnailForURL.m | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/macosx/Pcsxr-QL/GenerateThumbnailForURL.m b/macosx/Pcsxr-QL/GenerateThumbnailForURL.m new file mode 100644 index 00000000..0befeefb --- /dev/null +++ b/macosx/Pcsxr-QL/GenerateThumbnailForURL.m @@ -0,0 +1,26 @@ +#include <CoreFoundation/CoreFoundation.h> +#include <CoreServices/CoreServices.h> +#include <QuickLook/QuickLook.h> +#include "MyQuickLook.h" + +/* ----------------------------------------------------------------------------- + Generate a thumbnail for file + + This function's job is to create thumbnail for designated file as fast as possible + ----------------------------------------------------------------------------- */ + +OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize) +{ + @autoreleasepool { + NSURL *urlNS = (__bridge NSURL*)url; + //NSString *UTI = (__bridge NSString*)contentTypeUTI; + //NSDictionary *optionsNS = (__bridge NSDictionary*)options; + + return noErr; + } +} + +void CancelThumbnailGeneration(void *thisInterface, QLThumbnailRequestRef thumbnail) +{ + // Implement only if supported +} |
