public
Description: A Backpack (by 37signals) Journal/Status Updater
Homepage: http://appremix.com/packlog/
Clone URL: git://github.com/jdg/packlog.git
packlog / Beacon.h
100644 33 lines (27 sloc) 0.861 kb
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
//
// Beacon.h
// PinchMedia
//
// Created by Jesse Rohland on 4/6/08.
// Copyright 2008 PinchMedia. All rights reserved.
//
 
#import <UIKit/UIKit.h>
#import <CoreLocation/CoreLocation.h>
 
@interface Beacon : NSObject <CLLocationManagerDelegate> {
NSString *applicationCode;
BOOL beaconStarted;
BOOL uploading;
BOOL useCoreLocation;
CLLocationManager *locationManager;
NSURLConnection *connection;
NSMutableData *receivedData;
}
 
 
+ (id)initAndStartBeaconWithApplicationCode:(NSString *)theApplicationCode useCoreLocation:(BOOL)coreLocation;
+ (id)shared;
- (void)startSubBeaconWithName:(NSString *)beaconName timeSession:(BOOL)trackSession;
- (void)endSubBeaconWithName:(NSString *)beaconName;
- (void)startBeacon;
- (void)endBeacon;
- (void)setBeaconLocation:(CLLocation *)newLocation;
- (NSDictionary *)getCurrentRunningBeacon;
 
@end