Project structure cleanup and renaming

This commit is contained in:
Michael Starke
2019-06-25 11:41:41 +02:00
parent eaa0f68c7b
commit 8f5914afd2
147 changed files with 196 additions and 177 deletions

View File

@@ -53,6 +53,13 @@ FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion;
@end
#pragma mark Supported Plugin Protocolls
/*
Adopting this protocolls allows for custom settings in the Plugin settings pane.
MacPass will load your view controller and place it inside the settings window
when a user has selected your plugin in the list
*/
@protocol MPPluginSettings <NSObject>
@required
@@ -60,6 +67,20 @@ FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion;
@end
/*
Adopt this protocoll if you plugin can extract window title information for a set of applications
This way, MacPass might yield better results for autotype. Beware that his might break interoparbility
*/
@protocol MPAutotypeWindowTitleResolverPlugin <NSObject>
@required
- (BOOL)acceptsRunningApplication:(NSRunningApplication *)runningApplication;
- (NSString *)windowTitleForRunningApplication:(NSRunningApplication *)runningApplication;
@end
#pragma mark Proposed Plugin Protocolls
/*
Adopt this protocoll if your plugin supports actions on entries.
Actions will get listed in various places in menues.
@@ -111,19 +132,17 @@ FOUNDATION_EXPORT NSString *const MPPluginUnkownVersion;
This will get called when the open panel is closed by the user.
You should retrieve any results from the panel and act accordingly.
If you need custom UI in the process, you can show them here.
For example, if a CVS import might need user input on how to handle the parsed files this is the place to show it.
@param panel The open panel used for selecting what file(s) to import
@param response The response for of the user for running the panel
@return The tree constructed from the selected input file(s)
@return The KPKTree constructed from the selected input file(s)
*/
- (KPKTree *)treeForRunningOpenPanel:(NSOpenPanel *)panel withResponse:(NSModalResponse)response;
@end
@protocol MPAutotypeWindowTitleResolverPlugin <NSObject>
@required
- (BOOL)acceptsRunningApplication:(NSRunningApplication *)runningApplication;
- (NSString *)windowTitleForRunningApplication:(NSRunningApplication *)runningApplication;
@end
#pragma mark Deprecated
@interface MPPlugin (Deprecated)