• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_HOST_PREFERENCES_H_
6 #define REMOTING_IOS_HOST_PREFERENCES_H_
7 
8 #import <CoreData/CoreData.h>
9 
10 // A HostPreferences contains details to negotiate and maintain a connection
11 // to a remote Chromoting host.  This is a entity in a backing store.  The
12 // implementation file is ChromotingModel.xcdatamodeld.  If this file is
13 // updated, also update the model. The model MUST be properly versioned to
14 // ensure backwards compatibility.
15 // https://developer.apple.com/library/ios/recipes/xcode_help-core_data_modeling_tool/Articles/creating_new_version.html
16 // Or the app must be uninstalled, and reinstalled which will erase the previous
17 // version of the backing store.
18 @interface HostPreferences : NSManagedObject
19 
20 // Is a prompt is needed to reconnect or continue the connection to
21 // the host
22 @property(nonatomic, copy) NSNumber* askForPin;
23 // Several properties are populated from the jabber jump server
24 @property(nonatomic, copy) NSString* hostId;
25 // Supplied by client via UI interaction
26 @property(nonatomic, copy) NSString* hostPin;
27 @property(nonatomic, copy) NSString* pairId;
28 @property(nonatomic, copy) NSString* pairSecret;
29 
30 @end
31 
32 #endif  // REMOTING_IOS_HOST_PREFERENCES_H_