-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDaemonController.h
More file actions
37 lines (28 loc) · 844 Bytes
/
Copy pathDaemonController.h
File metadata and controls
37 lines (28 loc) · 844 Bytes
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
//
// DaemonController.h
// mongodb.prefpane
//
// Created by Max Howell http://github.com/mxcl/playdar.prefpane
// Modified by Iván Valdés
//
#import <Cocoa/Cocoa.h>
// Allows you to specify your mongod binary location, just in case you have it in a weird place
// like /fruity/loops/mongod :)
#define MONGOD_LOCATION @"/Users/andrew/Library/PreferencePanes/Jenkins.prefPane/Contents/Resources/runJenkins.sh"
@interface DaemonController : NSObject
{
id delegate;
NSTask *daemon_task;
NSTimer *poll_timer;
NSTimer *check_startup_status_timer;
pid_t pid;
NSString *arguments;
NSString *location;
}
@property (nonatomic, retain) NSString *arguments;
-(id)initWithDelegate:(id)theDelegate andArguments:(NSString *)theArguments;
-(void)start;
-(void)stop;
-(bool)locateBinary;
-(bool)isRunning;
@end