forked from revned/proximity
-
Notifications
You must be signed in to change notification settings - Fork 2
/
ProximityAppController.h
53 lines (46 loc) · 1.65 KB
/
ProximityAppController.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
#import <Cocoa/Cocoa.h>
//#import <IOBluetooth/IOBluetooth.h>
//#import <IOBluetoothUI/IOBluetoothUI.h>
#import <IOBluetoothUI/objc/IOBluetoothDeviceSelectorController.h>
#import <ServiceManagement/ServiceManagement.h>
#import "ProximityBluetoothMonitor.h"
typedef enum _BPStatus {
InRange,
OutOfRange
} BPStatus;
@interface ProximityAppController : NSObject<NSApplicationDelegate, NSWindowDelegate, ProximityBluetoothMonitorDelegate>
{
ProximityBluetoothMonitor *monitor;
NSStatusItem *statusItem;
NSURL *inRangeScriptURL;
NSURL *outOfRangeScriptURL;
NSImage *outOfRangeImage;
NSImage *outOfRangeAltImage;
NSImage *inRangeImage;
NSImage *inRangeAltImage;
IBOutlet NSButton *checkUpdatesOnStartup;
IBOutlet NSButton *startOnSystemStartup;
IBOutlet NSTextField *deviceName;
IBOutlet NSTextField *inRangeScriptPath;
IBOutlet NSButton *monitoringEnabled;
IBOutlet NSTextField *outOfRangeScriptPath;
IBOutlet NSWindow *prefsWindow;
IBOutlet NSProgressIndicator *progressIndicator;
IBOutlet NSButton *runScriptsOnStartup;
IBOutlet NSTextField *timerInterval;
IBOutlet NSSlider *requiredSignalStrength;
}
// UI methods
- (IBAction)changeDevice:(id)sender;
- (IBAction)checkConnectivity:(id)sender;
- (IBAction)checkForUpdates:(id)sender;
- (IBAction)toggleStartOnSystemStartup:(id)sender;
- (IBAction)about:(id)sender;
- (IBAction)inRangeScriptChange:(id)sender;
- (IBAction)inRangeScriptClear:(id)sender;
- (IBAction)inRangeScriptTest:(id)sender;
- (IBAction)outOfRangeScriptChange:(id)sender;
- (IBAction)outOfRangeScriptClear:(id)sender;
- (IBAction)outOfRangeScriptTest:(id)sender;
- (IBAction)showWindow:(id)sender;
@end