00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef Augmented_Reality_Tractor_Maintenance_JDUserManager_h
00010 #define Augmented_Reality_Tractor_Maintenance_JDUserManager_h
00011
00012
00017 enum JDUSER_TYPE {
00018 JDUSER_FARMER,
00019 JDUSER_DEALER,
00020 JDUSER_DEVELOPER
00021 };
00022
00024 typedef enum JDUSER_TYPE JDUSER_T;
00025
00026 @interface JDUserManager : NSObject
00027
00028 -(instancetype) init;
00029
00030 -(bool) loginUser:(NSString *)userName withPassword:(NSString *)passWord;
00031
00032 -(int) getUserID:(NSString *)userName;
00033 -(enum JDUSER_TYPE) getUserType:(NSString *)userID;
00034
00035 -(bool) userExists:(NSString *)userName;
00036
00037 -(bool) newUser:(NSString *)userName withPassword:(NSString *)passwWord
00038 withFirstName:(NSString *)firstName andLastName:(NSString *)lastName
00039 andEmail:(NSString *)email andType:(enum JDUSER_TYPE)userType;
00040
00041 -(NSString *) hashPassword:(NSString *)plainText withSalt:(NSString *)salt;
00042
00043 @end
00044
00045 #endif