Darin Petkov | bec79a2 | 2011-08-01 14:47:17 -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_cdma_proxy.h" |
| 6 | |
| 7 | #include <base/logging.h> |
| 8 | |
| 9 | using std::string; |
| 10 | |
| 11 | namespace shill { |
| 12 | |
| 13 | ModemCDMAProxy::ModemCDMAProxy(DBus::Connection *connection, |
| 14 | const string &path, |
| 15 | const string &service) |
| 16 | : proxy_(connection, path, service) {} |
| 17 | |
| 18 | ModemCDMAProxy::~ModemCDMAProxy() {} |
| 19 | |
| 20 | void ModemCDMAProxy::GetRegistrationState(uint32 *cdma_1x_state, |
| 21 | uint32 *evdo_state) { |
| 22 | proxy_.GetRegistrationState(*cdma_1x_state, *evdo_state); |
| 23 | } |
| 24 | |
| 25 | ModemCDMAProxy::Proxy::Proxy(DBus::Connection *connection, |
| 26 | const string &path, |
| 27 | const string &service) |
| 28 | : DBus::ObjectProxy(*connection, path, service.c_str()) {} |
| 29 | |
| 30 | ModemCDMAProxy::Proxy::~Proxy() {} |
| 31 | |
| 32 | void ModemCDMAProxy::Proxy::ActivationStateChanged( |
| 33 | const uint32 &activation_state, |
| 34 | const uint32 &activation_error, |
| 35 | const DBusPropertiesMap &status_changes) { |
| 36 | VLOG(2) << __func__; |
| 37 | // TODO(petkov): Implement this. |
| 38 | NOTIMPLEMENTED(); |
| 39 | } |
| 40 | |
| 41 | void ModemCDMAProxy::Proxy::SignalQuality(const uint32 &quality) { |
| 42 | VLOG(2) << __func__; |
| 43 | // TODO(petkov): Implement this. |
| 44 | NOTIMPLEMENTED(); |
| 45 | } |
| 46 | |
| 47 | void ModemCDMAProxy::Proxy::RegistrationStateChanged( |
| 48 | const uint32_t &cdma_1x_state, |
| 49 | const uint32_t &evdo_state) { |
| 50 | VLOG(2) << __func__; |
| 51 | // TODO(petkov): Implement this. |
| 52 | NOTIMPLEMENTED(); |
| 53 | } |
| 54 | |
| 55 | } // namespace shill |