From 535a06ff5aa741af0c262a594fd7de8d31336176 Mon Sep 17 00:00:00 2001 From: Michael Starke Date: Tue, 8 May 2018 15:16:06 +0200 Subject: [PATCH] stubbed export plugin interface --- MacPass/MPPlugin.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/MacPass/MPPlugin.h b/MacPass/MPPlugin.h index 2f564fa4..996d0b40 100644 --- a/MacPass/MPPlugin.h +++ b/MacPass/MPPlugin.h @@ -25,9 +25,9 @@ NS_ASSUME_NONNULL_BEGIN @class MPPluginHost; -@class MPAutotypeCommand; @class KPKEntry; @class KPKAttribute; +@class KPKTree; @interface MPPlugin : NSObject @@ -85,6 +85,21 @@ NS_ASSUME_NONNULL_BEGIN - (NSString *)initialValueForAttributeWithKey:(NSString *)key; @end +@protocol MPExportPluginViewController +@required +@property (nonatomic, copy) NSDictionary *exportOptions; +@end + +@protocol MPExportPlugin +@required +/* Ideally supply a list of Formats supported. This format specifier is used when being called */ +@property (nonatomic, copy) NSDictionary* localizedSuportedFormats; +- (NSData *)dataForTree:(KPKTree *)tree withFormat:(NSString *)format options:(NSDictionary *)options; +@optional +- (NSViewController *)exportViewControllerForTree:(KPKTree *)tree withFormat:(NSString *)format; +@end + + @interface MPPlugin (Deprecated) - (instancetype)initWithPluginManager:(id)manager;