//
//  SHXBaseLogInViewController.h
//  LoginApp
//
//  Created by Lin Zhou on 10/29/13.
//  Copyright (c) 2013 Infor Global Solutions, New York, USA. All rights reserved.
//

#import <UIKit/UIKit.h>

@class BaseSettingsViewController;
@interface SHXBaseLogInViewController : UIViewController

@property (nonatomic, strong) UIImage   *appLabelImage;
@property (nonatomic, strong) NSString  *appLabelString;

@property (nonatomic, assign) BOOL      showTrademark;
@property (nonatomic, assign) BOOL      showSettings;
@property (nonatomic, assign) BOOL      showForgotPWD;
@property (nonatomic, assign) BOOL      isLoading;
@property (nonatomic, strong, readonly) NSString *nameString;
@property (nonatomic, strong, readonly) NSString *pwdString;
@property (nonatomic, strong, readonly) NSString *pwdString2;

@property (nonatomic, strong) UITextField   *userField;
@property (nonatomic, strong) UITextField   *pwdField;
@property (nonatomic, strong) UITextField   *pwdField2;

@property (nonatomic        ) BOOL          ionEnabled;

// log in actions, can be overwritten by subclasses
- (void)userNameMissingAction;
- (void)passwordMiddingAction;
- (void)logInAction;
- (void)logInCancelledAction;
- (void)logInSuccessAction;
- (void)logInFailedAction;
- (void)biometricLogInAction;

// settings actions, should be overwritten by subclasses
- (BaseSettingsViewController *)settingsViewController;
- (void)settingsAction;
- (void)settingsSave;
- (void)settingsCancel;

// forgot password
- (void)retrievePwdAction;

- (void)makeSecondPasswordVisible:(BOOL)value;
- (BOOL)isSecondPasswordVisible;
- (void)enableION:(BOOL )enable;
- (void)hideOrShowBiometricLoginButton;

@end
