-
Notifications
You must be signed in to change notification settings - Fork 3
/
DBLoginController.h
46 lines (33 loc) · 1.14 KB
/
DBLoginController.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
36
37
38
39
40
41
42
43
44
45
46
//
// DBLoginController.h
// DropboxSDK
//
// Created by Brian Smith on 5/20/10.
// Copyright 2010 Dropbox, Inc. All rights reserved.
//
@class DBLoadingView;
@class DBRestClient;
@protocol DBLoginControllerDelegate;
@interface DBLoginController : UIViewController {
BOOL hasAppeared; // Used to track whether the view totally onscreen
id<DBLoginControllerDelegate> delegate;
UITableView* tableView;
UILabel* descriptionLabel;
UITableViewCell* emailCell;
UITextField* emailField;
UITableViewCell* passwordCell;
UITextField* passwordField;
UIView* footerView;
DBLoadingView* loadingView;
UIActivityIndicatorView* activityIndicator;
DBRestClient* restClient;
}
- (void)presentFromController:(UIViewController*)controller;
@property (nonatomic, assign) id<DBLoginControllerDelegate> delegate;
@end
// This controller tells the delegate whether the user sucessfully logged in or not
// The login controller will dismiss itself
@protocol DBLoginControllerDelegate
- (void)loginControllerDidLogin:(DBLoginController*)controller;
- (void)loginControllerDidCancel:(DBLoginController*)controller;
@end