Index: remoting/client/ios/session/remoting_client.h |
diff --git a/remoting/client/ios/session/remoting_client.h b/remoting/client/ios/session/remoting_client.h |
index c6bed3804da413b774542270914b5a7071c6245a..900a346e70df716789d807519ed1b18dad3b2330 100644 |
--- a/remoting/client/ios/session/remoting_client.h |
+++ b/remoting/client/ios/session/remoting_client.h |
@@ -7,18 +7,36 @@ |
#import <Foundation/Foundation.h> |
-#import "remoting/client/ios/display/gl_display_handler.h" |
- |
#include "remoting/protocol/connection_to_host.h" |
-#include "remoting/protocol/session.h" |
- |
-namespace remoting { |
-struct ConnectToHostInfo; |
-} |
+@class HostInfo; |
+@class GlDisplayHandler; |
+ |
+// A list of notifications that will be sent out for different types of Remoting |
+// Client events. |
+// |
+extern NSString* const kHostSessionStatusChanged; |
+extern NSString* const kHostSessionPinProvided; |
+ |
+// List of keys in user info from events. |
+extern NSString* const kSessionDetails; |
+extern NSString* const kSessonStateErrorCode; |
+extern NSString* const kHostSessionPin; |
+ |
+// Remoting Client is the entry point for starting a session with a remote |
+// host. This object should not be reused. Remoting Client will use the default |
+// NSNotificationCenter to signal session state changes using the key |
+// |kHostSessionStatusChanged|. It expects to receive an event back on |
+// |kHostSessionPinProvided| when the session is asking for a PIN authenication. |
@interface RemotingClient : NSObject |
-- (void)connectToHost:(const remoting::ConnectToHostInfo&)info; |
+// Connect to a given host. |
+// |hostInfo| is all the details around a host. |
+// |username| is the username to be used when connecting. |
+// |accessToken| is the oAuth access token to provided to create the session. |
+- (void)connectToHost:(HostInfo*)hostInfo |
+ username:(NSString*)username |
+ accessToken:(NSString*)accessToken; |
// Mirrors the native client session delegate interface: |
@@ -37,7 +55,10 @@ struct ConnectToHostInfo; |
- (void)handleExtensionMessageOfType:(NSString*)type message:(NSString*)message; |
+// The display handler tied to the remoting client used to display the host. |
@property(nonatomic, strong) GlDisplayHandler* displayHandler; |
+// The host info used to make the remoting client connection. |
+@property(nonatomic, readonly) HostInfo* hostInfo; |
@end |