mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-22 18:49:27 +00:00
implemented delegation from menu actions to plugins
This commit is contained in:
22
MacPass/MPPluginEntryActionContext.h
Normal file
22
MacPass/MPPluginEntryActionContext.h
Normal 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
|
||||
Reference in New Issue
Block a user