-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Denver Timothy
committed
Jan 12, 2011
0 parents
commit a2993c3
Showing
16 changed files
with
4,408 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#import <Cocoa/Cocoa.h> | ||
//#import <IOBluetooth/IOBluetooth.h> | ||
//#import <IOBluetoothUI/IOBluetoothUI.h> | ||
#import <IOBluetoothUI/objc/IOBluetoothDeviceSelectorController.h> | ||
|
||
int thisVersionMajor = 1; | ||
int thisVersionMinor = 5; | ||
|
||
typedef enum _BPStatus { | ||
InRange, | ||
OutOfRange | ||
} BPStatus; | ||
|
||
@interface AppController : NSObject | ||
{ | ||
IOBluetoothDevice *device; | ||
NSTimer *timer; | ||
BPStatus priorStatus; | ||
NSStatusItem *statusItem; | ||
|
||
NSImage *outOfRangeImage; | ||
NSImage *outOfRangeAltImage; | ||
NSImage *inRangeImage; | ||
NSImage *inRangeAltImage; | ||
|
||
IBOutlet id checkUpdatesOnStartup; | ||
IBOutlet id deviceName; | ||
IBOutlet id inRangeScriptPath; | ||
IBOutlet id monitoringEnabled; | ||
IBOutlet id outOfRangeScriptPath; | ||
IBOutlet id prefsWindow; | ||
IBOutlet id progressIndicator; | ||
IBOutlet id runScriptsOnStartup; | ||
IBOutlet id timerInterval; | ||
} | ||
|
||
// AppController methods | ||
- (void)createMenuBar; | ||
- (void)userDefaultsLoad; | ||
- (void)userDefaultsSave; | ||
- (BOOL)isInRange; | ||
- (void)menuIconInRange; | ||
- (void)menuIconOutOfRange; | ||
- (void)runInRangeScript; | ||
- (void)runOutOfRangeScript; | ||
- (void)startMonitoring; | ||
- (void)stopMonitoring; | ||
|
||
|
||
// UI methods | ||
- (IBAction)changeDevice:(id)sender; | ||
- (IBAction)checkConnectivity:(id)sender; | ||
- (IBAction)checkForUpdates:(id)sender; | ||
- (IBAction)donate:(id)sender; | ||
- (IBAction)enableMonitoring:(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 |
Oops, something went wrong.