[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_service.h b/cellular_service.h
new file mode 100644
index 0000000..710c0b5
--- /dev/null
+++ b/cellular_service.h
@@ -0,0 +1,58 @@
+// 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_SERVICE_
+#define SHILL_CELLULAR_SERVICE_
+
+#include <map>
+#include <string>
+
+#include <base/basictypes.h>
+
+#include "shill/cellular.h"
+#include "shill/device.h"
+#include "shill/shill_event.h"
+#include "shill/service.h"
+
+namespace shill {
+
+class Cellular;
+
+class CellularService : public Service {
+ public:
+  CellularService(ControlInterface *control_interface,
+                  EventDispatcher *dispatcher,
+                  Cellular *device,
+                  const std::string& name);
+  ~CellularService();
+  void Connect();
+  void Disconnect();
+
+  // Implementation of PropertyStoreInterface
+  bool Contains(const std::string &property);
+
+ protected:
+  virtual std::string CalculateState() { return "idle"; }
+
+  // Properties
+  std::string activation_state_;
+  std::string operator_name_;
+  std::string operator_code_;
+  std::string network_tech_;
+  std::string roaming_state_;
+  std::string payment_url_;
+  uint8 strength_;
+
+  std::map<std::string, std::string> apn_info_;
+  std::map<std::string, std::string> last_good_apn_info_;
+
+ private:
+  Cellular *cellular_;
+  const std::string type_;
+  DISALLOW_COPY_AND_ASSIGN(CellularService);
+};
+
+}  // namespace shill
+
+#endif  // SHILL_CELLULAR_SERVICE_