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 | |
Christopher Wiley | b691efd | 2012-08-09 13:51:51 -0700 | [diff] [blame] | 12 | #include "shill/logging.h" |
mukesh agrawal | b20776f | 2012-02-10 16:00:36 -0800 | [diff] [blame] | 13 | #include "shill/wifi_endpoint.h" |
| 14 | |
| 15 | using std::map; |
| 16 | using std::string; |
| 17 | |
| 18 | namespace shill { |
| 19 | |
| 20 | SupplicantBSSProxy::SupplicantBSSProxy( |
| 21 | WiFiEndpoint *wifi_endpoint, |
| 22 | DBus::Connection *bus, |
| 23 | const ::DBus::Path &object_path, |
| 24 | const char *dbus_addr) |
| 25 | : proxy_(wifi_endpoint, bus, object_path, dbus_addr) {} |
| 26 | |
| 27 | SupplicantBSSProxy::~SupplicantBSSProxy() {} |
| 28 | |
| 29 | // definitions for private class SupplicantBSSProxy::Proxy |
| 30 | |
| 31 | SupplicantBSSProxy::Proxy::Proxy( |
| 32 | WiFiEndpoint *wifi_endpoint, DBus::Connection *bus, |
| 33 | const DBus::Path &dbus_path, const char *dbus_addr) |
| 34 | : DBus::ObjectProxy(*bus, dbus_path, dbus_addr), |
| 35 | wifi_endpoint_(wifi_endpoint) {} |
| 36 | |
| 37 | SupplicantBSSProxy::Proxy::~Proxy() {} |
| 38 | |
| 39 | void SupplicantBSSProxy::Proxy::PropertiesChanged( |
| 40 | const std::map<string, ::DBus::Variant> &properties) { |
mukesh agrawal | 06175d7 | 2012-04-23 16:46:01 -0700 | [diff] [blame] | 41 | SLOG(DBus, 2) << __func__; |
mukesh agrawal | b20776f | 2012-02-10 16:00:36 -0800 | [diff] [blame] | 42 | wifi_endpoint_->PropertiesChanged(properties); |
| 43 | } |
| 44 | |
| 45 | } // namespace shill |