diff options
author | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-10 18:51:24 +0000 |
---|---|---|
committer | stevenjb@chromium.org <stevenjb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-10 18:51:24 +0000 |
commit | e499e674b043597f1f05ce1bd070241014a884a3 (patch) | |
tree | 041145537edafb540e79893654d7906f7fca6465 /chromeos/dbus/shill_service_client.h | |
parent | b2ae272934e53cea31c6d279928c118b7cb1ebd3 (diff) | |
download | chromium_src-e499e674b043597f1f05ce1bd070241014a884a3.zip chromium_src-e499e674b043597f1f05ce1bd070241014a884a3.tar.gz chromium_src-e499e674b043597f1f05ce1bd070241014a884a3.tar.bz2 |
Add support for Service.SetProperties
BUG=258633
R=satorux@chromium.org
Review URL: https://codereview.chromium.org/18619006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210899 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_service_client.h')
-rw-r--r-- | chromeos/dbus/shill_service_client.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/chromeos/dbus/shill_service_client.h b/chromeos/dbus/shill_service_client.h index 4050c63..0579521 100644 --- a/chromeos/dbus/shill_service_client.h +++ b/chromeos/dbus/shill_service_client.h @@ -44,6 +44,7 @@ class CHROMEOS_EXPORT ShillServiceClient { // GetTestInterface(), only implemented in the stub implementation. class TestInterface { public: + // Adds a Service to the Manager and Service stubs. virtual void AddService(const std::string& service_path, const std::string& name, const std::string& type, @@ -57,12 +58,20 @@ class CHROMEOS_EXPORT ShillServiceClient { const std::string& ipconfig_path, bool add_to_visible_list, bool add_to_watch_list) = 0; + + // Removes a Service to the Manager and Service stubs. virtual void RemoveService(const std::string& service_path) = 0; - virtual void SetServiceProperty(const std::string& service_path, + + // Returns false if a Service matching |service_path| does not exist. + virtual bool SetServiceProperty(const std::string& service_path, const std::string& property, const base::Value& value) = 0; + + // Returns properties for |service_path| or NULL if no Service matches. virtual const base::DictionaryValue* GetServiceProperties( const std::string& service_path) const = 0; + + // Clears all Services from the Manager and Service stubs. virtual void ClearServices() = 0; protected: @@ -98,6 +107,13 @@ class CHROMEOS_EXPORT ShillServiceClient { const base::Closure& callback, const ErrorCallback& error_callback) = 0; + // Calls SetProperties method. + // |callback| is called after the method call succeeds. + virtual void SetProperties(const dbus::ObjectPath& service_path, + const base::DictionaryValue& properties, + const base::Closure& callback, + const ErrorCallback& error_callback) = 0; + // Calls ClearProperty method. // |callback| is called after the method call succeeds. virtual void ClearProperty(const dbus::ObjectPath& service_path, |