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 DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ | 5 #ifndef DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ |
6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ | 6 #define DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 void MakeSetDiscoveryFilterFail(); | 79 void MakeSetDiscoveryFilterFail(); |
80 | 80 |
81 // Mark the adapter and second adapter as visible or invisible. | 81 // Mark the adapter and second adapter as visible or invisible. |
82 void SetVisible(bool visible); | 82 void SetVisible(bool visible); |
83 void SetSecondVisible(bool visible); | 83 void SetSecondVisible(bool visible); |
84 | 84 |
85 // Set adapter UUIDs | 85 // Set adapter UUIDs |
86 void SetUUIDs(const std::vector<std::string>& uuids); | 86 void SetUUIDs(const std::vector<std::string>& uuids); |
87 void SetSecondUUIDs(const std::vector<std::string>& uuids); | 87 void SetSecondUUIDs(const std::vector<std::string>& uuids); |
88 | 88 |
| 89 // Set discoverable timeout |
| 90 void SetDiscoverableTimeout(uint32_t timeout); |
| 91 |
89 // Object path, name and addresses of the adapters we emulate. | 92 // Object path, name and addresses of the adapters we emulate. |
90 static const char kAdapterPath[]; | 93 static const char kAdapterPath[]; |
91 static const char kAdapterName[]; | 94 static const char kAdapterName[]; |
92 static const char kAdapterAddress[]; | 95 static const char kAdapterAddress[]; |
93 | 96 |
94 static const char kSecondAdapterPath[]; | 97 static const char kSecondAdapterPath[]; |
95 static const char kSecondAdapterName[]; | 98 static const char kSecondAdapterName[]; |
96 static const char kSecondAdapterAddress[]; | 99 static const char kSecondAdapterAddress[]; |
97 | 100 |
98 private: | 101 private: |
(...skipping 30 matching lines...) Expand all Loading... |
129 // Last used handle value issued for a service record. | 132 // Last used handle value issued for a service record. |
130 uint32_t last_handle_; | 133 uint32_t last_handle_; |
131 | 134 |
132 // Service records manually registered with this adapter by handle. | 135 // Service records manually registered with this adapter by handle. |
133 std::map<uint32_t, BluetoothServiceRecordBlueZ> records_; | 136 std::map<uint32_t, BluetoothServiceRecordBlueZ> records_; |
134 }; | 137 }; |
135 | 138 |
136 } // namespace bluez | 139 } // namespace bluez |
137 | 140 |
138 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ | 141 #endif // DEVICE_BLUETOOTH_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ |
OLD | NEW |