/* * LBShareProtocol.h * Lightbox * * Created by Josh Anon on Thu Dec 26 2002. * Copyright (c) 2002 Josh Anon. All rights reserved. * */ #import @protocol LBShareProtocol < NSObject > //must provide a name +(NSString*)name; //don't have to provide an icon, but if you do, make it 32 x 32 pixels +(NSImage*)icon; //current protocol version is 1 +(int)version; //called to load the bundle +(BOOL)initializeClass:(NSBundle*)theBundle; //once cocoa gets unloading bundle support, Lightbox'll call this to unload +(void)terminateClass; //do you want unconverted images in the images array? +(BOOL)acceptsRaw; /* Array of dictionaries with keys: imagePath : path to the image (might not be on HD) thumbnailPath : path to the thumbnail mdPath: path to metadata title : image title suggestedTitle: suggested filename built from title (without extension) converted : NSNumber w/ bool for if it's converted */ -(void)setImages:(NSArray*)images; -(void)setParentWindow:(NSWindow*)window; //called when LB is ready to run the plugin. setImages: and setParentWindow: will be called first -(void)run; @end