-
Notifications
You must be signed in to change notification settings - Fork 6
/
AuthenticationViewController.h
35 lines (29 loc) · 1.34 KB
/
AuthenticationViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#import <UIKit/UIKit.h>
@interface AuthenticationViewController : UIViewController {
IBOutlet UITableView *tableView;
IBOutlet UITextField *usernameField;
IBOutlet UITextField *passwordField;
IBOutlet UITableViewCell *usernameCell;
IBOutlet UITableViewCell *passwordCell;
IBOutlet UITableViewCell *statusCell;
IBOutlet UIBarButtonItem *doneButton;
IBOutlet UIButton *helpBannerButton;
BOOL signingIn;
}
@property (nonatomic, retain) IBOutlet UITableView *tableView;
@property (nonatomic, retain) IBOutlet UITextField *usernameField;
@property (nonatomic, retain) IBOutlet UITextField *passwordField;
@property (nonatomic, retain) IBOutlet UITableViewCell *usernameCell;
@property (nonatomic, retain) IBOutlet UITableViewCell *passwordCell;
@property (nonatomic, retain) IBOutlet UITableViewCell *statusCell;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *doneButton;
@property (nonatomic, retain) IBOutlet UIButton *helpBannerButton;
+ (BOOL)signIn;
+ (void)retrieveUsername:(NSString **)username password:(NSString **)password;
+ (void)saveAndAuthenticate:(NSString *)username password:(NSString *)password;
+ (void)authenticate:(NSString *)username password:(NSString *)password;
- (IBAction)dismissDialog:(id)sender;
- (IBAction)saveCredentials:(id)sender;
- (IBAction)textDidChange:(id)sender;
- (IBAction)openTraktSite:(id)sender;
@end