Wahoo Fitness API  3.6.1
Documentation for the iPhone version of the Wahoo Fitness API.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
WFConnectorSettings.h
Go to the documentation of this file.
1 //
2 // WFConnectorSettings.h
3 // WFConnector
4 //
5 // Created by Michael Moore on 9/6/11.
6 // Copyright 2011 Wahoo Fitness. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <WFConnector/hardware_connector_types.h>
11 
12 @class WFConnectionParams;
13 @class WFSensorConnection;
14 @class WFDeviceParams;
15 
16 
28 @interface WFConnectorSettings : NSObject
29 {
32  NSString* settingsDirectory;
33  NSMutableDictionary* settingsRoot;
34 
36 }
37 
38 
48 @property (nonatomic, assign) NSTimeInterval bikeCoastingTimeout;
49 
57 @property (nonatomic, assign) float bikeWheelCircumference;
58 
59 @property (nonatomic, assign) NSSet* antBridgeWhitelist;
60 
73 @property (nonatomic, assign) BOOL isAntBridgeAutoEnabled;
74 
82 @property (nonatomic, assign) NSTimeInterval searchTimeout;
83 
90 @property (nonatomic, assign) NSTimeInterval discoveryTimeout;
91 
100 @property (nonatomic, assign) NSString* staleDataString;
101 
121 @property (nonatomic, assign) NSTimeInterval staleDataTimeout;
122 
131 @property (nonatomic, assign) BOOL useMetricUnits;
132 
133 
144 - (WFConnectionParams*)connectionParamsForSensorType:(WFSensorType_t)sensorType;
145 
155 - (NSArray*)deviceParamsForSensorType:(WFSensorType_t)sensorType;
156 
166 - (BOOL)removeDeviceParams:(WFDeviceParams*)devParams forSensorType:(WFSensorType_t)sensorType;
167 
182 - (BOOL)saveConnectionInfo:(WFSensorConnection*)connectionInfo;
183 
184 
193 - (void) setApplicationName:(NSString*) name
194  forSensor:(WFSensorType_t) sensorType
195  subType:(WFSensorSubType_t) subType;
196 
197 
198 
199 @end
WFSensorSubType_t
Describes a specific hardware implementation of a generic device profile.
Definition: hardware_connector_types.h:105
Represents the connection parameters used to establish a connection to an ANT device.
Definition: WFConnectionParams.h:23
Represents the connection parameters for a specific ANT device.
Definition: WFDeviceParams.h:17
Provides a means of persisting settings for the WFConnector.
Definition: WFConnectorSettings.h:28
signed char BOOL
Definition: types.h:110
Represents the connection for an ANT sensor.
Definition: WFSensorConnection.h:43
WFSensorType_t
Describes a type of hardware sensor device.
Definition: hardware_connector_types.h:52