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_SHILL_DEVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 const base::Closure& callback, | 151 const base::Closure& callback, |
152 const ErrorCallback& error_callback) = 0; | 152 const ErrorCallback& error_callback) = 0; |
153 | 153 |
154 // Calls the SetCarrier method. | 154 // Calls the SetCarrier method. |
155 // |callback| is called after the method call finishes. | 155 // |callback| is called after the method call finishes. |
156 virtual void SetCarrier(const dbus::ObjectPath& device_path, | 156 virtual void SetCarrier(const dbus::ObjectPath& device_path, |
157 const std::string& carrier, | 157 const std::string& carrier, |
158 const base::Closure& callback, | 158 const base::Closure& callback, |
159 const ErrorCallback& error_callback) = 0; | 159 const ErrorCallback& error_callback) = 0; |
160 | 160 |
| 161 // Calls the Reset method. |
| 162 // |callback| is called after the method call finishes. |
| 163 virtual void Reset(const dbus::ObjectPath& device_path, |
| 164 const base::Closure& callback, |
| 165 const ErrorCallback& error_callback) = 0; |
| 166 |
161 // Returns an interface for testing (stub only), or returns NULL. | 167 // Returns an interface for testing (stub only), or returns NULL. |
162 virtual TestInterface* GetTestInterface() = 0; | 168 virtual TestInterface* GetTestInterface() = 0; |
163 | 169 |
164 protected: | 170 protected: |
165 // Create() should be used instead. | 171 // Create() should be used instead. |
166 ShillDeviceClient(); | 172 ShillDeviceClient(); |
167 | 173 |
168 private: | 174 private: |
169 DISALLOW_COPY_AND_ASSIGN(ShillDeviceClient); | 175 DISALLOW_COPY_AND_ASSIGN(ShillDeviceClient); |
170 }; | 176 }; |
171 | 177 |
172 } // namespace chromeos | 178 } // namespace chromeos |
173 | 179 |
174 #endif // CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_ | 180 #endif // CHROMEOS_DBUS_SHILL_DEVICE_CLIENT_H_ |
OLD | NEW |