main.c File Reference

#include <CoreFoundation/CoreFoundation.h>
#include <CoreFoundation/CFPlugInCOM.h>
#include <CoreServices/CoreServices.h>
#include <QuickLook/QuickLook.h>

Go to the source code of this file.

Classes

struct  __QuickLookGeneratorPluginType

Defines

#define PLUGIN_ID   "9E28C44E-DE9B-4941-8963-405BD216DD9D"

Typedefs

typedef __QuickLookGeneratorPluginType QuickLookGeneratorPluginType

Functions

OSStatus GenerateThumbnailForURL (void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize)
void CancelThumbnailGeneration (void *thisInterface, QLThumbnailRequestRef thumbnail)
OSStatus GeneratePreviewForURL (void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options)
void CancelPreviewGeneration (void *thisInterface, QLPreviewRequestRef preview)
QuickLookGeneratorPluginTypeAllocQuickLookGeneratorPluginType (CFUUIDRef inFactoryID)
void DeallocQuickLookGeneratorPluginType (QuickLookGeneratorPluginType *thisInstance)
HRESULT QuickLookGeneratorQueryInterface (void *thisInstance, REFIID iid, LPVOID *ppv)
void * QuickLookGeneratorPluginFactory (CFAllocatorRef allocator, CFUUIDRef typeID)
ULONG QuickLookGeneratorPluginAddRef (void *thisInstance)
ULONG QuickLookGeneratorPluginRelease (void *thisInstance)

Variables

static QLGeneratorInterfaceStruct myInterfaceFtbl


Define Documentation

#define PLUGIN_ID   "9E28C44E-DE9B-4941-8963-405BD216DD9D"

Definition at line 25 of file main.c.

Referenced by MetadataImporterPluginFactory(), and QuickLookGeneratorPluginFactory().


Typedef Documentation

typedef struct __QuickLookGeneratorPluginType QuickLookGeneratorPluginType


Function Documentation

QuickLookGeneratorPluginType * AllocQuickLookGeneratorPluginType ( CFUUIDRef  inFactoryID  ) 

Definition at line 92 of file main.c.

References __QuickLookGeneratorPluginType::conduitInterface, __QuickLookGeneratorPluginType::factoryID, malloc(), myInterfaceFtbl, and __QuickLookGeneratorPluginType::refCount.

Referenced by QuickLookGeneratorPluginFactory().

void CancelPreviewGeneration ( void *  thisInterface,
QLPreviewRequestRef  preview 
)

Definition at line 38 of file GeneratePreviewForURL.m.

References noErr.

Referenced by QuickLookGeneratorQueryInterface().

void CancelThumbnailGeneration ( void *  thisInterface,
QLThumbnailRequestRef  thumbnail 
)

Definition at line 17 of file GenerateThumbnailForURL.m.

Referenced by QuickLookGeneratorQueryInterface().

void DeallocQuickLookGeneratorPluginType ( QuickLookGeneratorPluginType thisInstance  ) 

Definition at line 120 of file main.c.

References __QuickLookGeneratorPluginType::conduitInterface, __QuickLookGeneratorPluginType::factoryID, and free().

Referenced by QuickLookGeneratorPluginRelease().

OSStatus GeneratePreviewForURL ( void *  thisInterface,
QLPreviewRequestRef  preview,
CFURLRef  url,
CFStringRef  contentTypeUTI,
CFDictionaryRef  options 
)

Referenced by QuickLookGeneratorQueryInterface().

OSStatus GenerateThumbnailForURL ( void *  thisInterface,
QLThumbnailRequestRef  thumbnail,
CFURLRef  url,
CFStringRef  contentTypeUTI,
CFDictionaryRef  options,
CGSize  maxSize 
)

Definition at line 11 of file GenerateThumbnailForURL.m.

References noErr.

Referenced by QuickLookGeneratorQueryInterface().

ULONG QuickLookGeneratorPluginAddRef ( void *  thisInstance  ) 

Definition at line 175 of file main.c.

void * QuickLookGeneratorPluginFactory ( CFAllocatorRef  allocator,
CFUUIDRef  typeID 
)

Definition at line 201 of file main.c.

References AllocQuickLookGeneratorPluginType(), NULL, PLUGIN_ID, and result().

ULONG QuickLookGeneratorPluginRelease ( void *  thisInstance  ) 

Definition at line 187 of file main.c.

References DeallocQuickLookGeneratorPluginType().

HRESULT QuickLookGeneratorQueryInterface ( void *  thisInstance,
REFIID  iid,
LPVOID *  ppv 
)

Definition at line 141 of file main.c.

References CancelPreviewGeneration(), CancelThumbnailGeneration(), GeneratePreviewForURL(), GenerateThumbnailForURL(), and NULL.


Variable Documentation

QLGeneratorInterfaceStruct myInterfaceFtbl [static]

Initial value:

Definition at line 73 of file main.c.

Referenced by AllocQuickLookGeneratorPluginType().


Generated on Tue Jul 5 15:56:10 2011 for ROOT_528-00b_version by  doxygen 1.5.1