OLD | NEW |
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 CHROMEOS_DBUS_NFC_PROPERTY_SET_H_ | 5 #ifndef CHROMEOS_DBUS_NFC_PROPERTY_SET_H_ |
6 #define CHROMEOS_DBUS_NFC_PROPERTY_SET_H_ | 6 #define CHROMEOS_DBUS_NFC_PROPERTY_SET_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // Destructor; we don't hold on to any references or memory that needs | 27 // Destructor; we don't hold on to any references or memory that needs |
28 // explicit clean-up, but clang thinks we might. | 28 // explicit clean-up, but clang thinks we might. |
29 virtual ~NfcPropertySet(); | 29 virtual ~NfcPropertySet(); |
30 | 30 |
31 // Caches |callback| so that it will be invoked after a call to GetAll() | 31 // Caches |callback| so that it will be invoked after a call to GetAll() |
32 // has successfully received all existing properties from the remote object. | 32 // has successfully received all existing properties from the remote object. |
33 void SetAllPropertiesReceivedCallback(const base::Closure& callback); | 33 void SetAllPropertiesReceivedCallback(const base::Closure& callback); |
34 | 34 |
35 // dbus::PropertySet overrides | 35 // dbus::PropertySet overrides |
36 virtual void ConnectSignals() OVERRIDE; | 36 virtual void ConnectSignals() override; |
37 virtual void Get(dbus::PropertyBase* property, | 37 virtual void Get(dbus::PropertyBase* property, |
38 GetCallback callback) OVERRIDE; | 38 GetCallback callback) override; |
39 virtual void GetAll() OVERRIDE; | 39 virtual void GetAll() override; |
40 virtual void OnGetAll(dbus::Response* response) OVERRIDE; | 40 virtual void OnGetAll(dbus::Response* response) override; |
41 virtual void Set(dbus::PropertyBase* property, | 41 virtual void Set(dbus::PropertyBase* property, |
42 SetCallback callback) OVERRIDE; | 42 SetCallback callback) override; |
43 virtual void ChangedReceived(dbus::Signal* signal) OVERRIDE; | 43 virtual void ChangedReceived(dbus::Signal* signal) override; |
44 | 44 |
45 protected: | 45 protected: |
46 const base::Closure& on_get_all_callback() { return on_get_all_callback_; } | 46 const base::Closure& on_get_all_callback() { return on_get_all_callback_; } |
47 | 47 |
48 private: | 48 private: |
49 // Optional callback used to notify clients when all properties were received | 49 // Optional callback used to notify clients when all properties were received |
50 // after a call to GetAll. | 50 // after a call to GetAll. |
51 base::Closure on_get_all_callback_; | 51 base::Closure on_get_all_callback_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(NfcPropertySet); | 53 DISALLOW_COPY_AND_ASSIGN(NfcPropertySet); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace chromeos | 56 } // namespace chromeos |
57 | 57 |
58 #endif // CHROMEOS_DBUS_NFC_PROPERTY_SET_H_ | 58 #endif // CHROMEOS_DBUS_NFC_PROPERTY_SET_H_ |
OLD | NEW |