2007-02-24 20:36:27 +00:00
|
|
|
/* PluginController */
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2007-10-09 01:20:46 +00:00
|
|
|
#import "Plugin.h"
|
|
|
|
|
2008-03-03 02:18:27 +00:00
|
|
|
//Singletonish
|
2007-10-09 01:20:46 +00:00
|
|
|
@interface PluginController : NSObject <CogPluginController>
|
2007-02-24 20:36:27 +00:00
|
|
|
{
|
2007-03-02 01:36:52 +00:00
|
|
|
NSMutableDictionary *sources;
|
2007-10-09 01:20:46 +00:00
|
|
|
NSMutableDictionary *containers;
|
2007-02-24 20:36:27 +00:00
|
|
|
NSMutableDictionary *metadataReaders;
|
2007-10-14 18:12:15 +00:00
|
|
|
|
|
|
|
NSMutableDictionary *propertiesReadersByExtension;
|
|
|
|
NSMutableDictionary *propertiesReadersByMimeType;
|
|
|
|
|
|
|
|
NSMutableDictionary *decodersByExtension;
|
|
|
|
NSMutableDictionary *decodersByMimeType;
|
2007-10-20 15:46:39 +00:00
|
|
|
|
2008-03-01 15:28:17 +00:00
|
|
|
BOOL configured;
|
2007-02-24 20:36:27 +00:00
|
|
|
}
|
|
|
|
|
2008-03-01 15:28:17 +00:00
|
|
|
@property(retain) NSMutableDictionary *sources;
|
|
|
|
@property(retain) NSMutableDictionary *containers;
|
|
|
|
@property(retain) NSMutableDictionary *metadataReaders;
|
|
|
|
|
|
|
|
@property(retain) NSMutableDictionary *propertiesReadersByExtension;
|
|
|
|
@property(retain) NSMutableDictionary *propertiesReadersByMimeType;
|
|
|
|
|
|
|
|
@property(retain) NSMutableDictionary *decodersByExtension;
|
|
|
|
@property(retain) NSMutableDictionary *decodersByMimeType;
|
|
|
|
|
|
|
|
@property BOOL configured;
|
|
|
|
|
2007-02-24 20:36:27 +00:00
|
|
|
- (void)setup;
|
2007-03-02 01:36:52 +00:00
|
|
|
- (void)printPluginInfo;
|
2007-02-24 20:36:27 +00:00
|
|
|
|
2007-03-02 01:36:52 +00:00
|
|
|
- (void)loadPlugins;
|
|
|
|
- (void)loadPluginsAtPath:(NSString *)path;
|
2007-02-24 20:36:27 +00:00
|
|
|
|
2007-03-02 01:36:52 +00:00
|
|
|
- (void)setupSource:(NSString *)className;
|
2007-10-09 01:20:46 +00:00
|
|
|
- (void)setupContainer:(NSString *)className;
|
2007-03-02 01:36:52 +00:00
|
|
|
- (void)setupDecoder:(NSString *)className;
|
|
|
|
- (void)setupMetadataReader:(NSString *)className;
|
|
|
|
- (void)setupPropertiesReader:(NSString *)className;
|
2007-02-24 20:36:27 +00:00
|
|
|
|
|
|
|
@end
|