shill: Register GSM modem as part of device start up.

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

Change-Id: Ie8f8a8ce4fd185226a9f55f4fcd62224e7318c3c
Reviewed-on: http://gerrit.chromium.org/gerrit/6683
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
diff --git a/modem_gsm_network_proxy_interface.h b/modem_gsm_network_proxy_interface.h
new file mode 100644
index 0000000..414042f
--- /dev/null
+++ b/modem_gsm_network_proxy_interface.h
@@ -0,0 +1,39 @@
+// 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_MODEM_GSM_NETWORK_PROXY_INTERFACE_
+#define SHILL_MODEM_GSM_NETWORK_PROXY_INTERFACE_
+
+#include <string>
+
+#include <base/basictypes.h>
+
+namespace shill {
+
+// These are the methods that a ModemManager.Modem.Gsm.Network proxy must
+// support. The interface is provided so that it can be mocked in tests.
+class ModemGSMNetworkProxyInterface {
+ public:
+  virtual ~ModemGSMNetworkProxyInterface() {}
+
+  virtual void Register(const std::string &network_id) = 0;
+};
+
+// ModemManager.Modem.Gsm.Network signal listener to be associated with the
+// proxy.
+class ModemGSMNetworkProxyListener {
+ public:
+  virtual ~ModemGSMNetworkProxyListener() {}
+
+  virtual void OnGSMNetworkModeChanged(uint32 mode) = 0;
+  virtual void OnGSMRegistrationInfoChanged(
+      uint32 status,
+      const std::string &operator_code,
+      const std::string &operator_name) = 0;
+  virtual void OnGSMSignalQualityChanged(uint32 quality) = 0;
+};
+
+}  // namespace shill
+
+#endif  // SHILL_MODEM_GSM_NETWORK_PROXY_INTERFACE_