[shill] Add support for setting properties.
This CL adds a framework for supporting RPC-exposed properties in Shill.
It also plumbs the code for setting properties on Service objects to prove
the approach. Device and Manager settings will follow.
BUG=chromium-os:16343
TEST=build shill, run unit tests.
Change-Id: I55869453d6039e688f1a49be9dfb1ba1315efe0a
Reviewed-on: http://gerrit.chromium.org/gerrit/3004
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/cellular.h b/cellular.h
new file mode 100644
index 0000000..428aa21
--- /dev/null
+++ b/cellular.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SHILL_CELLULAR_
+#define SHILL_CELLULAR_
+
+#include <string>
+
+#include <base/basictypes.h>
+
+#include "shill/cellular_service.h"
+#include "shill/device.h"
+#include "shill/shill_event.h"
+
+namespace shill {
+
+class Cellular : public Device {
+ public:
+ Cellular(ControlInterface *control_interface,
+ EventDispatcher *dispatcher,
+ Manager *manager,
+ const std::string& link,
+ int interface_index);
+ ~Cellular();
+ void Start();
+ void Stop();
+ bool TechnologyIs(Device::Technology type);
+
+ private:
+ bool service_registered_;
+ ServiceRefPtr service_;
+ DISALLOW_COPY_AND_ASSIGN(Cellular);
+};
+
+} // namespace shill
+
+#endif // SHILL_CELLULAR_