implemented delegation from menu actions to plugins

This commit is contained in:
Michael Starke
2018-02-15 18:48:02 +01:00
parent f759e6788c
commit 8b60ae4242
4 changed files with 91 additions and 8 deletions

View File

@@ -0,0 +1,22 @@
//
// MPPluginEntryActionContext.h
// MacPass
//
// Created by Michael Starke on 15.02.18.
// Copyright © 2018 HicknHack Software GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@class MPPlugin;
@class KPKEntry;
@protocol MPEntryActionPlugin;
@interface MPPluginEntryActionContext : NSObject
@property (strong) MPPlugin<MPEntryActionPlugin> *plugin;
@property (copy) NSArray <KPKEntry *> *entries;
- (instancetype)initWithPlugin:(MPPlugin<MPEntryActionPlugin> *)plugin entries:(NSArray <KPKEntry *> *)entries NS_DESIGNATED_INITIALIZER;
@end