blob: 6f43fbc73ba5570315698f9be3592014fb6f2a54 [file] [log] [blame]
Darin Petkov5c97ac52011-07-19 16:30:49 -07001// 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
11namespace shill {
12
Darin Petkov5c97ac52011-07-19 16:30:49 -070013using std::string;
14using std::vector;
15
16DBusPropertiesProxy::DBusPropertiesProxy(DBus::Connection *connection,
17 Modem *modem,
18 const string &path,
19 const string &service)
20 : proxy_(connection, modem, path, service) {}
21
22DBusPropertiesProxy::~DBusPropertiesProxy() {}
23
Darin Petkove0a312e2011-07-20 13:45:28 -070024DBusPropertiesMap DBusPropertiesProxy::GetAll(const string &interface_name) {
Darin Petkov5c97ac52011-07-19 16:30:49 -070025 return proxy_.GetAll(interface_name);
26}
27
28DBusPropertiesProxy::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
35DBusPropertiesProxy::Proxy::~Proxy() {}
36
37void DBusPropertiesProxy::Proxy::MmPropertiesChanged(
38 const string &interface,
Darin Petkove0a312e2011-07-20 13:45:28 -070039 const DBusPropertiesMap &properties) {
Darin Petkov5c97ac52011-07-19 16:30:49 -070040 LOG(INFO) << "MmPropertiesChanged: " << interface;
41}
42
43void DBusPropertiesProxy::Proxy::PropertiesChanged(
44 const string &interface,
Darin Petkove0a312e2011-07-20 13:45:28 -070045 const DBusPropertiesMap &changed_properties,
Darin Petkov5c97ac52011-07-19 16:30:49 -070046 const vector<string> &invalidated_properties) {
47 LOG(INFO) << "PropertiesChanged: " << interface;
48}
49
50} // namespace shill