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 // TODO (aboone) These includes are for Google+ API on iOS, |
| 12 // https://developers.google.com/+/mobile/ios/. |
| 13 // Google+ API will proably need to be added to third party, or if compatibile |
| 14 // functionallity exists somewhere else in the chromium project, it should be |
| 15 // sourced. |
| 16 #import "GTMOAuth2ViewControllerTouch.h" |
| 17 #import "GTLPlus.h" |
| 18 |
| 19 #import "host_refresh.h" |
| 20 |
| 21 // HostListViewController prsents the user with a list of hosts which has |
| 22 // been shared from other platforms to connect to |
| 23 @interface HostListViewController : UIViewController<HostRefreshDelegate, |
| 24 UITableViewDelegate, |
| 25 UITableViewDataSource> { |
| 26 @private |
| 27 IBOutlet UITableView* _tableHostList; |
| 28 IBOutlet UIButton* _btnAccountObject; |
| 29 IBOutlet UIActivityIndicatorView* _refreshActivityIndicator; |
| 30 IBOutlet UIBarButtonItem* _versionInfo; |
| 31 |
| 32 NSTimer* _updateDisplayTimer; |
| 33 |
| 34 NSArray* _hostList; |
| 35 |
| 36 // provides services for Google+ and oAuth2 handshakes for Chromoting services |
| 37 GTLServicePlus* _plusService; |
| 38 } |
| 39 |
| 40 // Triggered by UI 'refresh' button |
| 41 - (IBAction)btnRefreshHostList:(id)sender; |
| 42 // Triggered by UI 'log in' button, if user is already logged in then the user |
| 43 // is logged out and a new session begins by requesting the user to log in, |
| 44 // possibly with a different account |
| 45 - (IBAction)btnAccount:(id)sender; |
| 46 |
| 47 @end |
| 48 |
| 49 #endif // REMOTING_IOS_UI_HOST_LIST_VIEW_CONTROLLER_H_ |
OLD | NEW |