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;