| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 typedef ShillClientHelper::ErrorCallback ErrorCallback; | 33 typedef ShillClientHelper::ErrorCallback ErrorCallback; |
| 34 | 34 |
| 35 // Interface for setting up devices, services, and technologies for testing. | 35 // Interface for setting up devices, services, and technologies for testing. |
| 36 // Accessed through GetTestInterface(), only implemented in the Stub Impl. | 36 // Accessed through GetTestInterface(), only implemented in the Stub Impl. |
| 37 class TestInterface { | 37 class TestInterface { |
| 38 public: | 38 public: |
| 39 virtual void AddDevice(const std::string& device_path) = 0; | 39 virtual void AddDevice(const std::string& device_path) = 0; |
| 40 virtual void RemoveDevice(const std::string& device_path) = 0; | 40 virtual void RemoveDevice(const std::string& device_path) = 0; |
| 41 virtual void AddService(const std::string& service_path, | 41 virtual void AddService(const std::string& service_path, |
| 42 bool add_to_watch_list) = 0; | 42 bool add_to_watch_list) = 0; |
| 43 virtual void AddServiceAtIndex(const std::string& service_path, |
| 44 size_t index, |
| 45 bool add_to_watch_list) = 0; |
| 43 virtual void RemoveService(const std::string& service_path) = 0; | 46 virtual void RemoveService(const std::string& service_path) = 0; |
| 44 virtual void AddTechnology(const std::string& type, bool enabled) = 0; | 47 virtual void AddTechnology(const std::string& type, bool enabled) = 0; |
| 45 virtual void RemoveTechnology(const std::string& type) = 0; | 48 virtual void RemoveTechnology(const std::string& type) = 0; |
| 49 |
| 50 // Used to reset all properties; does not notify observers. |
| 46 virtual void ClearProperties() = 0; | 51 virtual void ClearProperties() = 0; |
| 47 | 52 |
| 48 protected: | 53 protected: |
| 49 ~TestInterface() {} | 54 ~TestInterface() {} |
| 50 }; | 55 }; |
| 51 | 56 |
| 52 virtual ~ShillManagerClient(); | 57 virtual ~ShillManagerClient(); |
| 53 | 58 |
| 54 // Factory function, creates a new instance which is owned by the caller. | 59 // Factory function, creates a new instance which is owned by the caller. |
| 55 // For normal usage, access the singleton via DBusThreadManager::Get(). | 60 // For normal usage, access the singleton via DBusThreadManager::Get(). |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // Create() should be used instead. | 125 // Create() should be used instead. |
| 121 ShillManagerClient(); | 126 ShillManagerClient(); |
| 122 | 127 |
| 123 private: | 128 private: |
| 124 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); | 129 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); |
| 125 }; | 130 }; |
| 126 | 131 |
| 127 } // namespace chromeos | 132 } // namespace chromeos |
| 128 | 133 |
| 129 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ | 134 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ |
| OLD | NEW |