shill: Update WiMAX DBus proxy interfaces and classes.
Adds WiMaxManager.Network proxy. Creates WiMaxService objects based on
the available WiMax networks thus adding initial support for multiple
active WiMAX services. Adds a "Scanning" property to the WiMax device,
similar to WiFi and Cellular.
BUG=chrome-os-partner:9782
TEST=Build and run unit tests.
CQ-DEPEND=I97ce1351436afb3aeac0d2a48a8f51e1501e7466
Change-Id: Ie3f919846114f63414788c5b970fa0dff2e2d06a
Reviewed-on: https://gerrit.chromium.org/gerrit/23008
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
diff --git a/wimax_network_proxy.h b/wimax_network_proxy.h
new file mode 100644
index 0000000..b66a551
--- /dev/null
+++ b/wimax_network_proxy.h
@@ -0,0 +1,53 @@
+// Copyright (c) 2012 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_WIMAX_NETWORK_PROXY_H_
+#define SHILL_WIMAX_NETWORK_PROXY_H_
+
+#include "shill/dbus_bindings/wimax_manager-network.h"
+#include "shill/wimax_network_proxy_interface.h"
+
+namespace shill {
+
+class WiMaxNetworkProxy : public WiMaxNetworkProxyInterface {
+ public:
+ // Constructs a WiMaxManager.Network DBus object proxy at |path|.
+ WiMaxNetworkProxy(DBus::Connection *connection,
+ const DBus::Path &path);
+ virtual ~WiMaxNetworkProxy();
+
+ // Inherited from WiMaxNetwokProxyInterface.
+ virtual uint32 Identifier(Error *error);
+ virtual std::string Name(Error *error);
+ virtual int Type(Error *error);
+ virtual int CINR(Error *error);
+ virtual int RSSI(Error *error);
+
+ private:
+ class Proxy : public org::chromium::WiMaxManager::Network_proxy,
+ public DBus::ObjectProxy {
+ public:
+ Proxy(DBus::Connection *connection, const DBus::Path &path);
+ virtual ~Proxy();
+
+ private:
+ // Signal callbacks inherited from WiMaxManager::Network_proxy.
+ // [None]
+
+ // Method callbacks inherited from WiMaxManager::Network_proxy.
+ // [None]
+
+ DISALLOW_COPY_AND_ASSIGN(Proxy);
+ };
+
+ static void FromDBusError(const DBus::Error &dbus_error, Error *error);
+
+ Proxy proxy_;
+
+ DISALLOW_COPY_AND_ASSIGN(WiMaxNetworkProxy);
+};
+
+} // namespace shill
+
+#endif // SHILL_WIMAX_NETWORK_PROXY_H_