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