blob: dc12b45b33772a21a563af4f1dd32c4dce163f9b [file] [log] [blame]
mukesh agrawalb20776f2012-02-10 16:00:36 -08001// 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
14using std::map;
15using std::string;
16
17namespace shill {
18
19SupplicantBSSProxy::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
26SupplicantBSSProxy::~SupplicantBSSProxy() {}
27
28// definitions for private class SupplicantBSSProxy::Proxy
29
30SupplicantBSSProxy::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
36SupplicantBSSProxy::Proxy::~Proxy() {}
37
38void SupplicantBSSProxy::Proxy::PropertiesChanged(
39 const std::map<string, ::DBus::Variant> &properties) {
40 wifi_endpoint_->PropertiesChanged(properties);
41}
42
43} // namespace shill