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_SERVICE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 bool add_to_watch_list) = 0; | 57 bool add_to_watch_list) = 0; |
58 virtual void RemoveService(const std::string& service_path) = 0; | 58 virtual void RemoveService(const std::string& service_path) = 0; |
59 virtual void SetServiceProperty(const std::string& service_path, | 59 virtual void SetServiceProperty(const std::string& service_path, |
60 const std::string& property, | 60 const std::string& property, |
61 const base::Value& value) = 0; | 61 const base::Value& value) = 0; |
62 virtual const base::DictionaryValue* GetServiceProperties( | 62 virtual const base::DictionaryValue* GetServiceProperties( |
63 const std::string& service_path) const = 0; | 63 const std::string& service_path) const = 0; |
64 virtual void ClearServices() = 0; | 64 virtual void ClearServices() = 0; |
65 | 65 |
66 protected: | 66 protected: |
67 ~TestInterface() {} | 67 virtual ~TestInterface() {} |
68 }; | 68 }; |
69 virtual ~ShillServiceClient(); | 69 virtual ~ShillServiceClient(); |
70 | 70 |
71 // Factory function, creates a new instance which is owned by the caller. | 71 // Factory function, creates a new instance which is owned by the caller. |
72 // For normal usage, access the singleton via DBusThreadManager::Get(). | 72 // For normal usage, access the singleton via DBusThreadManager::Get(). |
73 static ShillServiceClient* Create(DBusClientImplementationType type, | 73 static ShillServiceClient* Create(DBusClientImplementationType type, |
74 dbus::Bus* bus); | 74 dbus::Bus* bus); |
75 | 75 |
76 // Adds a property changed |observer| to the service at |service_path|. | 76 // Adds a property changed |observer| to the service at |service_path|. |
77 virtual void AddPropertyChangedObserver( | 77 virtual void AddPropertyChangedObserver( |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // Create() should be used instead. | 159 // Create() should be used instead. |
160 ShillServiceClient(); | 160 ShillServiceClient(); |
161 | 161 |
162 private: | 162 private: |
163 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); | 163 DISALLOW_COPY_AND_ASSIGN(ShillServiceClient); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace chromeos | 166 } // namespace chromeos |
167 | 167 |
168 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ | 168 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_H_ |
OLD | NEW |