blob: 620ec5820faa2fd050a86a939dca53fd53594676 [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
13using std::map;
14using std::string;
15using std::vector;
16
17DBusPropertiesProxy::DBusPropertiesProxy(DBus::Connection *connection,
18 Modem *modem,
19 const string &path,
20 const string &service)
21 : proxy_(connection, modem, path, service) {}
22
23DBusPropertiesProxy::~DBusPropertiesProxy() {}
24
25map<string, DBus::Variant> DBusPropertiesProxy::GetAll(
26 const string &interface_name) {
27 return proxy_.GetAll(interface_name);
28}
29
30DBusPropertiesProxy::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
37DBusPropertiesProxy::Proxy::~Proxy() {}
38
39void DBusPropertiesProxy::Proxy::MmPropertiesChanged(
40 const string &interface,
41 const map<string, DBus::Variant> &properties) {
42 LOG(INFO) << "MmPropertiesChanged: " << interface;
43}
44
45void 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