//
//  MapViewController.h
//  EAMiPad
//
//  Created by Satish Kumar Jakkula on 4/25/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "Utility.h"

@protocol MapViewControllerDelegate<NSObject>

@optional
- (void)annotationSelected:(NSInteger )index value:(NSString *)value;
- (void)showMoreDetailsButtonClicked:(NSInteger )index value:(NSString *)value;
- (void)workRequestButtonPressed:(id)sender;
@end

@interface MapViewController : UIViewController
{
    
}

@property (unsafe_unretained) id<MapViewControllerDelegate>     delegate;
@property (nonatomic, strong) NSMutableArray                    *dataSource;
@property (nonatomic        ) AnnotationType                    annotationType;
@property (nonatomic        ) NSInteger                         selectedIndex;
@property (strong, nonatomic) IBOutlet UITableView              *tableView;
@property (strong, nonatomic) IBOutlet UIView                   *tableContainerView;
@property (strong, nonatomic) IBOutlet UIView                   *backgroundView;
@property (strong, nonatomic) IBOutlet UIView                   *listContainerView;

- (void)loadAnnotations;
- (void)refresh;

- (void)selectAnnotation:(NSUInteger )index;

@end
