shill: Create and register a Cellular device for each ModemManager.Modem.

BUG=chromium-os:17818
TEST=unit tests

Change-Id: Ic35adf35c8021f4c9689e72ddd03776948d036c1
Reviewed-on: http://gerrit.chromium.org/gerrit/4711
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Darin Petkov <petkov@chromium.org>
diff --git a/dbus_properties.h b/dbus_properties.h
new file mode 100644
index 0000000..ca22db5
--- /dev/null
+++ b/dbus_properties.h
@@ -0,0 +1,34 @@
+// 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_DBUS_PROPERTIES_
+#define SHILL_DBUS_PROPERTIES_
+
+#include <map>
+#include <string>
+
+#include <base/basictypes.h>
+#include <dbus-c++/types.h>
+
+namespace shill {
+
+typedef std::map<std::string, DBus::Variant> DBusPropertiesMap;
+
+class DBusProperties {
+ public:
+  static bool GetString(const DBusPropertiesMap &properties,
+                        const std::string &key,
+                        std::string *value);
+
+  static bool GetUint32(const DBusPropertiesMap &properties,
+                        const std::string &key,
+                        uint32 *value);
+
+ private:
+  DISALLOW_COPY_AND_ASSIGN(DBusProperties);
+};
+
+}  // namespace shill
+
+#endif  // SHILL_DBUS_PROPERTIES_