-
Notifications
You must be signed in to change notification settings - Fork 189
/
iPhoneTrackingAppDelegate.h
53 lines (46 loc) · 1.74 KB
/
iPhoneTrackingAppDelegate.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
//
// iPhoneTrackingAppDelegate.h
// iPhoneTracking
//
// Created by Pete Warden on 4/15/11.
//
/***********************************************************************************
*
* All code (C) Pete Warden, 2011
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
*
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
************************************************************************************/
#import <Cocoa/Cocoa.h>
#import <WebKit/WebKit.h>
// See http://stackoverflow.com/questions/1496788/building-for-10-5-in-xcode-3-2-on-snow-leopard-error
// Thanks to Peter Plavchan who also suggested this
#if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5)
@interface iPhoneTrackingAppDelegate : NSObject
#else
@interface iPhoneTrackingAppDelegate : NSObject <NSApplicationDelegate>
#endif
{
NSWindow *window;
WebView *webView;
WebScriptObject* scriptObject;
}
- (void)loadLocationDB;
- (BOOL)tryToLoadLocationDB:(NSString*) locationDBPath forDevice:(NSString*) deviceName;
- (void) incrementBuckets:(NSMutableDictionary*)buckets forKey:(NSString*)key;
@property (assign) IBOutlet NSWindow *window;
@property (assign) IBOutlet WebView *webView;
- (IBAction)openAboutPanel:(id)sender;
@end