Darin Petkov | 5c97ac5 | 2011-07-19 16:30:49 -0700 | [diff] [blame^] | 1 | // Copyright (c) 2011 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/dbus_properties_proxy.h" |
| 6 | |
| 7 | #include <base/logging.h> |
| 8 | |
| 9 | #include "shill/modem.h" |
| 10 | |
| 11 | namespace shill { |
| 12 | |
| 13 | using std::map; |
| 14 | using std::string; |
| 15 | using std::vector; |
| 16 | |
| 17 | DBusPropertiesProxy::DBusPropertiesProxy(DBus::Connection *connection, |
| 18 | Modem *modem, |
| 19 | const string &path, |
| 20 | const string &service) |
| 21 | : proxy_(connection, modem, path, service) {} |
| 22 | |
| 23 | DBusPropertiesProxy::~DBusPropertiesProxy() {} |
| 24 | |
| 25 | map<string, DBus::Variant> DBusPropertiesProxy::GetAll( |
| 26 | const string &interface_name) { |
| 27 | return proxy_.GetAll(interface_name); |
| 28 | } |
| 29 | |
| 30 | DBusPropertiesProxy::Proxy::Proxy(DBus::Connection *connection, |
| 31 | Modem *modem, |
| 32 | const string &path, |
| 33 | const string &service) |
| 34 | : DBus::ObjectProxy(*connection, path, service.c_str()), |
| 35 | modem_(modem) {} |
| 36 | |
| 37 | DBusPropertiesProxy::Proxy::~Proxy() {} |
| 38 | |
| 39 | void DBusPropertiesProxy::Proxy::MmPropertiesChanged( |
| 40 | const string &interface, |
| 41 | const map<string, DBus::Variant> &properties) { |
| 42 | LOG(INFO) << "MmPropertiesChanged: " << interface; |
| 43 | } |
| 44 | |
| 45 | void DBusPropertiesProxy::Proxy::PropertiesChanged( |
| 46 | const string &interface, |
| 47 | const map<string, DBus::Variant> &changed_properties, |
| 48 | const vector<string> &invalidated_properties) { |
| 49 | LOG(INFO) << "PropertiesChanged: " << interface; |
| 50 | } |
| 51 | |
| 52 | } // namespace shill |