blob: 3328667cc8afc76f125c3ed66770959942c1004e [file] [log] [blame]
Darin Petkove9d12e02011-07-27 15:09:37 -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/modem_proxy.h"
6
7#include <base/logging.h>
8
9using std::string;
10
11namespace shill {
12
13ModemProxy::ModemProxy(DBus::Connection *connection,
14 const string &path,
15 const string &service)
16 : proxy_(connection, path, service) {}
17
18ModemProxy::~ModemProxy() {}
19
20void ModemProxy::Enable(const bool enable) {
21 proxy_.Enable(enable);
22}
23
Darin Petkovceb68172011-07-29 14:47:48 -070024ModemProxyInterface::Info ModemProxy::GetInfo() {
25 return proxy_.GetInfo();
26}
27
Darin Petkove9d12e02011-07-27 15:09:37 -070028ModemProxy::Proxy::Proxy(DBus::Connection *connection,
29 const string &path,
30 const string &service)
31 : DBus::ObjectProxy(*connection, path, service.c_str()) {}
32
33ModemProxy::Proxy::~Proxy() {}
34
Darin Petkov1ec741c2011-08-02 10:45:27 -070035void ModemProxy::Proxy::StateChanged(const uint32 &old,
36 const uint32 &_new,
Darin Petkove9d12e02011-07-27 15:09:37 -070037 const uint32 &reason) {
38 VLOG(2) << __func__;
Darin Petkov1ec741c2011-08-02 10:45:27 -070039 // TODO(petkov): Implement this.
40 NOTIMPLEMENTED();
Darin Petkove9d12e02011-07-27 15:09:37 -070041}
42
43} // namespace shill