| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Calls GetProperties method. | 59 // Calls GetProperties method. |
| 60 // |callback| is called after the method call finishes. | 60 // |callback| is called after the method call finishes. |
| 61 virtual void GetProperties(const dbus::ObjectPath& device_path, | 61 virtual void GetProperties(const dbus::ObjectPath& device_path, |
| 62 const DictionaryValueCallback& callback) = 0; | 62 const DictionaryValueCallback& callback) = 0; |
| 63 | 63 |
| 64 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the | 64 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the |
| 65 // method call finishes. The caller is responsible to delete the result. | 65 // method call finishes. The caller is responsible to delete the result. |
| 66 // Thie method returns NULL when method call fails. | 66 // Thie method returns NULL when method call fails. |
| 67 // | 67 // |
| 68 // TODO(hashimoto): Refactor CrosGetDeviceNetworkList and remove this method. | 68 // TODO(hashimoto): Refactor CrosGetDeviceNetworkList and remove this method. |
| 69 // crosbug.com/29902 |
| 69 virtual base::DictionaryValue* CallGetPropertiesAndBlock( | 70 virtual base::DictionaryValue* CallGetPropertiesAndBlock( |
| 70 const dbus::ObjectPath& device_path) = 0; | 71 const dbus::ObjectPath& device_path) = 0; |
| 71 | 72 |
| 72 // Calls ProposeScan method. | 73 // Calls ProposeScan method. |
| 73 // |callback| is called after the method call finishes. | 74 // |callback| is called after the method call finishes. |
| 74 virtual void ProposeScan(const dbus::ObjectPath& device_path, | 75 virtual void ProposeScan(const dbus::ObjectPath& device_path, |
| 75 const VoidCallback& callback) = 0; | 76 const VoidCallback& callback) = 0; |
| 76 | 77 |
| 77 // Calls SetProperty method. | 78 // Calls SetProperty method. |
| 78 // |callback| is called after the method call finishes. | 79 // |callback| is called after the method call finishes. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 91 // |callback| is called after the method call finishes. | 92 // |callback| is called after the method call finishes. |
| 92 virtual void AddIPConfig(const dbus::ObjectPath& device_path, | 93 virtual void AddIPConfig(const dbus::ObjectPath& device_path, |
| 93 const std::string& method, | 94 const std::string& method, |
| 94 const ObjectPathCallback& callback) = 0; | 95 const ObjectPathCallback& callback) = 0; |
| 95 | 96 |
| 96 // DEPRECATED DO NOT USE: Calls AddIPConfig method and blocks until the method | 97 // DEPRECATED DO NOT USE: Calls AddIPConfig method and blocks until the method |
| 97 // call finishes. | 98 // call finishes. |
| 98 // This method returns an empty path when method call fails. | 99 // This method returns an empty path when method call fails. |
| 99 // | 100 // |
| 100 // TODO(hashimoto): Refactor CrosAddIPConfig and remove this method. | 101 // TODO(hashimoto): Refactor CrosAddIPConfig and remove this method. |
| 102 // crosbug.com/29902 |
| 101 virtual dbus::ObjectPath CallAddIPConfigAndBlock( | 103 virtual dbus::ObjectPath CallAddIPConfigAndBlock( |
| 102 const dbus::ObjectPath& device_path, | 104 const dbus::ObjectPath& device_path, |
| 103 const std::string& method) = 0; | 105 const std::string& method) = 0; |
| 104 | 106 |
| 105 // Calls RequirePin method. | 107 // Calls RequirePin method. |
| 106 // |callback| is called after the method call finishes. | 108 // |callback| is called after the method call finishes. |
| 107 virtual void RequirePin(const dbus::ObjectPath& device_path, | 109 virtual void RequirePin(const dbus::ObjectPath& device_path, |
| 108 const std::string& pin, | 110 const std::string& pin, |
| 109 bool require, | 111 bool require, |
| 110 const base::Closure& callback, | 112 const base::Closure& callback, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // Create() should be used instead. | 146 // Create() should be used instead. |
| 145 FlimflamDeviceClient(); | 147 FlimflamDeviceClient(); |
| 146 | 148 |
| 147 private: | 149 private: |
| 148 DISALLOW_COPY_AND_ASSIGN(FlimflamDeviceClient); | 150 DISALLOW_COPY_AND_ASSIGN(FlimflamDeviceClient); |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 } // namespace chromeos | 153 } // namespace chromeos |
| 152 | 154 |
| 153 #endif // CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ | 155 #endif // CHROMEOS_DBUS_FLIMFLAM_DEVICE_CLIENT_H_ |
| OLD | NEW |