Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Denver Timothy committed Jan 12, 2011
0 parents commit a2993c3
Show file tree
Hide file tree
Showing 16 changed files with 4,408 additions and 0 deletions.
64 changes: 64 additions & 0 deletions AppController.h
@@ -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

0 comments on commit a2993c3

Please sign in to comment.