OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 static const char kUnpairableDevicePath[]; | 152 static const char kUnpairableDevicePath[]; |
153 static const char kUnpairableDeviceName[]; | 153 static const char kUnpairableDeviceName[]; |
154 static const char kUnpairableDeviceAddress[]; | 154 static const char kUnpairableDeviceAddress[]; |
155 static const uint32 kUnpairableDeviceClass; | 155 static const uint32 kUnpairableDeviceClass; |
156 | 156 |
157 static const char kJustWorksPath[]; | 157 static const char kJustWorksPath[]; |
158 static const char kJustWorksName[]; | 158 static const char kJustWorksName[]; |
159 static const char kJustWorksAddress[]; | 159 static const char kJustWorksAddress[]; |
160 static const uint32 kJustWorksClass; | 160 static const uint32 kJustWorksClass; |
161 | 161 |
| 162 static const char kLowEnergyPath[]; |
| 163 static const char kLowEnergyName[]; |
| 164 static const char kLowEnergyAddress[]; |
| 165 static const uint32 kLowEnergyClass; |
| 166 |
162 private: | 167 private: |
163 // Property callback passed when we create Properties* structures. | 168 // Property callback passed when we create Properties* structures. |
164 void OnPropertyChanged(const dbus::ObjectPath& object_path, | 169 void OnPropertyChanged(const dbus::ObjectPath& object_path, |
165 const std::string& property_name); | 170 const std::string& property_name); |
166 | 171 |
167 void DiscoverySimulationTimer(); | 172 void DiscoverySimulationTimer(); |
168 void IncomingPairingSimulationTimer(); | 173 void IncomingPairingSimulationTimer(); |
169 | 174 |
170 void CompleteSimulatedPairing( | 175 void CompleteSimulatedPairing( |
171 const dbus::ObjectPath& object_path, | 176 const dbus::ObjectPath& object_path, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 236 |
232 int simulation_interval_ms_; | 237 int simulation_interval_ms_; |
233 uint32_t discovery_simulation_step_; | 238 uint32_t discovery_simulation_step_; |
234 uint32_t incoming_pairing_simulation_step_; | 239 uint32_t incoming_pairing_simulation_step_; |
235 bool pairing_cancelled_; | 240 bool pairing_cancelled_; |
236 }; | 241 }; |
237 | 242 |
238 } // namespace chromeos | 243 } // namespace chromeos |
239 | 244 |
240 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ | 245 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_DEVICE_CLIENT_H_ |
OLD | NEW |