shill: Create Modem instances for ModemManager.Modem paths.

Each Modem instance will manage a single ModemManager.Modem and a single
Cellular device.

BUG=chromium-os:17818
TEST=unit tests, tested on device

Change-Id: I4798224f0bc824bd6d1177e6a6b89f65ca4725ba
Reviewed-on: http://gerrit.chromium.org/gerrit/4356
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
diff --git a/dbus_properties_proxy.cc b/dbus_properties_proxy.cc
new file mode 100644
index 0000000..620ec58
--- /dev/null
+++ b/dbus_properties_proxy.cc
@@ -0,0 +1,52 @@
+// 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.
+
+#include "shill/dbus_properties_proxy.h"
+
+#include <base/logging.h>
+
+#include "shill/modem.h"
+
+namespace shill {
+
+using std::map;
+using std::string;
+using std::vector;
+
+DBusPropertiesProxy::DBusPropertiesProxy(DBus::Connection *connection,
+                                         Modem *modem,
+                                         const string &path,
+                                         const string &service)
+    : proxy_(connection, modem, path, service) {}
+
+DBusPropertiesProxy::~DBusPropertiesProxy() {}
+
+map<string, DBus::Variant> DBusPropertiesProxy::GetAll(
+    const string &interface_name) {
+  return proxy_.GetAll(interface_name);
+}
+
+DBusPropertiesProxy::Proxy::Proxy(DBus::Connection *connection,
+                                  Modem *modem,
+                                  const string &path,
+                                  const string &service)
+    : DBus::ObjectProxy(*connection, path, service.c_str()),
+      modem_(modem) {}
+
+DBusPropertiesProxy::Proxy::~Proxy() {}
+
+void DBusPropertiesProxy::Proxy::MmPropertiesChanged(
+    const string &interface,
+    const map<string, DBus::Variant> &properties) {
+  LOG(INFO) << "MmPropertiesChanged: " << interface;
+}
+
+void DBusPropertiesProxy::Proxy::PropertiesChanged(
+    const string &interface,
+    const map<string, DBus::Variant> &changed_properties,
+    const vector<string> &invalidated_properties) {
+  LOG(INFO) << "PropertiesChanged: " << interface;
+}
+
+}  // namespace shill