summaryrefslogtreecommitdiff
path: root/macosx/Pcsxr-QL/GenerateThumbnailForURL.m
blob: 0befeefbf81d26ab201f2716ff6f0ccbb60bef12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
}