-
Notifications
You must be signed in to change notification settings - Fork 1
/
ScriptPlugins.h
55 lines (46 loc) · 1.3 KB
/
ScriptPlugins.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
// ScriptPlugins.h
// StatusItem
//
// Created by Zack Smith on 8/15/11.
// Copyright 2011 318. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "Constants.h"
@interface ScriptPlugins : NSObject {
// UI Elements
IBOutlet NSMenu *statusMenu;
NSBundle *mainBundle;
NSDictionary *settings;
NSMutableArray *configScriptArguments;
NSMutableArray *menuItems;
BOOL scriptIsRunning;
BOOL debugEnabled;
}
//void
- (void)readInSettings ;
- (void)waitForLastScriptToFinish;
- (void)addConfigScriptArguments;
- (void)runPluginScripts:(id)sender;
- (void)setFailedEndStatusFromScript:(NSDictionary *)scriptDictionary
withError:(NSString *)errorMessage
withExitCode:(int)exitStatus
forMenu:(NSInteger)menuTag
controller:(id)sender;
-(void)setStatus:(NSString *)scriptTitle
withMessage:(NSString *)scriptDescription
forMenu:(NSInteger)menuTag
controller:(id)sender
asAlternate:(BOOL)alternate;
-(void)setEndStatusFromScript:(NSDictionary *)scriptDictionary
withOutPut:scriptOutput
forMenu:(NSInteger)menuTag
controller:(id)sender;
// BOOL
- (BOOL)runScript:(NSDictionary *)scriptDictionary
withArguments:(NSMutableArray *)scriptArguments
forMenu:(NSInteger)menuTag
controller:(id)sender;
// IBActions
- (IBAction)updatePluginMenus:(id)sender;
@end