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