//
//  Login.h
//  EAMiPad
//
//  Created by Satish on 11/7/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GridData.h"

@interface Login : NSObject
{
    
}
+ (Login *)sharedInstance;
+ (BOOL)isDifferentUser:(Login *)login;
+ (void)changeUser:(Login *)login;
+ (void)refreshCurrentUser;
+ (void)updatePassword:(NSString *)newPassword;

@property (nonatomic, strong) NSString  *userName;
@property (nonatomic, strong) NSString  *externalUserName;
@property (nonatomic, strong) NSString  *password;
@property (nonatomic, strong) NSString  *password2;
@property (nonatomic, strong) NSString  *dbPassword;
@property (nonatomic, strong) NSString  *organization;
@property (nonatomic, strong) NSString  *connectionId;
@property (nonatomic, strong) NSString  *serverURL;
@property (nonatomic, assign) BOOL      authenticated;
@property (nonatomic, assign) NSString  *reportServerURL;
@property (nonatomic, assign) double  serverOffset;
@property (nonatomic, strong) NSString  *timeDiff;
@property (nonatomic, strong) NSString  *userLang;
@property (nonatomic, strong) NSString  *decimalSymbol;
@property (nonatomic, strong) NSString  *groupSymbol;
@property (nonatomic, strong) NSString  *dateFormat;
@property (nonatomic, strong) NSString  *lang;
@property (nonatomic, strong) NSString *serverversion;
@property (nonatomic, strong) NSString *employee;
@property (nonatomic, strong) NSString *userTag;
@property (nonatomic,       ) BOOL      mobileAdmin;
@property (nonatomic, strong) NSString  *dbName;
@property (nonatomic,       ) BOOL      newUser;
@property (nonatomic, strong) NSString  *userDesc;
@property (nonatomic        ) BOOL      hospitalityEdition;
@property (nonatomic        ) BOOL      mfaAuthentication;
@property (nonatomic        ) BOOL      mfaAuthenticated;
@property (nonatomic        ) BOOL      ionLoginEnabled;
@property (nonatomic, strong) NSString  *allowMobileSettings;
@property (nonatomic,strong ) NSString  *allowEditOwnComments;
@property (nonatomic,strong ) NSString  *allowEditOthersComments;

- (void)save:(GridData *)gridData;
- (void)save;
- (void)delete;
- (NSString *)getPassword;
+ (NSString *)getServiceName;

@end


