[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_dbus_adaptor.h b/manager_dbus_adaptor.h
index 00d1d3c..6a9e0e4 100644
--- a/manager_dbus_adaptor.h
+++ b/manager_dbus_adaptor.h
@@ -9,6 +9,7 @@
#include <string>
#include <base/basictypes.h>
+#include <dbus-c++/dbus.h>
#include "shill/adaptor_interfaces.h"
#include "shill/dbus_adaptor.h"
@@ -35,45 +36,45 @@
// Implementation of ManagerAdaptorInterface.
void UpdateRunning();
- void EmitBoolChanged(const std::string& name, bool value);
- void EmitUintChanged(const std::string& name, uint32 value);
- void EmitIntChanged(const std::string& name, int value);
- void EmitStringChanged(const std::string& name, const std::string& value);
- void EmitStateChanged(const std::string& new_state);
+ void EmitBoolChanged(const std::string &name, bool value);
+ void EmitUintChanged(const std::string &name, uint32 value);
+ void EmitIntChanged(const std::string &name, int value);
+ void EmitStringChanged(const std::string &name, const std::string &value);
+ void EmitStateChanged(const std::string &new_state);
// Implementation of Manager_adaptor
std::map<std::string, ::DBus::Variant> GetProperties(::DBus::Error &error);
- void SetProperty(const std::string& name,
- const ::DBus::Variant& value,
+ void SetProperty(const std::string &name,
+ const ::DBus::Variant &value,
::DBus::Error &error);
std::string GetState(::DBus::Error &error);
- ::DBus::Path CreateProfile(const std::string& name, ::DBus::Error &error);
- void RemoveProfile(const std::string& name, ::DBus::Error &error);
- ::DBus::Path PushProfile(const std::string& , ::DBus::Error &error);
- void PopProfile(const std::string& , ::DBus::Error &error);
+ ::DBus::Path CreateProfile(const std::string &name, ::DBus::Error &error);
+ void RemoveProfile(const std::string &name, ::DBus::Error &error);
+ ::DBus::Path PushProfile(const std::string &, ::DBus::Error &error);
+ void PopProfile(const std::string &, ::DBus::Error &error);
void PopAnyProfile(::DBus::Error &error);
- void RequestScan(const std::string& , ::DBus::Error &error);
+ void RequestScan(const std::string &, ::DBus::Error &error);
- void EnableTechnology(const std::string& , ::DBus::Error &error);
- void DisableTechnology(const std::string& , ::DBus::Error &error);
+ void EnableTechnology(const std::string &, ::DBus::Error &error);
+ void DisableTechnology(const std::string &, ::DBus::Error &error);
- ::DBus::Path GetService(const std::map<std::string, ::DBus::Variant>& ,
+ ::DBus::Path GetService(const std::map<std::string, ::DBus::Variant> &,
::DBus::Error &error);
- ::DBus::Path GetWifiService(const std::map<std::string, ::DBus::Variant>& ,
+ ::DBus::Path GetWifiService(const std::map<std::string, ::DBus::Variant> &,
::DBus::Error &error);
- void ConfigureWifiService(const std::map<std::string, ::DBus::Variant>& ,
+ void ConfigureWifiService(const std::map<std::string, ::DBus::Variant> &,
::DBus::Error &error);
- ::DBus::Path GetVPNService(const std::map< std::string, ::DBus::Variant>& ,
+ ::DBus::Path GetVPNService(const std::map< std::string, ::DBus::Variant> &,
::DBus::Error &error);
- void RegisterAgent(const ::DBus::Path& , ::DBus::Error &error);
- void UnregisterAgent(const ::DBus::Path& , ::DBus::Error &error);
+ void RegisterAgent(const ::DBus::Path &, ::DBus::Error &error);
+ void UnregisterAgent(const ::DBus::Path &, ::DBus::Error &error);
int32_t GetDebugLevel(::DBus::Error &error);
- void SetDebugLevel(const int32_t& mask, ::DBus::Error &error);
+ void SetDebugLevel(const int32_t &level, ::DBus::Error &error);
std::string GetServiceOrder(::DBus::Error &error);
- void SetServiceOrder(const std::string& , ::DBus::Error &error);
+ void SetServiceOrder(const std::string &, ::DBus::Error &error);
private:
Manager *manager_;