OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef REMOTING_IOS_UI_HOST_LIST_VIEW_CONTROLLER_H_ | |
6 #define REMOTING_IOS_UI_HOST_LIST_VIEW_CONTROLLER_H_ | |
7 | |
8 #import <UIKit/UIKit.h> | |
9 #import <GLKit/GLKit.h> | |
10 | |
11 #import "host_refresh.h" | |
12 | |
13 // HostListViewController presents the user with a list of hosts which has | |
14 // been shared from other platforms to connect to | |
15 @interface HostListViewController : UIViewController<HostRefreshDelegate, | |
16 UITableViewDelegate, | |
17 UITableViewDataSource> { | |
18 @private | |
19 IBOutlet UITableView* _tableHostList; | |
20 IBOutlet UIButton* _btnAccount; | |
21 IBOutlet UIActivityIndicatorView* _refreshActivityIndicator; | |
22 IBOutlet UIBarButtonItem* _versionInfo; | |
23 | |
24 NSArray* _hostList; | |
25 } | |
26 | |
27 @property(nonatomic, readonly) GTMOAuth2Authentication* authorization; | |
28 @property(nonatomic, readonly) NSString* userEmail; | |
29 | |
30 // Triggered by UI 'refresh' button | |
31 - (IBAction)btnRefreshHostListPressed:(id)sender; | |
32 // Triggered by UI 'log in' button, if user is already logged in then the user | |
33 // is logged out and a new session begins by requesting the user to log in, | |
34 // possibly with a different account | |
35 - (IBAction)btnAccountPressed:(id)sender; | |
36 | |
37 @end | |
38 | |
39 #endif // REMOTING_IOS_UI_HOST_LIST_VIEW_CONTROLLER_H_ | |
OLD | NEW |