| Index: remoting/ios/ui/host_list_view_controller.h
|
| diff --git a/remoting/ios/ui/host_list_view_controller.h b/remoting/ios/ui/host_list_view_controller.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e10eaf4791e3b4f96cf8329fd0da855695a48068
|
| --- /dev/null
|
| +++ b/remoting/ios/ui/host_list_view_controller.h
|
| @@ -0,0 +1,49 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef REMOTING_IOS_UI_HOST_LIST_VIEW_CONTROLLER_H_
|
| +#define REMOTING_IOS_UI_HOST_LIST_VIEW_CONTROLLER_H_
|
| +
|
| +#import <UIKit/UIKit.h>
|
| +#import <GLKit/GLKit.h>
|
| +
|
| +// TODO (aboone) These includes are for Google+ API on iOS,
|
| +// https://developers.google.com/+/mobile/ios/.
|
| +// Google+ API will proably need to be added to third party, or if compatibile
|
| +// functionallity exists somewhere else in the chromium project, it should be
|
| +// sourced.
|
| +#import "GTMOAuth2ViewControllerTouch.h"
|
| +#import "GTLPlus.h"
|
| +
|
| +#import "host_refresh.h"
|
| +
|
| +// HostListViewController prsents the user with a list of hosts which has
|
| +// been shared from other platforms to connect to
|
| +@interface HostListViewController : UIViewController<HostRefreshDelegate,
|
| + UITableViewDelegate,
|
| + UITableViewDataSource> {
|
| + @private
|
| + IBOutlet UITableView* _tableHostList;
|
| + IBOutlet UIButton* _btnAccountObject;
|
| + IBOutlet UIActivityIndicatorView* _refreshActivityIndicator;
|
| + IBOutlet UIBarButtonItem* _versionInfo;
|
| +
|
| + NSTimer* _updateDisplayTimer;
|
| +
|
| + NSArray* _hostList;
|
| +
|
| + // provides services for Google+ and oAuth2 handshakes for Chromoting services
|
| + GTLServicePlus* _plusService;
|
| +}
|
| +
|
| +// Triggered by UI 'refresh' button
|
| +- (IBAction)btnRefreshHostList:(id)sender;
|
| +// Triggered by UI 'log in' button, if user is already logged in then the user
|
| +// is logged out and a new session begins by requesting the user to log in,
|
| +// possibly with a different account
|
| +- (IBAction)btnAccount:(id)sender;
|
| +
|
| +@end
|
| +
|
| +#endif // REMOTING_IOS_UI_HOST_LIST_VIEW_CONTROLLER_H_
|
|
|