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_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
12 #include "chromeos/dbus/dbus_client.h" | 12 #include "chromeos/dbus/dbus_client.h" |
13 #include "chromeos/dbus/dbus_client_implementation_type.h" | |
14 #include "chromeos/dbus/dbus_method_call_status.h" | 13 #include "chromeos/dbus/dbus_method_call_status.h" |
15 #include "chromeos/dbus/shill_client_helper.h" | 14 #include "chromeos/dbus/shill_client_helper.h" |
16 | 15 |
17 namespace dbus { | 16 namespace dbus { |
18 | 17 |
19 class ObjectPath; | 18 class ObjectPath; |
20 | 19 |
21 } // namespace dbus | 20 } // namespace dbus |
22 | 21 |
23 namespace chromeos { | 22 namespace chromeos { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 101 |
103 // A string containing the BSSID of the device. Only set if the device has | 102 // A string containing the BSSID of the device. Only set if the device has |
104 // already been setup. | 103 // already been setup. |
105 std::string device_bssid; | 104 std::string device_bssid; |
106 }; | 105 }; |
107 | 106 |
108 virtual ~ShillManagerClient(); | 107 virtual ~ShillManagerClient(); |
109 | 108 |
110 // Factory function, creates a new instance which is owned by the caller. | 109 // Factory function, creates a new instance which is owned by the caller. |
111 // For normal usage, access the singleton via DBusThreadManager::Get(). | 110 // For normal usage, access the singleton via DBusThreadManager::Get(). |
112 static ShillManagerClient* Create(DBusClientImplementationType type); | 111 static ShillManagerClient* Create(); |
113 | 112 |
114 // Adds a property changed |observer|. | 113 // Adds a property changed |observer|. |
115 virtual void AddPropertyChangedObserver( | 114 virtual void AddPropertyChangedObserver( |
116 ShillPropertyChangedObserver* observer) = 0; | 115 ShillPropertyChangedObserver* observer) = 0; |
117 | 116 |
118 // Removes a property changed |observer|. | 117 // Removes a property changed |observer|. |
119 virtual void RemovePropertyChangedObserver( | 118 virtual void RemovePropertyChangedObserver( |
120 ShillPropertyChangedObserver* observer) = 0; | 119 ShillPropertyChangedObserver* observer) = 0; |
121 | 120 |
122 // Calls GetProperties method. | 121 // Calls GetProperties method. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Create() should be used instead. | 210 // Create() should be used instead. |
212 ShillManagerClient(); | 211 ShillManagerClient(); |
213 | 212 |
214 private: | 213 private: |
215 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); | 214 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); |
216 }; | 215 }; |
217 | 216 |
218 } // namespace chromeos | 217 } // namespace chromeos |
219 | 218 |
220 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 219 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
OLD | NEW |