//
//  BaseWebViewController.h
//  Machicomi
//
//  Created by admin on 4/2/15.
//  Copyright (c) 2015 Phan Quang Hoang. All rights reserved.
//

#import <UIKit/UIKit.h>

//#define URL_WEB_NEWS @"http://press-dev.machicomi.jp/"
// まちプレTOP画面チェック用	ADD 2015-10-05
#define URL_WEB_NEWS_TOP	URL_WEB_NEWS @"swipe.html"

@interface BaseWebViewController : UIViewController

@property (strong, nonatomic) UIWebView * webView;

// Button back item
@property (strong, nonatomic) UIBarButtonItem *backButtonItem;

// Button reload item
@property (strong, nonatomic) UIBarButtonItem *reloadButtonItem;

// Button share item
@property (strong, nonatomic) UIBarButtonItem *shareButtonItem;

// Button close reload
@property (strong, nonatomic) UIBarButtonItem *closeButtonItem;

- (void)loadWebViewWithURL:(NSString*)url;
- (void)loadWebViewWithURL:(NSString*)url newsId:(NSString*)newsId;
- (void)reloadPressed:(id)sender;
- (void)sharePressed:(id)sender;
- (void)getInfoFooterAPI;
- (void)removeWebHistory;

// call from AppDelegate tabbutton	OFFLINE MESSAGE	ADD 2015-09-10
- (BOOL)isOnlineAndAlert;

@end
