OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FLIMFLAM_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 | 53 |
54 // Resets PropertyChanged signal handler. | 54 // Resets PropertyChanged signal handler. |
55 virtual void ResetPropertyChangedHandler( | 55 virtual void ResetPropertyChangedHandler( |
56 const dbus::ObjectPath& device_path) = 0; | 56 const dbus::ObjectPath& device_path) = 0; |
57 | 57 |
58 // Calls GetProperties method. | 58 // Calls GetProperties method. |
59 // |callback| is called after the method call finishes. | 59 // |callback| is called after the method call finishes. |
60 virtual void GetProperties(const dbus::ObjectPath& device_path, | 60 virtual void GetProperties(const dbus::ObjectPath& device_path, |
61 const DictionaryValueCallback& callback) = 0; | 61 const DictionaryValueCallback& callback) = 0; |
62 | 62 |
63 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the | |
64 // method call finishes. The caller is responsible to delete the result. | |
65 // Thie method returns NULL when method call fails. | |
stevenjb
2012/04/19 16:47:00
Can we indicate what code currently uses these and
hashimoto
2012/04/20 02:31:22
Done.
| |
66 virtual base::DictionaryValue* CallGetPropertiesAndBlock( | |
67 const dbus::ObjectPath& device_path) = 0; | |
68 | |
63 // Calls ProposeScan method. | 69 // Calls ProposeScan method. |
64 // |callback| is called after the method call finishes. | 70 // |callback| is called after the method call finishes. |
65 virtual void ProposeScan(const dbus::ObjectPath& device_path, | 71 virtual void ProposeScan(const dbus::ObjectPath& device_path, |
66 const VoidCallback& callback) = 0; | 72 const VoidCallback& callback) = 0; |
67 | 73 |
68 // Calls SetProperty method. | 74 // Calls SetProperty method. |
69 // |callback| is called after the method call finishes. | 75 // |callback| is called after the method call finishes. |
70 virtual void SetProperty(const dbus::ObjectPath& device_path, | 76 virtual void SetProperty(const dbus::ObjectPath& device_path, |
71 const std::string& name, | 77 const std::string& name, |
72 const base::Value& value, | 78 const base::Value& value, |
73 const VoidCallback& callback) = 0; | 79 const VoidCallback& callback) = 0; |
74 | 80 |
75 // Calls ClearProperty method. | 81 // Calls ClearProperty method. |
76 // |callback| is called after the method call finishes. | 82 // |callback| is called after the method call finishes. |
77 virtual void ClearProperty(const dbus::ObjectPath& device_path, | 83 virtual void ClearProperty(const dbus::ObjectPath& device_path, |
78 const std::string& name, | 84 const std::string& name, |
79 const VoidCallback& callback) = 0; | 85 const VoidCallback& callback) = 0; |
80 | 86 |
81 // Calls AddIPConfig method. | 87 // Calls AddIPConfig method. |
82 // |callback| is called after the method call finishes. | 88 // |callback| is called after the method call finishes. |
83 virtual void AddIPConfig(const dbus::ObjectPath& device_path, | 89 virtual void AddIPConfig(const dbus::ObjectPath& device_path, |
84 const std::string& method, | 90 const std::string& method, |
85 const ObjectPathCallback& callback) = 0; | 91 const ObjectPathCallback& callback) = 0; |
86 | 92 |
93 // DEPRECATED DO NOT USE: Calls AddIPConfig method and blocks until the method | |
94 // call finishes. | |
95 // This method returns an empty path when method call fails. | |
96 virtual dbus::ObjectPath CallAddIPConfigAndBlock( | |
97 const dbus::ObjectPath& device_path, | |
98 const std::string& method) = 0; | |
99 | |
87 // Calls RequirePin method. | 100 // Calls RequirePin method. |
88 // |callback| is called after the method call finishes. | 101 // |callback| is called after the method call finishes. |
89 virtual void RequirePin(const dbus::ObjectPath& device_path, | 102 virtual void RequirePin(const dbus::ObjectPath& device_path, |
90 const std::string& pin, | 103 const std::string& pin, |
91 bool require, | 104 bool require, |
92 const VoidCallback& callback) = 0; | 105 const VoidCallback& callback) = 0; |
93 | 106 |
94 // Calls EnterPin method. | 107 // Calls EnterPin method. |
95 // |callback| is called after the method call finishes. | 108 // |callback| is called after the method call finishes. |
96 virtual void EnterPin(const dbus::ObjectPath& device_path, | 109 virtual void EnterPin(const dbus::ObjectPath& device_path, |
(...skipping 24 matching lines...) Expand all Loading... | |
121 // Create() should be used instead. | 134 // Create() should be used instead. |
122 FlimflamDeviceClient(); | 135 FlimflamDeviceClient(); |
123 | 136 |
124 private: | 137 private: |
125 DISALLOW_COPY_AND_ASSIGN(FlimflamDeviceClient); | 138 DISALLOW_COPY_AND_ASSIGN(FlimflamDeviceClient); |
126 }; | 139 }; |
127 | 140 |
128 } // namespace chromeos | 141 } // namespace chromeos |
129 | 142 |
130 #endif // CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ | 143 #endif // CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ |
OLD | NEW |