PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/app/utils/CLI.h

http://github.com/tgunr/passengerpane
C Header | 40 lines | 28 code | 11 blank | 1 comment | 0 complexity | 6a84b18d032eb52ced57ffee52af6466 MD5 | raw file
 1#import <Foundation/Foundation.h>
 2#import "CJSONDeserializer.h"
 3#import "Application.h"
 4
 5enum {
 6  PPANE_SUCCESS = 0
 7};
 8
 9
10@interface CLI : NSObject {
11  id appDelegate;
12  AuthorizationRef authorizationRef;
13  NSString *pathToCLI;
14}
15
16@property (assign) id appDelegate;
17@property (assign) NSString *pathToCLI;
18
19+ (id) sharedInstance;
20
21- (NSMutableArray *) listApplications;
22- (void) add:(Application *)application;
23- (void) update:(Application *)application;
24- (void) restart:(Application *)application;
25- (void) restart;
26- (BOOL) isPassengerModuleInstalled;
27
28- (id) execute:(NSArray *)arguments elevated:(BOOL)elevated;
29- (id) execute:(NSArray *)arguments;
30
31- (AuthorizationRef) authorizationRef;
32- (void) setAuthorizationRef:(AuthorizationRef)ref;
33
34- (void) deauthorize;
35- (BOOL) isAuthorized;
36
37// For testing purposed only
38- (void) fakeAuthorize;
39
40@end