Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(709)

Side by Side Diff: device/bluetooth/dbus/bluetooth_adapter_client.h

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_BLUETOOTH_ADAPTER_CLIENT_H_ 5 #ifndef DEVICE_BLUETOOTH_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_
6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ 6 #define DEVICE_BLUETOOTH_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/callback.h" 13 #include "base/callback.h"
12 #include "base/macros.h" 14 #include "base/macros.h"
13 #include "base/observer_list.h" 15 #include "base/observer_list.h"
14 #include "base/values.h" 16 #include "base/values.h"
15 #include "dbus/object_path.h" 17 #include "dbus/object_path.h"
16 #include "dbus/property.h" 18 #include "dbus/property.h"
17 #include "device/bluetooth/bluetooth_export.h" 19 #include "device/bluetooth/bluetooth_export.h"
(...skipping 30 matching lines...) Expand all
48 50
49 // The Bluetooth system name, generally derived from the hostname. 51 // The Bluetooth system name, generally derived from the hostname.
50 dbus::Property<std::string> name; 52 dbus::Property<std::string> name;
51 53
52 // The Bluetooth friendly name of the adapter, unlike remote devices, 54 // The Bluetooth friendly name of the adapter, unlike remote devices,
53 // this property can be changed to change the presentation for when 55 // this property can be changed to change the presentation for when
54 // the adapter is discoverable. 56 // the adapter is discoverable.
55 dbus::Property<std::string> alias; 57 dbus::Property<std::string> alias;
56 58
57 // The Bluetooth class of the adapter device. Read-only. 59 // The Bluetooth class of the adapter device. Read-only.
58 dbus::Property<uint32> bluetooth_class; 60 dbus::Property<uint32_t> bluetooth_class;
59 61
60 // Whether the adapter radio is powered. 62 // Whether the adapter radio is powered.
61 dbus::Property<bool> powered; 63 dbus::Property<bool> powered;
62 64
63 // Whether the adapter is discoverable by other Bluetooth devices. 65 // Whether the adapter is discoverable by other Bluetooth devices.
64 // |discovering_timeout| is used to automatically disable after a time 66 // |discovering_timeout| is used to automatically disable after a time
65 // period. 67 // period.
66 dbus::Property<bool> discoverable; 68 dbus::Property<bool> discoverable;
67 69
68 // Whether the adapter accepts incoming pairing requests from other 70 // Whether the adapter accepts incoming pairing requests from other
69 // Bluetooth devices. |pairable_timeout| is used to automatically disable 71 // Bluetooth devices. |pairable_timeout| is used to automatically disable
70 // after a time period. 72 // after a time period.
71 dbus::Property<bool> pairable; 73 dbus::Property<bool> pairable;
72 74
73 // The timeout in seconds to cease accepting incoming pairing requests 75 // The timeout in seconds to cease accepting incoming pairing requests
74 // after |pairable| is set to true. Zero means adapter remains pairable 76 // after |pairable| is set to true. Zero means adapter remains pairable
75 // forever. 77 // forever.
76 dbus::Property<uint32> pairable_timeout; 78 dbus::Property<uint32_t> pairable_timeout;
77 79
78 // The timeout in seconds to cease the adapter being discoverable by 80 // The timeout in seconds to cease the adapter being discoverable by
79 // other Bluetooth devices after |discoverable| is set to true. Zero 81 // other Bluetooth devices after |discoverable| is set to true. Zero
80 // means adapter remains discoverable forever. 82 // means adapter remains discoverable forever.
81 dbus::Property<uint32> discoverable_timeout; 83 dbus::Property<uint32_t> discoverable_timeout;
82 84
83 // Indicates that the adapter is discovering other Bluetooth Devices. 85 // Indicates that the adapter is discovering other Bluetooth Devices.
84 // Read-only. Use StartDiscovery() to begin discovery. 86 // Read-only. Use StartDiscovery() to begin discovery.
85 dbus::Property<bool> discovering; 87 dbus::Property<bool> discovering;
86 88
87 // List of 128-bit UUIDs that represent the available local services. 89 // List of 128-bit UUIDs that represent the available local services.
88 // Read-only. 90 // Read-only.
89 dbus::Property<std::vector<std::string>> uuids; 91 dbus::Property<std::vector<std::string>> uuids;
90 92
91 // Local Device ID information in Linux kernel modalias format. Read-only. 93 // Local Device ID information in Linux kernel modalias format. Read-only.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 protected: 179 protected:
178 BluetoothAdapterClient(); 180 BluetoothAdapterClient();
179 181
180 private: 182 private:
181 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient); 183 DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterClient);
182 }; 184 };
183 185
184 } // namespace bluez 186 } // namespace bluez
185 187
186 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_ 188 #endif // DEVICE_BLUETOOTH_DBUS_BLUETOOTH_ADAPTER_CLIENT_H_
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_uuid_unittest.cc ('k') | device/bluetooth/dbus/bluetooth_adapter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698