Darin Petkov | e9d12e0 | 2011-07-27 15:09:37 -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/modem_proxy.h" |
| 6 | |
| 7 | #include <base/logging.h> |
| 8 | |
| 9 | using std::string; |
| 10 | |
| 11 | namespace shill { |
| 12 | |
| 13 | ModemProxy::ModemProxy(DBus::Connection *connection, |
| 14 | const string &path, |
| 15 | const string &service) |
| 16 | : proxy_(connection, path, service) {} |
| 17 | |
| 18 | ModemProxy::~ModemProxy() {} |
| 19 | |
| 20 | void ModemProxy::Enable(const bool enable) { |
| 21 | proxy_.Enable(enable); |
| 22 | } |
| 23 | |
| 24 | ModemProxy::Proxy::Proxy(DBus::Connection *connection, |
| 25 | const string &path, |
| 26 | const string &service) |
| 27 | : DBus::ObjectProxy(*connection, path, service.c_str()) {} |
| 28 | |
| 29 | ModemProxy::Proxy::~Proxy() {} |
| 30 | |
| 31 | void ModemProxy::Proxy::StateChanged(const uint32 &old_state, |
| 32 | const uint32 &new_state, |
| 33 | const uint32 &reason) { |
| 34 | VLOG(2) << __func__; |
| 35 | } |
| 36 | |
| 37 | } // namespace shill |