[shill] Begin wiring SetProperty
Create a PropertyStoreInterface that can be implemented by Device,
Service, Manager, etc to handle getting/setting of properties. The
various DBusAdaptor subclasses can dispatch incoming calls to their
associated implementation object based on the names of the properties
and/or the types of the arguments.
BUG=chromium-os:16343
TEST=unit tests
Change-Id: If7abb0ffa623e59288943b4ed1f49832a92524ea
Reviewed-on: http://gerrit.chromium.org/gerrit/2408
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/manager.cc b/manager.cc
index 7b5b08c..fab11b0 100644
--- a/manager.cc
+++ b/manager.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "shill/manager.h"
+
#include <time.h>
#include <stdio.h>
@@ -15,7 +17,7 @@
#include "shill/dbus_adaptor.h"
#include "shill/device.h"
#include "shill/device_info.h"
-#include "shill/manager.h"
+#include "shill/error.h"
#include "shill/shill_event.h"
#include "shill/service.h"
@@ -108,4 +110,18 @@
return NULL;
}
+bool Manager::SetBoolProperty(const string& name, bool value, Error *error) {
+ VLOG(2) << "Setting " << name << " as a bool.";
+ // TODO(cmasone): Set actual properties.
+ return true;
+}
+
+bool Manager::SetStringProperty(const string& name,
+ const string& value,
+ Error *error) {
+ VLOG(2) << "Setting " << name << " as a string.";
+ // TODO(cmasone): Set actual properties.
+ return true;
+}
+
} // namespace shill