Developer Area

root/apps/iphone/my.tel/trunk/Classes/LocationViewController.h @ 193

Revision 193, 2.0 kB (checked in by henri, 5 years ago)

Major update to use embedded OpenStreetMaps? for location handling.

Line 
1//
2//  LocationViewController.h
3//  VIP.tel
4//
5//  Created by Henri Asseily on 11/17/08.
6//  Copyright 2008 Telnic Ltd.. All rights reserved.
7//
8
9#import <UIKit/UIKit.h>
10#import "VIPConnect.h"
11#import "Location.h"
12#import "MyCLController.h"
13#import "MapView/RMMapView.h"
14#import "MapView/RMMarker.h"
15#import "MapView/RMMarkerManager.h"
16
17@protocol TelPostLoginDelegate;
18
19@interface LocationViewController : UIViewController <MyCLControllerDelegate, TelPostLoginDelegate> {
20        NSString *apiId;
21        CLLocation *telLocation;
22
23        IBOutlet UILabel *domainLabel;
24        IBOutlet UILabel *distanceLabel;
25        IBOutlet UILabel *prefixLabel;
26        IBOutlet UILabel *postfixLabel;
27        IBOutlet UISwitch *gpsSwitch;
28        IBOutlet UILabel *labelGpsLastUpdateDate;
29        IBOutlet UIButton *buttonUpdateLoc;
30        IBOutlet UIButton *buttonDeleteLoc;
31        IBOutlet UIButton *buttonCenterGps;
32        IBOutlet UIButton *buttonCenterTel;
33        IBOutlet RMMapView *theMap;
34}
35
36- (void)updateUILocationWithJson:(NSDictionary *)parsedJson;
37- (void)updateUILocationStrings;
38- (void)getLocation;
39- (void)storeLocation;
40- (void)deleteLocation;
41
42@property (nonatomic, retain) NSString *apiId;
43@property (nonatomic, retain) CLLocation *telLocation;
44
45- (IBAction)didPressUpdate:(id)sender;
46- (IBAction)didPressDelete:(id)sender;
47- (IBAction)didPressCenterGps:(id)sender;
48- (IBAction)didPressCenterTel:(id)sender;
49- (IBAction)gpsSwitchToggled:(UISwitch *)sender;
50
51@property (nonatomic, retain) IBOutlet UILabel *domainLabel;
52@property (nonatomic, retain) IBOutlet UILabel *distanceLabel;
53@property (nonatomic, retain) IBOutlet UILabel *prefixLabel;
54@property (nonatomic, retain) IBOutlet UILabel *postfixLabel;
55@property (nonatomic, retain) IBOutlet UISwitch *gpsSwitch;
56@property (nonatomic, retain) IBOutlet UILabel *labelGpsLastUpdateDate;
57@property (nonatomic, retain) IBOutlet UIButton *buttonUpdateLoc;
58@property (nonatomic, retain) IBOutlet UIButton *buttonDeleteLoc;
59@property (nonatomic, retain) IBOutlet UIButton *buttonCenterGps;
60@property (nonatomic, retain) IBOutlet UIButton *buttonCenterTel;
61@property (nonatomic, retain) IBOutlet RMMapView *theMap;
62
63@end
Note: See TracBrowser for help on using the browser.
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us