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

Side by Side Diff: chromeos/dbus/bluetooth_gatt_characteristic_client.h

Issue 307453007: device/bluetooth: Implement GATT characteristic properties on Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 6 #define CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "chromeos/chromeos_export.h" 11 #include "chromeos/chromeos_export.h"
12 #include "chromeos/dbus/dbus_client.h" 12 #include "chromeos/dbus/dbus_client.h"
13 #include "dbus/object_path.h" 13 #include "dbus/object_path.h"
14 #include "dbus/property.h" 14 #include "dbus/property.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // BluetoothGattCharacteristicClient is used to communicate with remote GATT 18 // BluetoothGattCharacteristicClient is used to communicate with remote GATT
19 // characteristic objects exposed by the Bluetooth daemon. 19 // characteristic objects exposed by the Bluetooth daemon.
20 class CHROMEOS_EXPORT BluetoothGattCharacteristicClient : public DBusClient { 20 class CHROMEOS_EXPORT BluetoothGattCharacteristicClient : public DBusClient {
21 public: 21 public:
22 // TODO(armansito): Move these constants to service_constants.h
keybuk 2014/05/30 22:24:56 Do it before submission
armansito 2014/06/05 19:44:13 Done.
23 static const char kFlagBroadcast[];
24 static const char kFlagRead[];
25 static const char kFlagWriteWithoutResponse[];
26 static const char kFlagWrite[];
27 static const char kFlagNotify[];
28 static const char kFlagIndicate[];
29 static const char kFlagAuthenticatedSignedWrites[];
30 static const char kFlagExtendedProperties[];
31 static const char kFlagReliableWrite[];
32 static const char kFlagWritableAuxiliaries[];
33
22 // Structure of properties associated with GATT characteristics. 34 // Structure of properties associated with GATT characteristics.
23 struct Properties : public dbus::PropertySet { 35 struct Properties : public dbus::PropertySet {
24 // The 128-bit characteristic UUID. [read-only] 36 // The 128-bit characteristic UUID. [read-only]
25 dbus::Property<std::string> uuid; 37 dbus::Property<std::string> uuid;
26 38
27 // Object path of the GATT service the characteristic belongs to. 39 // Object path of the GATT service the characteristic belongs to.
28 // [read-only] 40 // [read-only]
29 dbus::Property<dbus::ObjectPath> service; 41 dbus::Property<dbus::ObjectPath> service;
30 42
31 // Characteristic value read from the remote Bluetooth device. Setting the 43 // Characteristic value read from the remote Bluetooth device. Setting the
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 protected: 97 protected:
86 BluetoothGattCharacteristicClient(); 98 BluetoothGattCharacteristicClient();
87 99
88 private: 100 private:
89 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient); 101 DISALLOW_COPY_AND_ASSIGN(BluetoothGattCharacteristicClient);
90 }; 102 };
91 103
92 } // namespace chromeos 104 } // namespace chromeos
93 105
94 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 106 #endif // CHROMEOS_DBUS_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698