mukesh agrawal | b20776f | 2012-02-10 16:00:36 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "shill/supplicant_bss_proxy.h" |
| 6 | |
| 7 | #include <map> |
| 8 | #include <string> |
| 9 | |
| 10 | #include <dbus-c++/dbus.h> |
| 11 | |
| 12 | #include "shill/wifi_endpoint.h" |
| 13 | |
| 14 | using std::map; |
| 15 | using std::string; |
| 16 | |
| 17 | namespace shill { |
| 18 | |
| 19 | SupplicantBSSProxy::SupplicantBSSProxy( |
| 20 | WiFiEndpoint *wifi_endpoint, |
| 21 | DBus::Connection *bus, |
| 22 | const ::DBus::Path &object_path, |
| 23 | const char *dbus_addr) |
| 24 | : proxy_(wifi_endpoint, bus, object_path, dbus_addr) {} |
| 25 | |
| 26 | SupplicantBSSProxy::~SupplicantBSSProxy() {} |
| 27 | |
| 28 | // definitions for private class SupplicantBSSProxy::Proxy |
| 29 | |
| 30 | SupplicantBSSProxy::Proxy::Proxy( |
| 31 | WiFiEndpoint *wifi_endpoint, DBus::Connection *bus, |
| 32 | const DBus::Path &dbus_path, const char *dbus_addr) |
| 33 | : DBus::ObjectProxy(*bus, dbus_path, dbus_addr), |
| 34 | wifi_endpoint_(wifi_endpoint) {} |
| 35 | |
| 36 | SupplicantBSSProxy::Proxy::~Proxy() {} |
| 37 | |
| 38 | void SupplicantBSSProxy::Proxy::PropertiesChanged( |
| 39 | const std::map<string, ::DBus::Variant> &properties) { |
| 40 | wifi_endpoint_->PropertiesChanged(properties); |
| 41 | } |
| 42 | |
| 43 | } // namespace shill |