//
//  AlertsViewController.h
//  iDing
//
//  Created by Macbook Pro on 29/01/13.
//  Copyright (c) 2013 Abusamy Ltd.. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XMLParser.h"
#import "Alert.h"
#import "AlertDetailsViewController.h"
#import "SHKActivityIndicator.h"
#import "AppDelegate.h"
@interface AlertsViewController : UIViewController<UITableViewDelegate,UITableViewDataSource>
{
    IBOutlet UITableView *alertsTBVw;
    NSMutableData *mutableData;
    NSURLConnection *urlConnection;
    NSMutableArray *tableData;
    UIBarButtonItem *refreshBBtn;
    UIBarButtonItem *actvtyBBtn;
    UIActivityIndicatorView *activity;
    NSTimer *autoUpdateTimer;
}
@property(retain,nonatomic) IBOutlet UITableView *alertsTBVw;
@property(nonatomic,retain) NSMutableData *mutableData;
@property(nonatomic,retain) NSURLConnection *urlConnection;
@property(nonatomic,retain) NSMutableArray *tableData;

-(void)callWSForAlerts;
-(void)createRefreshBarButton;
@property(nonatomic,retain) NSTimer *autoUpdateTimer;

@end
