PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/iPhoneTrackingAppDelegate.h

http://github.com/petewarden/iPhoneTracker
C Header | 53 lines | 19 code | 7 blank | 27 comment | 0 complexity | 6215f88d01a2f469c160709a74d9a68a MD5 | raw file
 1//
 2//  iPhoneTrackingAppDelegate.h
 3//  iPhoneTracking
 4//
 5//  Created by Pete Warden on 4/15/11.
 6//
 7
 8/***********************************************************************************
 9*
10* All code (C) Pete Warden, 2011
11*
12*    This program is free software: you can redistribute it and/or modify
13*    it under the terms of the GNU General Public License as published by
14*    the Free Software Foundation, either version 3 of the License, or
15*    (at your option) any later version.
16*
17*    This program is distributed in the hope that it will be useful,
18*    but WITHOUT ANY WARRANTY; without even the implied warranty of
19*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20*
21*    GNU General Public License for more details.
22*
23*    You should have received a copy of the GNU General Public License
24*    along with this program.  If not, see <http://www.gnu.org/licenses/>.
25*
26************************************************************************************/
27
28
29#import <Cocoa/Cocoa.h>
30#import <WebKit/WebKit.h>
31
32// See http://stackoverflow.com/questions/1496788/building-for-10-5-in-xcode-3-2-on-snow-leopard-error
33// Thanks to Peter Plavchan who also suggested this
34#if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_5)
35@interface iPhoneTrackingAppDelegate : NSObject
36#else
37@interface iPhoneTrackingAppDelegate : NSObject <NSApplicationDelegate>
38#endif
39{
40  NSWindow *window;
41  WebView *webView;
42  WebScriptObject* scriptObject;
43}
44
45- (void)loadLocationDB;
46- (BOOL)tryToLoadLocationDB:(NSString*) locationDBPath forDevice:(NSString*) deviceName;
47- (void) incrementBuckets:(NSMutableDictionary*)buckets forKey:(NSString*)key;
48
49@property (assign) IBOutlet NSWindow *window;
50@property (assign) IBOutlet WebView *webView;
51- (IBAction)openAboutPanel:(id)sender;
52
53@end