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_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 // Calls GetProperties method. | 48 // Calls GetProperties method. |
49 // |callback| is called after the method call succeeds. | 49 // |callback| is called after the method call succeeds. |
50 virtual void GetProperties(const DictionaryValueCallback& callback) = 0; | 50 virtual void GetProperties(const DictionaryValueCallback& callback) = 0; |
51 | 51 |
52 // Calls SetProperty method. | 52 // Calls SetProperty method. |
53 // |callback| is called after the method call succeeds. | 53 // |callback| is called after the method call succeeds. |
54 virtual void SetProperty(const std::string& name, | 54 virtual void SetProperty(const std::string& name, |
55 const base::Value& value, | 55 const base::Value& value, |
56 const VoidCallback& callback) = 0; | 56 const VoidCallback& callback) = 0; |
57 | 57 |
58 // DEPRECATED DO NOT USE: Calls SetProperty method and blocks until the method | |
59 // call finishes. | |
60 virtual bool CallSetPropertyAndBlock(const std::string& name, | |
61 const base::Value& value) = 0; | |
stevenjb
2012/04/23 21:42:06
We shouldn't need this.
hashimoto
2012/04/24 04:37:54
Done.
| |
62 | |
58 // Calls RequestScan method. | 63 // Calls RequestScan method. |
59 // |callback| is called after the method call succeeds. | 64 // |callback| is called after the method call succeeds. |
60 virtual void RequestScan(const std::string& type, | 65 virtual void RequestScan(const std::string& type, |
61 const VoidCallback& callback) = 0; | 66 const VoidCallback& callback) = 0; |
62 | 67 |
63 // Calls EnableTechnology method. | 68 // Calls EnableTechnology method. |
64 // |callback| is called after the method call succeeds. | 69 // |callback| is called after the method call succeeds. |
65 virtual void EnableTechnology(const std::string& type, | 70 virtual void EnableTechnology(const std::string& type, |
66 const VoidCallback& callback) = 0; | 71 const VoidCallback& callback) = 0; |
67 | 72 |
(...skipping 16 matching lines...) Expand all Loading... | |
84 // Create() should be used instead. | 89 // Create() should be used instead. |
85 FlimflamManagerClient(); | 90 FlimflamManagerClient(); |
86 | 91 |
87 private: | 92 private: |
88 DISALLOW_COPY_AND_ASSIGN(FlimflamManagerClient); | 93 DISALLOW_COPY_AND_ASSIGN(FlimflamManagerClient); |
89 }; | 94 }; |
90 | 95 |
91 } // namespace chromeos | 96 } // namespace chromeos |
92 | 97 |
93 #endif // CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ | 98 #endif // CHROMEOS_DBUS_FLIMFLAM_MANAGER_CLIENT_H_ |
OLD | NEW |