00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <Cocoa/Cocoa.h>
00010 #import "BaseClass.h"
00011
00012 #define LOGIN_GETNAME 0
00013 #define LOGIN_GETPASS 1
00014 #define LOGIN_MAKEPASS1 2
00015 #define LOGIN_MAKEPASS2 3
00016 #define LOGIN_GUEST_LOGIN 4
00017 #define LOGIN_BADMATCH 5
00018 #define LOGIN_BADPASS 6
00019 #define LOGIN_AUTOLOGIN_NAME 7
00020 #define LOGIN_AUTOLOGIN_PASS 8
00021 #define LOGIN_COMPLETE 9
00022
00023 @interface LoginManager : BaseClass {
00024
00025 NSString *name;
00026 NSString *pass;
00027 int state;
00028 }
00029
00030 - (void) setName:(NSString *)loginName;
00031 - (void) setPassword:(NSString *)loginPassword;
00032 - (void) reset;
00033 - (int) state;
00034
00035 @end