Removed old Code. Added simple plugin system

Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
michael starke
2015-11-12 12:43:04 +01:00
parent a21e027998
commit e8ab0602e1
23 changed files with 426 additions and 185 deletions

37
MacPass/MPPlugin.h Normal file
View File

@@ -0,0 +1,37 @@
//
// MPPlugin.h
// MacPass
//
// Created by Michael Starke on 11/11/15.
// Copyright © 2015 HicknHack Software GmbH. All rights reserved.
//
#import <Cocoa/Cocoa.h>
NS_ASSUME_NONNULL_BEGIN
@class MPPluginManager;
FOUNDATION_EXPORT NSString *const kMPPluginFileExtension;
@interface MPPlugin : NSObject
@property (copy, readonly) NSString *identifier;
@property (copy, readonly) NSString *name;
@property (copy, readonly) NSString *version;
+ (instancetype)pluginWithBundleURL:(NSURL *)url pluginManager:(MPPluginManager *)manager;
- (instancetype)initWithPluginManager:(MPPluginManager *)manager NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
@end
@protocol MPPluginSettings <NSObject>
@required
@property (strong, readonly) NSViewController *settingsViewController;
@end
NS_ASSUME_NONNULL_END